Monitoring disk usage

David Rosenstrauch darose at darose.net
Tue Jul 14 17:24:44 CEST 2009


Juki wrote:
> Hello,
> 
> I have installed nrpe v2.11 on a monitored host running Solaris 10. An
> excerpt from nrpe.cfg on the monitored host is as follows;
> 
> *command[check_disk]=/usr/local/nagios/libexec/check_disk -w 30% -c 15% -p /
> 
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 30% -c 20% -p
> /var/opt/BGw/Server1 -p /var/opt/mediation/ora
> command[check_swap]= /usr/local/nagios/libexec/check_swap -a -w 10% -c 5%
> command[check_procs]=/usr/local/nagios/libexec/check_procs -w 300 -c 400
> command[check_ssh]=/usr/local/nagios/libexec/check_ssh -4 -t 10 -p 22
> localhost
> command[check_ftp]=/usr/local/nagios/libexec/check_ftp -t 5*
> 
> My intention is to monitor disk usage on the partitions /var/opt/BGw/Server1
> and /var/opt/mediation/ora. This is not working yet. When I log into the
> Nagios web interface on the monitoring server, I do not see any details
> (alerts and warnings) to do with the above mentioned partitions.  However, I
> do see other details like ssh, processes, swap and even those for the /
> partition.
> 
> If I run on the monitored host, I get some info;
> 
> *bash-3.00# /usr/local/nagios/libexec/check_disk -w 30% -c 20% -p
> /var/opt/BGw/Server1 -p /var/opt/mediation/ora
> DISK OK - free space: /var/opt/BGw/Server1 16937 MB (31% inode=94%);
> /var/opt/mediation/ora 9738 MB (64% inode=99%);|
> /var/opt/BGw/Server1=36502MB;37990;43417;0;54272
> /var/opt/mediation/ora=5323MB;10997;12568;0;15711
> *
>>From my understanding, the output above shows that the check_disk plugin
> actually works, however on logging into the web interface, there are no
> details to this effect and also no alerts/warnings at all. How do I get to
> see the details of these partitions in the web interface including warnings
> and alerts.
> 
> 
> Thanks in advance,
> Juki


Did you add a service on the main nagios host to call the nrpe command 
you just set up?  i.e.,


define service {
	service_description	Check remote disk space
	host_name		the_remote_host
	check_command		check_nrpe!check_disk
}

HTH,

DR

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list