Can't seem to graph a rate

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rlacasse
Posts: 38
Joined: Tue Jun 12, 2012 12:59 pm

Can't seem to graph a rate

Post by rlacasse »

I'm using the check_nt to get exception rates from a Windows machine

Code: Select all

/usr/local/nagios/libexec/check_nt -H vmnavca2test5 -s "" -p 12489 -v COUNTER -l "\\.NET CLR Exceptions(*)\\# of Exceps Thrown / sec","Exceptions per sec, rate" -w 50 -c 100
in NagiosXI using the check_xi_service_nsclient "Check command" from the dropdown.

The check is successful and returns
Exceptions per sec = 0.00 rate | 'Exceptions per sec'=0.000000 rate;50.000000;100.000000;
Even though the Perfdata seems to be present, I'm not seeing expected rrd file
ls -la /usr/local/nagios/share/perfdata/vmnavca2tst5/
total 6852
drwxrwxr-x. 2 nagios nagios 4096 Feb 6 21:27 .
drwxrwxr-x. 937 nagios nagios 32768 Feb 1 15:31 ..
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:25 ASP.NET_Request_Wait_Time.rrd
-rw-rw-r-- 1 nagios nagios 2106 Feb 6 21:25 ASP.NET_Request_Wait_Time.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:25 CPU_Usage_-_85_95.rrd
-rw-rw-r-- 1 nagios nagios 1913 Feb 6 21:25 CPU_Usage_-_85_95.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:22 Current_connections.rrd
-rw-rw-r-- 1 nagios nagios 2197 Feb 6 21:22 Current_connections.xml
-rw-rw-r--. 1 nagios nagios 2301312 Feb 6 21:22 Disk_Usage_-_all_drives_-_RAIDO.rrd
-rw-rw-r-- 1 nagios nagios 5137 Feb 6 21:22 Disk_Usage_-_all_drives_-_RAIDO.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:26 Drive_E__Disk_Usage.rrd
-rw-rw-r-- 1 nagios nagios 2026 Feb 6 21:26 Drive_E__Disk_Usage.xml
-rw-rw-r--. 1 nagios nagios 1534768 Feb 6 21:26 _HOST_.rrd
-rw-rw-r-- 1 nagios nagios 3118 Feb 6 21:26 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:23 Memory_Usage.rrd
-rw-rw-r-- 1 nagios nagios 2011 Feb 6 21:23 Memory_Usage.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:27 .NET_Memory_percentage_Time_in_GC.rrd
-rw-rw-r-- 1 nagios nagios 2110 Feb 6 21:27 .NET_Memory_percentage_Time_in_GC.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:25 Processor_Time_-_percent.rrd
-rw-rw-r-- 1 nagios nagios 2102 Feb 6 21:25 Processor_Time_-_percent.xml
-rw-rw-r--. 1 nagios nagios 384952 Feb 6 21:25 Uptime.rrd
-rw-rw-r-- 1 nagios nagios 1820 Feb 6 21:25 Uptime.xml
I'm seeing some related items in the perfdata.log for this check for other hosts with the following:
2022-02-06 21:46:34 [15202] [2] Processing Line 286
2022-02-06 21:46:34 [15202] [2] Datatype set to 'SERVICEPERFDATA'
2022-02-06 21:46:34 [15202] [1] Found Performance Data for otherhost / .NET_Clr_Exceptions_per_sec ('Exceptions per sec'=0.000000 rate;50.000000;100.000000;)
2022-02-06 21:46:34 [15202] [2] No Custom Template found for check_xi_service_nsclient (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_nsclient.cfg)
2022-02-06 21:46:34 [15202] [2] RRD Datatype is GAUGE
2022-02-06 21:46:34 [15202] [2] Template is check_xi_service_nsclient.php
2022-02-06 21:46:34 [15202] [2] No pattern match in function _parse(rate;50.000000;100.000000; )
2022-02-06 21:46:34 [15202] [1] Invalid Perfdata detected
similarly in the service-perfdata, I'm haven't been able to capture for the specific host but I see for others
DATATYPE::SERVICEPERFDATA TIMET::1644183935 HOSTNAME::otherhost SERVICEDESC::.NET Clr Exceptions per sec SERVICEPERFDATA::'Exceptions per sec'=0.000000 rate;50.000000;100.000000; SERVICECHECKCOMMAND::check_xi_service_nsclient!!COUNTER!-l "\\.NET CLR Exceptions(*)\\# of Exceps Thrown / sec","Exceptions per sec, rate" -w 50 -c 100!!!!! HOSTSTATE::UP HOSTSTATETYPE::HARD SERVICESTATE::OK SERVICESTATETYPE::HARD SERVICEOUTPUT::Exceptions per sec = 0.00 rate
I checked for the hosts I'm seeing in service-perfdata and perfdata.log, the graphs don't show up either. None of the hosts/service with this service check are graphing results.

Searched high & low to try and find a solution but no luck. Any help on next steps to investigate or better yet resolve would be greatly appreciated.

Thank you,
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Can't seem to graph a rate

Post by ssax »

Please attach the RRD and XML file for this service from that directory so I can review them.

What version of XI are you using? You can grab it from the bottom left hand side of the web interface after logging in.
rlacasse
Posts: 38
Joined: Tue Jun 12, 2012 12:59 pm

Re: Can't seem to graph a rate

Post by rlacasse »

I can't post those files as they don't exist, I wish they did. That's part of the issue describe.

Running Nagios XI 5.8.5
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Can't seem to graph a rate

Post by ssax »

Sorry about that, I misunderstood.

Try changing it to this:
- It's a counter so you want c and I removed the space from it as well

Code: Select all

/usr/local/nagios/libexec/check_nt -H vmnavca2test5 -s "" -p 12489 -v COUNTER -l "\\.NET CLR Exceptions(*)\\# of Exceps Thrown / sec","Exceptions per sec,c" -w 50 -c 100
rlacasse
Posts: 38
Joined: Tue Jun 12, 2012 12:59 pm

Re: Can't seem to graph a rate

Post by rlacasse »

That worked! A great many thanks.
rlacasse
Posts: 38
Joined: Tue Jun 12, 2012 12:59 pm

Re: Can't seem to graph a rate

Post by rlacasse »

Spoke too soon but it made progress. Now, getting:
RRDs::update ERROR /usr/local/nagios/share/perfdata/somehost1/.NET_Clr_Exceptions_per_sec.rrd: not a simple unsigned integer: '0.000000'
rlacasse
Posts: 38
Joined: Tue Jun 12, 2012 12:59 pm

Re: Can't seem to graph a rate

Post by rlacasse »

By using "ops" as the unit, the system interpreted it as a GAUGE and then it displayed properly. The UOM isn't ideal but at least now we're graphing data.

The solution was:
/usr/local/nagios/libexec/check_nt -H vmnavca2test5 -s "" -p 12489 -v COUNTER -l "\\.NET CLR Exceptions(*)\\# of Exceps Thrown / sec","Exceptions per sec,ops" -w 50 -c 100
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Can't seem to graph a rate

Post by ssax »

Interesting, I didn't know ops did that.

But now I see my mistake, I got confused by you checking a COUNTER (which is c), it's really the per sec that makes it a gauge.
Locked