check_snmp_process_wizard.pl lag?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: check_snmp_process_wizard.pl lag?

Post by jbennett »

Code: Select all

# ./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f lane:ves_ocr
Multiple process check failed on :
PROCS CRITICAL: 2 processes with UID = 0 (root), args 'lane'
PROCS CRITICAL: 2 processes with UID = 0 (root), args 'ves_ocr'
I'm going to look into NRDS. Thanks for the link.

EDIT: I'm seeing the following:
These settings affect Nagios XI's ability to accept and process passive host and service check results from external applications, services, and remote Nagios servers. Enabling inbound checks is important in distributed monitoring environments, and in environments where external applications and services send data to Nagios.
This has nothing to do with SNMP Traps, does it?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_snmp_process_wizard.pl lag?

Post by abrist »

Yep, NRDS is an alternative to snmp traps for passive checks.
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.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: check_snmp_process_wizard.pl lag?

Post by jbennett »

jbennett wrote:

Code: Select all

# ./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f lane:ves_ocr
Multiple process check failed on :
PROCS CRITICAL: 2 processes with UID = 0 (root), args 'lane'
PROCS CRITICAL: 2 processes with UID = 0 (root), args 'ves_ocr'
It seems that I am still getting this process as critical?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_snmp_process_wizard.pl lag?

Post by slansing »

What do you get as a return when you check only one valid process, a standard process that would reside on the system other than the two you just tested?
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: check_snmp_process_wizard.pl lag?

Post by jbennett »

slansing wrote:What do you get as a return when you check only one valid process, a standard process that would reside on the system other than the two you just tested?
Here are some examples. I tried a false process in ves_tfer and it returned OK when there was no process by that name.

Code: Select all

 # ./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f lane
Multiple process check failed on :
PROCS CRITICAL: 2 processes with UID = 0 (root), args 'lane'
 # ps ax | grep lane
 2210 ?        SLs    0:00 lane -c /home/rite/config -p 2 -m -d 0x00ff -L 200000

Code: Select all

 # ./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f ves_tfer
Multiple process check OK
 # ps ax | grep ves_tfer
 #

Code: Select all

 # ./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f ves_cap_trx
Multiple process check failed on :
PROCS CRITICAL: 2 processes with UID = 0 (root), args 'ves_cap_trx'
 # ps ax | grep ves_cap_trx
 2139 ?        SL     0:00 ves_cap_trx -c /home/rite/config/ves_cap_config.ini -m -d 0xFF -L 8000000 -p 2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp_process_wizard.pl lag?

Post by scottwilkerson »

I looked through the code a bit and you are not specifying a -c which defaults to 1 for min and max for quantity of processes, which would make the plugin return OK if it was outside of 1:1 but not

What do you get when you run

Code: Select all

./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f ves_cap_trx -s 0 -x 2
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: check_snmp_process_wizard.pl lag?

Post by jbennett »

I still don't think it's working correctly. I have stopped the 'lane' process and verified that it is no longer running, yet the plug-in still shows that it is ok:

Code: Select all

# stoplane
# ps ax | grep lane
# ./check_multi_procs.pl -b /usr/local/nagios/libexec/check_procs -u root -f lane -s 0 -x 2
Multiple process check OK
# startlane
# ps ax | grep lane
 5277 ?        SLs    0:00 lane -c /home/rite/config -p 2 -m -d 0x00ff -L 2000000
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_snmp_process_wizard.pl lag?

Post by lmiltchev »

I am getting similar results on my test box. We will need to do some more digging into this.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: check_snmp_process_wizard.pl lag?

Post by jbennett »

Just wanted to check in on this and see if anything was ever found. I'm trying to run this now via NRDS on our new kernel that's being pushed out.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_snmp_process_wizard.pl lag?

Post by lmiltchev »

Nothing conclusive. I noticed, though, there is a note in the README file:
Note : This module is deprecated if you use last version of check_procs
What is the version of the check_procs that you are using?

Code: Select all

/usr/local/nagios/libexec/check_procs -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked