ELOG Logbook HowTo

From SysadminPunk Wiki!

Jump to: navigation, search

Contents

Install ELOG Logbook Debian

Install required Packages for ELOG

apt-get install cvschangelogbuilder falselogin gtimelog mcelog libparse-debianchangelog-perl mergelog

Grab Latest ELOG srouce

cd /tmp
wget --no-check-certificate http://midas.psi.ch/elog/download/tar/elog-latest.tar.gz
tar -zxvf elog-latest.tar.gz
cd elog-2.7.7/
make
make install
  • This should drop everything in:
/usr/local/elog - Configs
/usr/local/bin/elog - Binary
/usr/local/sbin/elogd - Server Daemon
/etc/init.d/elog -Startup scripts

Configure ELOG

vi /usr/local/elog/elogd.cfg
[global]
port = 8080
#Start page = 0?cmd=last 
#Start page = ?expand=2
Password file = passwd
Self Register = 0 
Admin user = bill, ted
SMTP host = devmail.auctiva.com
Subst Author = $long_name from $remote_host
Subst Email = $user_email
Email ALL = it@auctiva.com, jlucero@auctiva.com, rcox@auctiva.com
Use Email Subject = [$logbook Logbook] | $Subject 

[Chico]
Theme = default
Comment = Chico Logbook 
Attributes = Author, Type, Category, OS, Tags, Subject
Options Type = Project, Ticket, Installation, Problem, Configuration, Other
Options Category = General, Network, Hardware, Software, Other, Maintenance
Options OS = Linux, Windows, Unix, Embedded
Options Tags =  Server, Switch, Router, Workstation, DNS, Content Switch, Web, Maintenance
Extendable Options = Category, Tags
Required Attributes = Author, Type
Reverse sort = 1
Page Title = Chico Logbook  - $subject
Login expiration = 1000
Admin user = bill, ted
Guest menu commands = Back, Find, Login, Help
Guest find menu commands = Find, Login, Help
Date format = %B %d, %Y
Thread display = $Subject, entered by $author on $Entry date
Quick filter = Date, Category
Preset Author = $long_name
Preset Author Email = $user_email
Locked Attributes = Author, Author Email
Restrict edit = 1
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email 

[Sacramento]
Theme = default
Comment = Sacramento Logbook
Attributes = Author, Type, Category, OS, Tags, Subject
Options Type = Project, Ticket, Installation, Problem, Configuration, Other
Options Category = General, Network, Hardware, Software, Other, Database, Maintenence 
Options OS = Linux, Windows, Unix, Embedded
Options Tags =  Server, Switch, Router, Workstation, DNS, Content Switch, Web, DB Server, IPMonitor
Extendable Options = Category, Tags
Required Attributes = Author, Type
Reverse sort = 1
Page Title = Sacramento Logbook  - $subject
Login expiration = 1000
Admin user = bill, ted
Guest menu commands = Back, Find, Login, Help
Guest find menu commands = Find, Login, Help
Date format = %B %d, %Y
Thread display = $Subject, entered by $author on $Entry date
Quick filter = Date, Category
Preset Author = $long_name
Preset Author Email = $user_email
Locked Attributes = Author, Author Email
Restrict edit = 1
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email 

[SanJose]
Theme = default
Comment = San Jose Logbook
Attributes = Author, Type, Category, OS, Tags, Subject
Options Type = Project, Ticket, Installation, Problem, Configuration, Other
Options Category = General, Network, Hardware, Software, Other
Options OS = Linux, Windows, Unix, Embedded
Options Tags =  Server, Switch, Router, Workstation, DNS, Content Switch, Web
Extendable Options = Category, Tags
Required Attributes = Author, Type
Reverse sort = 1
Page Title = San Jose Logbook  - $subject
Login expiration = 1000
Admin user = bill, ted
Guest menu commands = Back, Find, Login, Help
Guest find menu commands = Find, Login, Help
Date format = %B %d, %Y
Thread display = $Subject, entered by $author on $Entry date
Quick filter = Date, Category
Preset Author = $long_name
Preset Author Email = $user_email
Locked Attributes = Author, Author Email
Restrict edit = 1
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email  

[Fremont]
Theme = default
Comment = Fremont Logbook
Attributes = Author, Type, Category, OS, Tags, Subject
Options Type = Project, Ticket, Installation, Problem, Configuration, Other
Options Category = General, Network, Hardware, Software, Other, Service
Options OS = Linux, Windows, Unix, Embedded
Options Tags =  Server, Switch, Router, Workstation, DNS, Content Switch, Web
Extendable Options = Category, Tags
Required Attributes = Author, Type
Reverse sort = 1
Page Title = Fremont Logbook  - $subject
Login expiration = 1000
Admin user = bill, ted
Guest menu commands = Back, Find, Login, Help
Guest find menu commands = Find, Login, Help
Date format = %B %d, %Y
Thread display = $Subject, entered by $author on $Entry date
Quick filter = Date, Category
Preset Author = $long_name
Preset Author Email = $user_email
Locked Attributes = Author, Author Email
Restrict edit = 1
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email 

[OnCall-Log]
Theme = default
Comment = Auctiva I.T. After Hours Support
Login expiration = 1000
Admin user = bill, ted
Self register = 0 
Guest menu commands = Back, Find, Login, Help
Guest find menu commands = Find, Login, Help
Date format = %B %d, %Y
Attributes = Author, Author Email, Category, Subject
Options Category = Support Request, IPMonitor, Adhoc 
Extendable attributes = Category
Required Attributes = Category, Subject
Thread display = $Subject, entered by $author on $Entry date
Quick filter = Date, Category
Page Title =  Auctiva I.T. Call Log - $subject
Preset Author = $long_name
Preset Author Email = $user_email
Locked Attributes = Author, Author Email
Restrict edit = 1
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email 

Create Logbook Directories

  • We must create the Logbook Directories before restarting elog.
mkdir /usr/local/elog/logbooks/Chico
mkdir /usr/local/elog/logbooks/Fremont
mkdir /usr/local/elog/logbooks/Sacramento
mkdir /usr/local/elog/logbooks/SanJose

Restart ELOG

kill -HUP {elogPID}

or

killall elogd
/usr/local/sbin/elogd -D -c /usr/local/elog/elogd.cfg -p 8080 
  • Working on Script to automate this..
Personal tools