Blog Archives

Nagios swap space

Goto Nagios server cd /usr/local/nagios/libexec wget    chmod +x check_swp You need to do this for each server in nagios server   vi /usr/local/nagios/etc/services.cfg add define service{ host_name service_description SWAP_USAGE is_volatile 0 check_period 24×7 max_check_attempts 3 normal_check_interval 5

Posted in Nagios

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

Posted in Nagios

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 the following line below root ALL=(ALL)

Posted in Nagios

Nagios – nrpe

# vi /etc/xinetd.d/nrpe # default: on         # description: NRPE         service nrpe         {                 flags           = REUSE         

Posted in Nagios

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 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200

Posted in 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

Posted in Nagios

Nagios error – Mysql

   mysql create database nagios; grant all privileges on nagios.* to nagios@ identified by ‘123dsa’; mysql setup in client server mysql> grant all privileges on nagios.* to nagios@ identified by ‘123dsa’; Query OK, 0 rows affected (0.00 sec) nagios is

Posted in Nagios
Blog Stats
  • 129,504 hits

Get every new post delivered to your Inbox.

Join 211 other followers