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

retry_check_interval 1

contact_groups voxtreme-admins

notification_interval 120

notification_period 24×7

notification_options w,u,c,r

check_command check_nrpe!check_swp

}

 

/etc/init.d/nagios restart

 

Goto remote server

cd /usr/local/nagios/libexec

wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_swp 

chmod +x check_swp

 

echo “command[check_swp]=/usr/local/nagios/libexec/check_swp -w 80 -c 70″ >> /etc/nrpe.conf

 

/etc/init.d/xinetd restart

 

touch /home/nagios/swapcalc

chown nagios:nagios /home/nagios/swapcalc

touch /home/nagios/swappercent

chown nagios:nagios /home/nagios/swappercent

chmod +x /usr/bin/free

 

Check in nagios server

./check_nrpe -H <server ip> -c check_swp

About these ads
About

anees

Posted in Nagios

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 116,101 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers

%d bloggers like this: