check_all_disk 2 host same value

Marc Powell marc at ena.com
Tue Oct 31 13:42:36 CET 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Kovács Zsolt
> Sent: Tuesday, October 31, 2006 1:04 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_all_disk 2 host same value
> 
> Hello
> 
> 
> I  installed nagios2 from Debian test.
> The Problem is:
> If I set in the check_all_disk service at both of two hosts, the two host
> show the same value.
> My setting:
> define service{
>         host_name                      angyal
>         service_description             Free space on angyal
>         check_command           check_all_disks!40%!20%
>         use                             generic-service
>         }
> 
> define service{
>         host_name                      vedelmezo
>         service_description             Free space on vedelmezo
>         check_command           check_all_disks!60%!50%
>         use                             generic-service
>         }

You don't provide enough information to completely answer your question; we need to see the check_all_disks command definition and know more about the plugin that it's using. The standard check-disk plugin is not network aware and only checks the disks on the machine it's installed/run on (how could it do otherwise without extra configuration by you). You'll probably need to install the plugin on the target machine and use check-by-ssh, NRPE, NSCA or some other helper script to run the plugin on the target machine and return the results to your Nagios machine.

An alternative is to enable/configure SNMPd on the target machine and use check-snmp to check your disk space. It's a bit more work though.

--
Marc

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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