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

monitor PMON and listner

Post by cyient »

Hi,

We are looking to monitor PMON and listner in a Oracle server but unable to find the plugins.

Any idea about this ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitor PMON and listner

Post by scottwilkerson »

This listing says it can monitor the PMON process
http://exchange.nagios.org/directory/Pl ... 29/details
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

check_pid.doc
Hi i have written a bash script for monitoring the process which we are looking for but i get timed out error when calling the script from nagios server through nrpe but when i call other check_load or check_user commands i get the output easily.

Is there any modification to be done to the script, i have attached the script for reference.

Please suggest on this.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitor PMON and listner

Post by abrist »

Can you post the service and command definition for the check, as well as the nrpe.cfg command from the remote host?
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.
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

I'm executing the service through nrpe from nagios server as below

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.3.4 -c check_ora
in nrpe.cfg file on remote server command definition is as below

Code: Select all

command[check_ora]=/usr/local/nagios/libexec/check_pid -p ora_pmon_pcontrolqq
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitor PMON and listner

Post by abrist »

You may have permission problems or timeout issues.
Run the following on the remote system:

Code: Select all

su - nagios -c "time /usr/local/nagios/libexec/check_pid -p ora_pmon_pcontrolqq"
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.
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: monitor PMON and listner

Post by cyient »

Here is the output of the command

Code: Select all

 su - nagios -c "time /usr/local/nagios/libexec/check_pid -p ora_pmon_pcontrolqq"
Password:
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
ora_pmon_pcontrolqq is running.

real    0m0.086s
user    0m0.005s
sys     0m0.026s
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: monitor PMON and listner

Post by sreinhardt »

While I am not sure which one it is, as they are all valid, or so it seems one of your greps is failing. This may or may not cause the issue you are seeing, but should be resolved regardless. The standard error output may be causing the delay or pseudo delay that makes check_nrpe timeout. You might also try adding a -t 30 flag to extend the timeout even though it doesn't appear to need it.
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 tried using the timeout arg but it did not work.

Code: Select all

$ /usr/local/nagios/libexec/check_nrpe -H 192.168.3.4 -c check_ora -t 30
CHECK_NRPE: Socket timeout after 30 seconds.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: monitor PMON and listner

Post by slansing »

Have you verified that you can make an actual connection via the NRPE socket to that host? What is the output of:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.3.4
Locked