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

Karl DeBisschop karl at debisschop.net
Mon Feb 10 22:13:11 CET 2003


On Tue, 2003-02-11 at 00:17, Brak wrote:
> Mmm.. maybe I will compile another set.  I tried looking at the strace,
> but haven't been enlightened yet.

When you do, provide the plugin version number and info about the OS's
in question. It is not really possible to provide any help without that
info.

--
Karl

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






More information about the Help mailing list