Solved

NAGIOS Check Disk

Posted on 2009-07-05
2
1,334 Views
Last Modified: 2013-12-16
Hello,
I want to check by nagios remote partition on remote host the partition called /var
and i want to warn me if it's exceeded 90%
Thanks
0
Comment
Question by:powervds
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 24781104
You need to setup NRPE and the check_disk plugin.

See the following tutorial for setting up NRPE

http://www.kernelhardware.org/nagios-nrpe-to-monitor-remote-linux-server/


0
 
LVL 4

Expert Comment

by:colinvann
ID: 24782836
You will need to install nrpe on the server you wish to monitor. I'm assuming you allready have a server installed with nagios that is currently monitoring other things on this server. (if not you need to allow it in the /usr/local/nagios/et/nrpe.conf file with the line allowed_hosts=a.b.c.d where a.b.c.d is the IP of the nagios server)

Once this is installled add the command definition to the monitored server:
command[check_disk_var]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /var

this will warn you ar 80% full and send critical alerts at 90% used

then you need to add the command to the nrpe.conf file within the /usr/local/nagios/etc/objects/ directory as follows:
define service {
                hostgroup_name                  <name of hosegroup to monitor this on>
                service_description             Var Root
                check_command                   check_nrpe!check_disk_var
                use                             generic-service
                }

or something similar, depending on your system.

hope that helped,

Colin

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now