Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ref: https://dl-web.dropbox.com/get/Kuliah/NMS%20-%20Network%20Monitoring%20System/NMS-with-nagios.pdf?w=edccd96e&dl=1
- useradd -s /bin/false -d /opt/nagios/ nagios
- groupadd nagcmd
- usermod -G nagcmd nagios
- usermod -G nagcmd apache
- tar -xzvf nagios-3.3.1.tar.gz
- ./configure --prefix=/opt/nagios --with-command-group=nagcmd
- make all
- make install
- make install-init
- make install-config
- make install-commandmode
- make install-webconf
- htpasswd -c /opt/nagios/etc/htpasswd.users nagiosadmin
- tar -xzvf nagios-plugins-1.4.15.tar.gz
- ./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios
- make
- make install
- chkconfig --add nagios
- chkconfig nagios on
- \\\\\sample configuration nagios\\\\
- mkdir /opt/nagios/etc/hosts
- vim /opt/nagios/etc/hosts/proxy.cfg
- \\\\\ here sample
- define host{
- use linux-server
- host_name SRV
- alias Server Rver Ver
- address 202.148.26.202
- }
- define service{
- use local-service
- host_name SRV
- service_deskription ping
- check_command check_ping!100.0,20%!500.0,60%
- }
- \\\\\
- vim /opt/nagios/etc/nagios.cfg
- \\\ add this line
- cfg_file=/opt/nagios/etc/hosts/proxy.cfg
- \\\
- /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
- /etc/init.d/nagios reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement