monitor PMON and listner

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

output is as follows

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.3.4
NRPE v2.12
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: monitor PMON and listner

Post by sreinhardt »

Could you tcpdump the communication between the two machines and post it back here?

Start:

Code: Select all

tcpdump -i eth0 -w /tmp/nrpe.pcap -nnXSs 0 'port 5666'
run your nrpe check command:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.3.4 -c check_ora -t 60
Stop the tcpdump command with ctrl+c after nrpe times out.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

I have run the code and below are the outputs.

Code: Select all

[root@NAGIOSXI-64 ~]# tcpdump -i eth0 -w /tmp/nrpe.pcap -nnXSs 0 'port 5666'
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C581 packets captured
839 packets received by filter
136 packets dropped by kernel
97 packets dropped by interface
[root@NAGIOSXI-64 ~]#

Code: Select all

[root@NAGIOSXI-64 ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.3.4 -c check_ora -t 60
CHECK_NRPE: Socket timeout after 60 seconds.
[root@NAGIOSXI-64 ~]#
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: monitor PMON and listner

Post by tmcdonald »

I believe sreinhardt wants you to post the /tmp/nrpe.pcap file that was created. And did you make sure to leave the tcpdump running *while* you ran that check_nrpe command?
Former Nagios employee
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

nrpe.pcap.txt
tmcdonald wrote:I believe sreinhardt want you to post the /tmp/nrpe.pcap file that was created. And did you make sure to leave the tcpdump running *while* you ran that check_nrpe command?
tcpdump is left running while running the check_nrpe command.

Attached nrpe.cap file please rename the file to nrpe.cap
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: monitor PMON and listner

Post by tmcdonald »

I'm not seeing any mention of 192.168.3.4 in that capture. Can you explain the connection between the two devices? Is there an interface other than eth0 that would be in use? What IPs specifically belong to the Nagios server and the remote NRPE client?
Former Nagios employee
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

Actually the remote server IP is 172.17.43.25 and nagios server IP is 172.17.1.129 hostname is INFHYDNAGIOSXI-64.NAGIOSERVER.COM

eth0 is the only interface through which it would be communicating.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: monitor PMON and listner

Post by tmcdonald »

But where does 192.168.3.4 come into play? I am seeing that in all of your commands and output so far but it is not in the pcap you sent us. Are you replacing the real IP with that one when posting here? Or is that not the right server?
Former Nagios employee
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

Hi i was replacing real IP (172.17.43.25) with 192.168.3.4 IP
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: monitor PMON and listner

Post by Box293 »

I beleive your problem has to do with the creation of temp files.

Change:

Code: Select all

tmp=$( mktemp temp.XXXXXX )
tmp2=$( mktemp temp.XXXXXX )
To:

Code: Select all

tmp=$( mktemp /tmp/temp.XXXXXX )
tmp2=$( mktemp /tmp/temp.XXXXXX )
And the plugin should work.
sreinhardt wrote:it seems one of your greps is failing. This may or may not cause the issue you are seeing, but should be resolved regardless
You should also follow sreinhardt's advice.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked