command not defined

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: command not defined

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: command not defined

Post 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?
Last edited by abrist on Tue Feb 04, 2014 3:55 pm, edited 1 time in total.
Reason: Obfuscate IP
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
arenist
Posts: 27
Joined: Fri Nov 29, 2013 9:29 am

Re: command not defined

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: command not defined

Post by abrist »

Everything is a bit of a stretch. How about "I-C-Somethings" ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
arenist
Posts: 27
Joined: Fri Nov 29, 2013 9:29 am

Re: command not defined

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