enable cgi downtime scheduling in nagios

1. enable nagios.cmd access.

[root@james conf]# chmod -R 777 /usr/local/nagios/var/rw/
[root@james conf]# ls -la /usr/local/nagios/var/rw/
total 8
drwxrwxrwx 2 nagios nagios 4096 Dec 29 12:51 .
drwxrwxr-x 7 nagios nagios 4096 Dec 29 12:54 ..
prwxrwxrwx 1 nagios nagios 0 Dec 29 12:54 nagios.cmd
prwxrwxrwx 1 nagios nagios 0 Dec 27 16:02 nagios.cmd-old

2. add auth user to access cgi’s in cgi.cfg

use_authenticaiontion=1

add authenticated user (name of user logged in via .htaccess file) or * for all for following.

authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*

3. nagios.cfg enable check_external_commands=1

4. restart nagios.

Leave a Reply