This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
DonForigua
Posts: 94 Joined: Thu Oct 07, 2021 8:59 pm
Post
by DonForigua » Fri Feb 11, 2022 6:14 pm
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
graph s
thanks for your help
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Mon Feb 14, 2022 12:28 pm
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
DonForigua
Posts: 94 Joined: Thu Oct 07, 2021 8:59 pm
Post
by DonForigua » Tue Feb 15, 2022 10:04 pm
Hi thanks for your help
but the perf data does not run (the service is new)
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Wed Feb 16, 2022 3:00 pm
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.
DonForigua
Posts: 94 Joined: Thu Oct 07, 2021 8:59 pm
Post
by DonForigua » Thu Feb 17, 2022 10:19 am
Done
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Thu Feb 17, 2022 6:37 pm
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.
DonForigua
Posts: 94 Joined: Thu Oct 07, 2021 8:59 pm
Post
by DonForigua » Mon Feb 21, 2022 5:02 pm
Thanks for your help, now is graph ok
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Tue Feb 22, 2022 12:53 pm
That's great to hear! Let us know when we're okay to mark this as resolved and lock the topic.
Thank you!