[Nagiosplug-help] NRPE works from command line but not nagios server
Arnold Cano
arnoldc at mcmservice.com
Thu May 20 15:01:03 CEST 2004
Brian Vicente wrote:
> I have nrpe installed and to the best of my knowledge working.
>
> I’m using check_disk plugin for this:
>
> /check_disk -w 20 -c 10 -p /dev/hda3
>
> I run the commands from the remote machine and it gives back:
>
> DISK OK [14167924 kB (61%) free on /dev/hda3]
>
> I run the check_nrpe from the nagios server (both as nagios user and
> root)
>
> /usr/local/nagios/libexec/check_nrpe -H 10.139.4.47 -c check_disk_var
>
> And I get this:
>
> DISK OK [22428328 kB (93%) free on /dev/hda3]
>
> My checkcommand file has this configured:
>
> command_line $USER1$/check_nrpe $HOSTADDRESS$ -c check_disk
>
> The notification I get from nagios says:
>
> Additional Info:
>
> Incorrect command line arguments supplied
>
> The service file has this defined:
>
> check_command check_nrpe!check_disk
>
> Any ideas?
>
> I’m using xinted which seems to work since I can run from the nagios
> server and get back something from the remote server.
>
> I’m stumped!
>
> Thanks,
>
> BV
>
> Disclaimer: The information contained in this transmission, including
> any attachments, may contain confidential information of Matsushita
> Avionics Systems Corporation. This transmission is intended only for
> the use of the addressee(s) listed above. Unauthorized review,
> dissemination or other use of the information contained in this
> transmission is strictly prohibited. If you have received this
> transmission in error or have reason to believe you are not authorized
> to receive it, please notify the sender by return email and promptly
> delete the transmission
>
Brian,
It appears as though you are missing the -H command line option in your
checkcommand definition... It should read as follows (note the addition
of the -H before the $HOSTADDRESS$):
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk
Hope this helps,
Arnold
More information about the Help
mailing list