[Nagiosplug-help] check_rpc always succeeds if servicename exists?

Subhendu Ghosh sghosh at sghosh.org
Mon Feb 10 22:11:07 CET 2003


version info is always helpful. check_rpc is a perl script so perl -d 
would be more helpful than strace..

-sg

On Tue, 11 Feb 2003, Brak wrote:

> 
> Mmm.. maybe I will compile another set.  I tried looking at the strace,
> but haven't been enlightened yet.
> 
> 
> [root at desktop2 libexec]# ./check_ssh -H ia00741
> connect(): No route to host for ia00741:22
> [root at desktop2 libexec]# ./check_rpc -H ia00741 -C portmapper
> OK: RPC program portmapper udp running
> [root at desktop2 libexec]# ping ia00741
> PING ia00741 (209.237.233.105) from 209.237.232.42 : 56(84)
> bytes of data.
> >From desktop2.(209.237.232.42): Destination Host Unreachable
> >From desktop2 (209.237.232.42): Destination Host Unreachable
> >From desktop2 (209.237.232.42): Destination Host Unreachable
> 
> --- ia00741.archive.org ping statistics ---
> 5 packets transmitted, 0 packets received, +3 errors, 100% packet loss
> [root at desktop2 libexec]#
> 
> 
> On 11 Feb 2003, Karl DeBisschop wrote:
> 
> > On Mon, 2003-02-10 at 23:46, Brak wrote:
> > > So I have this host, lets call it foo.  ./check_rpc -H foo -C portmapper
> > > will succeed even if the machine, foo, is turned off, and all other checks
> > > fail. ?!
> >
> > I don't see what leads you to believe that.
> >
> > $ ./check_rpc -V
> > check_rpc (nagios-plugins 1.3.0-beta2) 1.7
> > $ ./check_rpc -H firewalled.host.example -C portmapper
> > ERROR: No response from RPC server (alarm)
> > $ ./check_rpc -H local.nonrpc.host -C portmapper
> > CRITICAL: RPC program portmapper  udp is not running
> > $ ./check_rpc -H powered.off.host -C portmapper
> > CRITICAL: RPC program portmapper  udp is not running
> >
> > (all the above are Red Hat Linux 7.2 or 7.3, tested from Red Hat 8.0.92)
> >
> > --
> > Karl
> >
> >
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.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
> 

-- 






More information about the Help mailing list