Nagios - Ping - You must specify a server

Andy Shellam andy.shellam-lists at mailnetwork.co.uk
Thu Aug 31 14:21:44 CEST 2006


Hi Ranjeet,

I see you're trying to use check_nrpe to pass the arguments of 
check_ping to?  It's a case of what exactly are you trying to do here?  
There are 2 things I can see you're trying to do:

1. Ping host $HOSTADDRESS$ from the Nagios machine
2. Send a request via NRPE to another machine to ask it to ping 
$HOSTADDRESS$ and send the result back to the Nagios machine

However you're trying to pass "check_ping!100.0,20%!500.0,60%" as 
arguments to check_nrpe - can you post your check_nrpe command_line as well?

Note that on the machine that's running the NRPE daemon, you must have 
the check_ping command configured, and if you want to be able to pass 
arguments to the NRPE daemon, you must have configured it correctly (see 
the nrpe.cfg file.)

Post your check_nrpe command on yuor Nagios machine, and also your 
nrpe.cfg file from the client.

Andy.

Ranjeet Kumar wrote:
>
> Hi Andy,
>
>  
>
> In my case I used the following configuration : -
>
>  
>
> # 'check_ping' command definition
>
> define command{
>
>         command_name    check_ping
>
>         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ 
> -c $ARG2$ -p 5
>
>         }
>
>  
>
> In service definition: -
>
> check_command                   check_nrpe!check_ping!100.0,20%!500.0,60%
>
>  
>
> Please help me in solving this issue.
>
>  
>
> Thanks,
>
> Ranjeet
>
>  
>
> Hi Ranjeet
>
>  
>
> Can you post your command string for this plugin and similarly the
>
> host/service that uses this command?
>
> I'm using exactly the same versions as you except it's on Fedora 5, and
>
> not had a problem (both local and remote commands.) Mine are as follows:
>
>  
>
> Command definition:
>
>  
>
> define command {
>
> command_name Check_PING
>
> command_line /usr/local/nagios/libexec/check_ping -H $ARG1$ -p 10 -w
>
> 500,50% -c 1000,100%
>
> }
>
>  
>
> In the host definitions:
>
>  
>
> check_command Check_PING!$HOSTADDRESS$
>
>  
>
> Regards
>
>  
>
> Andy.
>
>  
>
> Ranjeet Kumar wrote:
>
> >
>
> > Hi,
>
> >
>
> > I am able to get all information from the server except ping. It gives
>
> > the error ?You must specify a server address or host name ?.
>
> >
>
> > Please help me in solving this issue.
>
> >
>
> > I am using following:
>
> >
>
> > Nagios 2.5
>
> >
>
> > Nagios-plugins 1.4.3
>
> >
>
> > NRPE 2.5.2
>
> >
>
> > OS: Fedora Core 4
>
> >
>
> > Thanks,
>
> >
>
> > Ranjeet
>
> >
>
>  
>
> !DSPAM:37,44f677cf143291534120704!
>
> The information contained in, or attached to, this e-mail, contains 
> confidential information and is intended solely for the use of the 
> individual or entity to whom they are addressed and is subject to 
> legal privilege. If you have received this e-mail in error you should 
> notify the sender immediately by reply e-mail, delete the message from 
> your system and notify your system manager. Please do not copy it for 
> any purpose, or disclose its contents to any other person. The views 
> or opinions presented in this e-mail are solely those of the author 
> and do not necessarily represent those of the company. The recipient 
> should check this e-mail and any attachments for the presence of 
> viruses. The company accepts no liability for any damage caused, 
> directly or indirectly, by any virus transmitted in this email.
>
> www.aztecsoft.com
>


-------------------------------------------------------------------------
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