biolocal:Bigsis agent install
From Wiki CEINGE
(Difference between revisions)
Revision as of 14:37, 4 October 2007 (edit) Gianluca (Talk | contribs) (New page: * groupadd -g 604 bigsis * useradd -u 604 -g 604 bigsis * rpm -ivh bigsister-1.02-4.noarch.rpm bigsister-agent-1.02-4.noarch.rpm * yum install perl-GD * chkconfig --add bigsister * chown ...) ← Previous diff |
Current revision (12:52, 18 February 2008) (edit) (undo) Gianluca (Talk | contribs) m (Bioinfolocal:bigsis agent install moved to biolocal:Bigsis agent install: moving to the right namespace) |
||
(One intermediate revision not shown.) | |||
Line 1: | Line 1: | ||
+ | Create a group and a user with gid and id 604 named bigsis: | ||
+ | |||
* groupadd -g 604 bigsis | * groupadd -g 604 bigsis | ||
* useradd -u 604 -g 604 bigsis | * useradd -u 604 -g 604 bigsis | ||
+ | |||
+ | Install the agent and the libraries: | ||
+ | |||
* rpm -ivh bigsister-1.02-4.noarch.rpm bigsister-agent-1.02-4.noarch.rpm | * rpm -ivh bigsister-1.02-4.noarch.rpm bigsister-agent-1.02-4.noarch.rpm | ||
* yum install perl-GD | * yum install perl-GD | ||
+ | |||
+ | Configure the automatic startup: | ||
+ | |||
* chkconfig --add bigsister | * chkconfig --add bigsister | ||
+ | |||
+ | Modify the group and the group permissions, to allow the bigsis user to read the sistem logs: | ||
* chown root.bigsis /var/log/messages* | * chown root.bigsis /var/log/messages* | ||
Line 11: | Line 21: | ||
- | Edit the /etc/logrotate.d/syslog file | + | Edit the /etc/logrotate.d/syslog file to ensure that the rotate log files will be created with the right permissions. |
Modify the default configuration: | Modify the default configuration: | ||
- | + | <pre> | |
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { | /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { | ||
sharedscripts | sharedscripts | ||
Line 21: | Line 31: | ||
endscript | endscript | ||
} | } | ||
- | + | </pre> | |
- | + | ||
- | + | ||
- | + | ||
with the following: | with the following: | ||
- | + | <pre> | |
/var/log/messages /var/log/maillog { | /var/log/messages /var/log/maillog { | ||
sharedscripts | sharedscripts | ||
Line 42: | Line 49: | ||
endscript | endscript | ||
} | } | ||
+ | </pre> | ||
- | + | Configure the bigsister agent. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
* cd /etc/bigsister/ | * cd /etc/bigsister/ | ||
* vi uxmon-net | * vi uxmon-net | ||
+ | <pre> | ||
# KEYWORD Default settings Apply To TEST | # KEYWORD Default settings Apply To TEST | ||
#------------- --------------------------- ----------------- | #------------- --------------------------- ----------------- | ||
Line 96: | Line 100: | ||
# process is started for every file matching that pattern | # process is started for every file matching that pattern | ||
include include_checks.$HOST | include include_checks.$HOST | ||
+ | </pre> | ||
+ | Start the agent. | ||
- | + | <pre> | |
- | + | /etc/init.d/bigsister start | |
- | + | </pre> | |
- | + |
Current revision
Create a group and a user with gid and id 604 named bigsis:
- groupadd -g 604 bigsis
- useradd -u 604 -g 604 bigsis
Install the agent and the libraries:
- rpm -ivh bigsister-1.02-4.noarch.rpm bigsister-agent-1.02-4.noarch.rpm
- yum install perl-GD
Configure the automatic startup:
- chkconfig --add bigsister
Modify the group and the group permissions, to allow the bigsis user to read the sistem logs:
- chown root.bigsis /var/log/messages*
- chown root.bigsis /var/log/maillog*
- chmod g+r /var/log/messages*
- chmod g+r /var/log/maillog*
Edit the /etc/logrotate.d/syslog file to ensure that the rotate log files will be created with the right permissions.
Modify the default configuration:
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript }
with the following:
/var/log/messages /var/log/maillog { sharedscripts create 640 root bigsis postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript } /var/log/secure /var/log/spooler /var/log/boot.log /var/log/cron { sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript }
Configure the bigsister agent.
- cd /etc/bigsister/
- vi uxmon-net
# KEYWORD Default settings Apply To TEST #------------- --------------------------- ----------------- DEFAULT community=public frequency=5 perf=5 ALL DEFAULT version=1 proto=udp rpc DEFAULT proto=udp ping # Information about defined systems to monitor using DESCR command. # # KEYWORD SYSTEM FEATURES Apply To HOST #--------- -------------------------- ------------ DESCR features=unix,linux localhost # DESCR features=unix,sysv,solaris someotherhost # Run the following tests. # Note: host1(host2) is reported under host2 # Note: host can be an IP address # Report Host Health Test List #------------ ----------------------------------- #localhost load memory network cpuload #localhost disk #localhost syslog #localhost proc=inetd procs proc=sshd procs #localhost users localhost(linux1) load memory cpuload localhost(linux1) interface=eth0 speed=1000000000 network localhost(linux1) df="df -l" disk localhost(linux1) syslog localhost(linux1) proc=sshd procs localhost(linux1) users # EDIT THIS, replace localhost by the name or IP address of your Big Sister server # # BigSis Server bsdisplay /options #------------ ----------------------------------- bpb.ceinge.unina.it bsdisplay # include file for specific hosts, do not name it uxmon-net.* as a new # process is started for every file matching that pattern include include_checks.$HOST
Start the agent.
/etc/init.d/bigsister start