Page 1 of 1
How to get cpu and memory perf data
Posted: Fri Feb 11, 2022 6:14 pm
by DonForigua
Hi i use the check_xi_service_snmp_win_process
Code: Select all
[nagios@XXXXXXXXXXXXX ~]$ /usr/local/nagios/libexec/check_snmp_process.pl -H 172.22.16.157 -C XXXXXXXXXXX -n SiteScope.exe -m 25000,30000 -u 400,500 -t 58
1 process matching SiteScope.exe (> 0), Mem : 24866.4Mb > 95 ok, Cpu : 148% > 95 ok
i need generate perf data graphs
thanks for your help
Re: How to get cpu and memory perf data
Posted: Mon Feb 14, 2022 12:28 pm
by ssax
The help section lists this:
Code: Select all
/usr/local/nagios/libexec/check_snmp_process.pl -h
-F, --perfout
Add performance output
outputs : memory_usage, num_process, cpu_usage
Try this one:
Code: Select all
/usr/local/nagios/libexec/check_snmp_process.pl -H 172.22.16.157 -C XXXXXXXXXXX -n SiteScope.exe -m 25000,30000 -u 400,500 -t 58 -F
Re: How to get cpu and memory perf data
Posted: Tue Feb 15, 2022 10:04 pm
by DonForigua
Hi thanks for your help
but the perf data does not run (the service is new)
Re: How to get cpu and memory perf data
Posted: Wed Feb 16, 2022 3:00 pm
by ssax
Please zip up and
PM me the
RRD and
XML file for this service from this directory so I can analyze them:
- THEHOSTNAME is the hostname in XI
Code: Select all
/usr/local/nagios/share/perfdata/THEHOSTNAME/
You can grab it with WinSCP.
Re: How to get cpu and memory perf data
Posted: Thu Feb 17, 2022 10:19 am
by DonForigua
Done

Re: How to get cpu and memory perf data
Posted: Thu Feb 17, 2022 6:37 pm
by ssax
Your RRD doesn't have enough data sources (it shows 2):
Code: Select all
[root@xid ~]# rrdtool info Process_sitescope.exe_en_TFM1246_NAGASAKI.rrd | grep ds
ds[1].index = 0
ds[1].type = "GAUGE"
ds[1].minimal_heartbeat = 8460
ds[1].min = NaN
ds[1].max = NaN
ds[1].last_ds = "11637.9"
ds[1].value = 6.9827400000e+04
ds[1].unknown_sec = 0
ds[2].index = 1
ds[2].type = "GAUGE"
ds[2].minimal_heartbeat = 8460
ds[2].min = NaN
ds[2].max = NaN
ds[2].last_ds = "1"
ds[2].value = 6.0000000000e+00
ds[2].unknown_sec = 0
The plugin is trying to insert 3 metrics into a 2 datasource RRD (which the RRD won't allow and the data insertion fails) so the plugin or options must have changed:
Code: Select all
'memory_usage'=13384.2MB;26000;30000 'cpu_usage'=124%;400;600 'num_process'=1;0;0
You'll either need to do this to add a datasource to the RRD:
https://support.nagios.com/kb/article/n ... g-149.html
Or delete/rename the backend RRD file:
Code: Select all
mv /usr/local/nagios/share/perfdata/TFM1246_NAGASAKI/Process_sitescope.exe_en_TFM1246_NAGASAKI.rrd /usr/local/nagios/share/perfdata/TFM1246_NAGASAKI/Process_sitescope.exe_en_TFM1246_NAGASAKI.rrd.OLD
That would rebuild it on the next check and graph properly going forward.
Re: How to get cpu and memory perf data
Posted: Mon Feb 21, 2022 5:02 pm
by DonForigua
Thanks for your help, now is graph ok
Re: How to get cpu and memory perf data
Posted: Tue Feb 22, 2022 12:53 pm
by ssax
That's great to hear! Let us know when we're okay to mark this as resolved and lock the topic.
Thank you!