[Nagiosplug-help] Help with check_nrpe again

Voon, Ton Ton.Voon at egg.com
Tue May 13 05:54:01 CEST 2003


Your command_line is missing a $ in $HOSTADDRESS$

> -----Original Message-----
> From:	Ian Davidson [SMTP:idavidso at juniper.net]
> Sent:	Monday, May 12, 2003 6:05 PM
> To:	nagiosplug-help at lists.sourceforge.net
> Subject:	[Nagiosplug-help] Help with check_nrpe again
> 
> On my monitoring station I have setup a service, as:
> 
> # TEST-DISK-SPACE-ON-LINUX-HOSTS
> define service {
> service_description disk-check
> use generic-service
> check_command   check_nrpe!check_disk
> contact_groups  linux-admins
> host_name       dc
> }
> 
> The check-command is
> # 'check_nrpe' command definition
> define command{
> command_name    check_nrpe
> command_line    /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS -c
> $ARG1$
> }
> 
> On my remote-host  nrpe.cfg file I have:
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10%
> -p /dev/hda1
> 
> If I run this command on the remote-host I get a good result.
> [dc nagios]# /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p
> /dev/hda1
> DISK OK [35179 kB (79%) free on /dev/hda1]
> 
> Also, if I run the check_nrpe command from the monitoring station I get:
> 
> [libexec]# ./check_nrpe -H dc -c check_disk
> DISK OK [35179 kB (79%) free on /dev/hda1]
> 
> 
> However when nagios runs, the status in the service window for the host
> 'dc' is "Invalid host name '-c'"
> 
> I cannot see where this is failing. Maybe looking at the same problem
> for hours doesn't help! Can someone point out where I've gone wrong.
> 
> Cheers,
> 
> Ian
> 
> 
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
> 
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.





More information about the Help mailing list