wrong information by check_disk !
Marc Powell
marc at ena.com
Fri May 9 16:01:31 CEST 2008
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Uwe Großkinsky
> Sent: Friday, May 09, 2008 8:06 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] wrong information by check_disk !
>
> define service{
> use generic-service
> host_name uwe-desktop
> service_description check remote Disk
> check_command check_nrpe!check_remote_disk1
> }
>
> and command.cfg
>
> define command{
> command_name check_remote_disk1
> command_line $USER1$/check_remote_disk1 -H $HOSTADDRESS$
> }
This is not the command that you're telling nagios to run in the service definition above. You're telling it to run the command with command_name 'check_nrpe'.
> konfigured
>
> on Machine 2 (nrpe) i have the following command in my command.cfg
> included
>
> command[check_remote_disk1]=/opt/nagios/libexec/check_disk -w 20% -c 10%
> -p /
>
>
> but i see always in Nagios for my check result
>
> check remote Disk
>
> OK 09-05-2008 14:44:17 0d 0h 36m 19s 1/3 OK - load average: 0.27, 0.23,
> 0.24
I'm going to guess that the command 'check_nrpe' is hard coded to run check_load on the remote machine. Does that command properly use the $ARG1$ being passed to it? It should probably look something like --
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30
}
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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