?
Solved

NAGIOS Check Disk

Posted on 2009-07-05
2
Medium Priority
?
1,340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 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