Blog Archives

Nagios swap space

Goto Nagios server cd /usr/local/nagios/libexec wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_swp    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 barracuda.dnsvelocity.com 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@63.247.77.234 identified by ‘123dsa'; mysql setup in client server mysql> grant all privileges on nagios.* to nagios@63.247.77.234 identified by ‘123dsa'; Query OK, 0 rows affected (0.00 sec) nagios is

Posted in Nagios

Nagios error – Exim mail queue

In nagios server cd /usr/local/nagios/libexec wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue chmod +x check_eximmailqueue     In remote server cd /usr/local/nagios/libexec wget  http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue  chmod +x check_eximmailqueue   echo “command[check_eximmailqueue]=/usr/local/nagios/libexec/check_eximmailqueue -w 500 -c 1000″ >> /etc/nrpe.conf   visudo add the following line nagios ALL= NOPASSWD:/usr/sbin/exim

Posted in Nagios

Nagios error – DNS

error output parsing /usr/sbin/nslookup (1)For testing from nagios server [nagios@monitor libexec]$ ./check_nrpe -H hostname -c check_load   (2) add the nagiosip; in /etc/named.conf allow-recursion { localhost;nagios ip;};   (3) change the entry in services.cfg file as check_named or check_DNS check_dig

Posted in Nagios

Nagios setup

In Remote server cd /root wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nagios-plugins-1.3.1.tar.gz wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nrpe-1.9.tar.gz tar -zxvf nagios-plugins-1.3.1.tar.gz cd nagios-plugins-1.3.1 ./configure make all make install cd .. tar -zxvf nrpe-1.9.tar.gz cd nrpe-1.9/ ./configure make all cp nrpe.cfg /etc/nrpe.conf chmod 777 /etc/nrpe.conf cp src/check_nrpe /usr/sbin/ chmod 755

Posted in Nagios
Blog Stats
  • 115,864 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers