Link to home
Start Free TrialLog in
Avatar of powervds
powervds

asked on

NAGIOS Check Disk

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
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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