Page 1 of 8

check_snmp, performance graph and graph explorer discrepancy

Posted: Sun Jul 12, 2015 9:09 pm
by iptribe
Hi,

We have a linux box being monitored in nagiosxi. One of its services configured is Active Sessions. We are getting the values correctly, however the value in graph explorer is different.

when run via command line:

$ /usr/local/nagios/libexec/check_snmp -H x.x.x.x -P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib
SNMP OK - 4 | PERIMETA-MIB::globalStatActiveCalls.summaryPeriod1Current5Minutes=4c

in GUI mode:
2.PNG
Performance Graph does not show for this service.
1.PNG
Graph Explorer Value is different:
3.PNG
Thanks in advance for those who will help.

Re: check_snmp, performance graph and graph explorer discrep

Posted: Sun Jul 12, 2015 9:11 pm
by iptribe
Below is the rrd and xml file.
PROD_SSC_1_Active_Sessions.xml
PROD_SSC_1_Active_Sessions.rrd

Re: check_snmp, performance graph and graph explorer discrep

Posted: Mon Jul 13, 2015 1:07 pm
by ssax
Please run this command:

Code: Select all

tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
Then go to the performance graph that doesn't show and post any error that the command outputs (if any).

I'll take a look at the RRD while you do that.

Re: check_snmp, performance graph and graph explorer discrep

Posted: Mon Jul 13, 2015 9:03 pm
by iptribe
ssax wrote:Please run this command:

Code: Select all

tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
Then go to the performance graph that doesn't show and post any error that the command outputs (if any).

I'll take a look at the RRD while you do that.
Hi,

This is what I got. Though the error came up even before I go to the performance graph.

[root@NFVI-COMMON-NAGIOS-01 ~]# tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
==> /var/log/httpd/error_log <==
[Sun Jul 12 03:35:01 2015] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 12 03:35:01 2015] [notice] Digest: done
[Sun Jul 12 03:35:01 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations

==> /var/log/httpd/ssl_error_log <==
[Sun Jul 12 03:35:01 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jul 12 03:35:01 2015] [warn] RSA server certificate CommonName (CN) `rcscommonsplunk01' does NOT match server name!?

Re: check_snmp, performance graph and graph explorer discrep

Posted: Tue Jul 14, 2015 9:58 am
by tmcdonald
Please go to the details for that service and post a screenshot of the "Advanced" tab which is to the right of "Performance Graphs".

Re: check_snmp, performance graph and graph explorer discrep

Posted: Tue Jul 14, 2015 10:36 am
by iptribe
tmcdonald wrote:Please go to the details for that service and post a screenshot of the "Advanced" tab which is to the right of "Performance Graphs".
Please see below.
1.PNG

Re: check_snmp, performance graph and graph explorer discrep

Posted: Tue Jul 14, 2015 2:29 pm
by tgriep
There might be an issue with the long label returned for the performance data. Lets shorten it by adding the -l label option to your command like below.

/usr/local/nagios/libexec/check_snmp -H x.x.x.x -P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -l ActiveCalls

Then you will have delete the old graph and data files and then the graphs will recreate themselves in about 20 minutes.
Run this to delete them.
rm /usr/local/nagios/share/perfdata/RCS-PROD-SSC-01/PROD_SSC_1_Active_Sessions.*

Wait a while and post back the results.

Re: check_snmp, performance graph and graph explorer discrep

Posted: Wed Jul 15, 2015 3:40 am
by iptribe
tgriep wrote:There might be an issue with the long label returned for the performance data. Lets shorten it by adding the -l label option to your command like below.

/usr/local/nagios/libexec/check_snmp -H x.x.x.x -P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -l ActiveCalls

Then you will have delete the old graph and data files and then the graphs will recreate themselves in about 20 minutes.
Run this to delete them.
rm /usr/local/nagios/share/perfdata/RCS-PROD-SSC-01/PROD_SSC_1_Active_Sessions.*

Wait a while and post back the results.
The graph for the service is now being shown under Performance Graph. However, we are still getting invalid value as shown below. Same data is seen under Graph Explorer.
1.PNG

Re: check_snmp, performance graph and graph explorer discrep

Posted: Wed Jul 15, 2015 9:27 am
by tgriep
We are looking at the graphing issue with check_snmp and counters. As soon as a fix is found, we'll post back.

Re: check_snmp, performance graph and graph explorer discrep

Posted: Wed Jul 15, 2015 11:18 pm
by iptribe
tgriep wrote:We are looking at the graphing issue with check_snmp and counters. As soon as a fix is found, we'll post back.
Hi tgriep,

Appreciate it. :)