Nagios debian debian 7: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
vim /etc/sudoers and add line after the root .. line: | vim /etc/sudoers and add line after the root .. line: | ||
www-data ALL=( | www-data ALL=(nagios) NOPASSWD: /usr/bin/killall, /usr/sbin/nagios3 | ||
Edit settings in voipmonitor GUI->Settings->System configurtion->NAGIOS: | Edit settings in voipmonitor GUI->Settings->System configurtion->NAGIOS: |
Revision as of 22:41, 24 October 2014
Steps to install nagios3 from debian repositories
Instal nagios3 and its plugins
apt-get install nagios3
Instal and set proper privileges
apt-get install sudo chown www-data -R /var/lib/nagios3/spool/checkresults chown nagios:www-data -R /usr/sbin/nagios3 chown www-data /etc/nagios3/conf.d/vm.cfg
vim /etc/sudoers and add line after the root .. line:
www-data ALL=(nagios) NOPASSWD: /usr/bin/killall, /usr/sbin/nagios3
Edit settings in voipmonitor GUI->Settings->System configurtion->NAGIOS:
ENABLE nagios : TRUE Nagios user: nagios Path to nagios binary: /usr/sbin/nagios3 Path to nagios.cfg: /etc/nagios3/nagios.cfg Path to vm.cfg: /etc/nagios3/conf.d/vm.cfg Objects name prefix: VM_ Path to status.dat: /var/cache/nagios3/status.dat Command which reloads config: killall -HUP nagios3 Run sudo before reload command: TRUE