check_snmp, performance graph and graph explorer discrepancy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

check_snmp, performance graph and graph explorer discrepancy

Post 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.
You do not have the required permissions to view the files attached to this post.
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post by iptribe »

Below is the rrd and xml file.
PROD_SSC_1_Active_Sessions.xml
PROD_SSC_1_Active_Sessions.rrd
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

Re: check_snmp, performance graph and graph explorer discrep

Post 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.
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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!?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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".
Former Nagios employee
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post 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. :)
Locked