Page 4 of 5
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Jan 02, 2014 9:31 am
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
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Jan 02, 2014 1:30 pm
by abrist
What version of the plugin are you running?
Code: Select all
/usr/local/nagios/libexec/check_snmp_process.pl -V
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 11:01 am
by rashidaq
its this
/usr/local/nagios/libexec/check_snmp_process.pl -V
check_snmp_process version : 1.10
thanks
Ras
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 1:45 pm
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)
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 1:48 pm
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
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 2:43 pm
by rashidaq
but how can this red5 process be shown on Nagios XI for performance monitoring
thanks
Ras
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 3:03 pm
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
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 3:35 pm
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.
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Jan 03, 2014 4:31 pm
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
Re: Nagios XI SNMP collection on discovery mode
Posted: Mon Jan 06, 2014 10:43 am
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?