Nagios debian debian 7: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
(Created page with "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-d...")
 
 
(2 intermediate revisions by one other user not shown)
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=(ALL) NOPASSWD: /usr/bin/killall, /usr/sbin/nagios3
  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:
Line 18: Line 18:
  Path to nagios binary: /usr/sbin/nagios3
  Path to nagios binary: /usr/sbin/nagios3
  Path to nagios.cfg: /etc/nagios3/nagios.cfg
  Path to nagios.cfg: /etc/nagios3/nagios.cfg
Path to vm.cfg: /etc/nagios3/conf.d/vm.cfg
  Objects name prefix: VM_
  Objects name prefix: VM_
  Path to status.dat: /var/cache/nagios3/status.dat
  Path to status.dat: /var/cache/nagios3/status.dat
  Command which reloads config: killall -HUP nagios3
  Command which reloads config: killall -HUP nagios3
  Run sudo before reload command: TRUE
  Run sudo before reload command: TRUE

Latest revision as of 12:27, 2 November 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