Page 4 of 4

Re: command not defined

Posted: Wed Jan 29, 2014 11:18 am
by abrist
My apologies, but I never received the pm. My mailbox did fill a few weeks ago though. I would still be happy to look if you want to to resend.

Re: command not defined

Posted: Tue Feb 04, 2014 3:48 pm
by abrist
Well, this is a stumper. You configs look fine. The following quotes would imply that it is working fine.
arenist wrote:Dec 18 14:31:25 vbgmadb11 nrpe[25880]: Added command[check_lsnr]=/usr/local/nagios/libexec/check_listener.bsh
arenist wrote:Dec 18 14:31:25 vbgmadb11 nrpe[25880]: Handling the connection...
Dec 18 14:31:25 vbgmadb11 nrpe[25880]: Host is asking for command 'check_lsnr' to be run...
Dec 18 14:31:25 vbgmadb11 nrpe[25880]: Running command: /usr/local/nagios/libexec/check_listener.bsh
Dec 18 14:31:26 vbgmadb11 nrpe[25880]: Command completed with return code 0 and output: Oracle Listener is working fine.
Dec 18 14:31:26 vbgmadb11 nrpe[25880]: Return Code: 0, Output: Oracle Listener is working fine.
Dec 18 14:31:26 vbgmadb11 xinetd[25407]: EXIT: nrpe status=0 pid=25880 duration=1(sec)
But, I did notice something. Your host definition:

Code: Select all

define host{
	use			linux-server
	host_name               vbgmadb11
	alias                   VBGMADB11
	address                 x.x.x.179
	contact_groups		admins
}
Has x.x.x.179 listed, but the nagios box resolves vbgmadb11 to x.x.x.178:
arenist wrote:nagios@madpbk51:~> ping vbgmadb11
PING vbgmadb11.dpma.de (x.x.x.178) 56(84) bytes of data.
64 bytes from vbgmadb11.dpma.de (x.x.x.178): icmp_seq=1 ttl=63 time=0.566 ms
64 bytes from vbgmadb11.dpma.de (x.x.x.178): icmp_seq=2 ttl=63 time=0.359 m
Could this be your issue?

Re: command not defined

Posted: Wed Feb 05, 2014 2:44 am
by arenist
Hi abrist,

you are definitively the greatest! :D :D The wrong IP address was indeed the reason for nagios to fail. After correcting it nagios is working fine again. You should change your nick to I-C-everything. ;) It was "just" a mistake of copy-and-paste.

Thank you very much and kind regards,
Arenist

PS: This posting can be closed.

Re: command not defined

Posted: Thu Feb 06, 2014 1:21 pm
by abrist
Everything is a bit of a stretch. How about "I-C-Somethings" ?

Re: command not defined

Posted: Fri Feb 07, 2014 1:17 am
by arenist
Hi abrist,

I-C-everything should mean "I see everything". I think, this mistake of mine was really hard to find.

Best regards,
Arenist