Nagios XI SNMP collection on discovery mode

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rashidaq
Posts: 20
Joined: Mon Dec 02, 2013 12:28 pm

Re: Nagios XI SNMP collection on discovery mode

Post by rashidaq »

thanks
I tried this on the Nagios
-------------------------------------------------------------------------------------------------------------------------------------------------------
[root@nagios ~]# /usr/local/nagios/libexec/check_snmp_process.pl -H 192.168.156.183 -C DCSZONEA --v2c -n 'java' -A 'red5'
3 process matching java (> 0)
-------------------------------------------------------------------------------------------------------------------------------------------------------

so what do I get from this result, how can this '3 process matching java (> 0)', help me on Nagios XI performance monitoring of red5 process



thanks in advance
Ras
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios XI SNMP collection on discovery mode

Post by abrist »

What version of the plugin are you running?

Code: Select all

/usr/local/nagios/libexec/check_snmp_process.pl -V
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.
rashidaq
Posts: 20
Joined: Mon Dec 02, 2013 12:28 pm

Re: Nagios XI SNMP collection on discovery mode

Post by rashidaq »

its this

/usr/local/nagios/libexec/check_snmp_process.pl -V
check_snmp_process version : 1.10


thanks
Ras
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI SNMP collection on discovery mode

Post by lmiltchev »

I don't believe the plugin is capable of monitoring multiple processes this way...
Warning : the -f & -A option will not function properly for Windows hosts (the snmp agent don't give this information)
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI SNMP collection on discovery mode

Post by scottwilkerson »

rashidaq wrote:thanks
I tried this on the Nagios
-------------------------------------------------------------------------------------------------------------------------------------------------------
[root@nagios ~]# /usr/local/nagios/libexec/check_snmp_process.pl -H 192.168.156.183 -C DCSZONEA --v2c -n 'java' -A 'red5'
3 process matching java (> 0)
-------------------------------------------------------------------------------------------------------------------------------------------------------

so what do I get from this result, how can this '3 process matching java (> 0)', help me on Nagios XI performance monitoring of red5 process



thanks in advance
Ras
This means you have 3 process running that are java processes and have red5 in the arguments.

the reason iis is showing "(> 0)" is because we didn't specify warning or critical levels, so it is defaulting to 0
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rashidaq
Posts: 20
Joined: Mon Dec 02, 2013 12:28 pm

Re: Nagios XI SNMP collection on discovery mode

Post by rashidaq »

but how can this red5 process be shown on Nagios XI for performance monitoring

thanks
Ras
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI SNMP collection on discovery mode

Post by slansing »

You would need to add a custom command, and define a host + service for this check:

http://assets.nagios.com/downloads/nagi ... lugins.pdf
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI SNMP collection on discovery mode

Post by scottwilkerson »

If you want to add performance data you can add a -F to the command, e.g.

Code: Select all

/usr/local/nagios/libexec/check_snmp_process.pl -H 192.168.156.183 -C DCSZONEA -F --v2c -n 'java' -A 'red5'
This will cause the plugin to also output performance data which will result in Nagios XI creating a performance graph.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rashidaq
Posts: 20
Joined: Mon Dec 02, 2013 12:28 pm

Re: Nagios XI SNMP collection on discovery mode

Post by rashidaq »

thank you
i got this result, does the result show some performance result?
------------------------------------------------------------------------------------------------------------------------------
[root@nagios ~]# /usr/local/nagios/libexec/check_snmp_process.pl -H 192.168.156.183 -C DCSZONEA -F --v2c -n 'java' -A 'red5'
3 process matching java (> 0) | 'num_process'=3;0;0
----------------------------------------------------------------------------------------------------------------------------------------


so you are saying if I put this as plugin to nagios XI and give the right arguments on the XI, this will show the performance graph.. let me read more to bel;ieve it

If this works, this will be excellent help from you guys..


one more
so host + command does not work on the monitored host that linux box ? any clue?


thanks
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios XI SNMP collection on discovery mode

Post by sreinhardt »

It would create performance data and monitor the number of java processes, it would not give any specifics on those processes other than how many are running. If that is acceptable, then yes adding to XI would generate the information as described.

As for your other question, can you please explain further what you mean?
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.
Locked