Category Archives: Nagios

Nagios Password

password given in /usr/local/nagios/etc/htpasswd.users url is http://hostname/cgi-bin/monitor/status.cgi Given entries in contactgroups.cfg and contacts.cfg files (refer doreo client info) in contacts.cfg we can setup mail notifications htpasswd -m /usr/local/nagios/etc/htpasswd.users username and give password

Nagios – nrpe.conf

root@westernbbqassociation [~]# vi /etc/nrpe.conf command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c

Nagios – nrpe

# vi /etc/xinetd.d/nrpe # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/sbin/nrpe server_args = -c /etc/nrpe.conf –inetd

Nagios proc

Configure number of processes in Nagios : on the server to be monitored, vi /etc/nrpe.conf modify the line this way : command[check_total_procs]=sudo /usr/local/nagios/libexec/check_procs -w 250 -c 300 then run visudo and add

Nagios ssl

adding service ssl to nagios /usr/local/nagios/etc file checkcommands.cfg # ‘check_ssl’ command definition define command{ command_name check_ssl command_line /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p 443 } then add the entries in services.cfg escalations.cfg services.cfg #