Page 1 of 2

SOME graphs broken after upgrade

Posted: Fri Jul 18, 2014 12:00 pm
by highness
We did an upgrade to XI 2014R1.2 when it first became available. The upgrade went pretty much without a hitch. A few days later, we noticed that a couple of our graphs quit working, but the other 1000+ work fine.

Of course, the two that aren't working are the ones that our team needs to be looking at.

The service that we're trying to graph is for Active VPN Sessions. It just comes up blank. All the other services

The service returns the value ok, but it just won't graph it.

Any suggestions?

Re: SOME graphs broken after upgrade

Posted: Fri Jul 18, 2014 12:09 pm
by abrist
Could you post the output of one of the vpn checks? I want to see if the perfdata is valid.

Re: SOME graphs broken after upgrade

Posted: Fri Jul 18, 2014 1:28 pm
by highness

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp -H my.cisco_vpn_concentrator.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u "\(Number of Sessions\)" -m RFC1155-SMI -c :35

Code: Select all

OUTPUT: SNMP OK - Active VPN Sessions 27 (Number of Sessions) | 'Active VPN Sessions'=27(Number of Sessions);;35;

Re: SOME graphs broken after upgrade

Posted: Fri Jul 18, 2014 2:37 pm
by abrist
Well, the check looks right, but the string omit is not working. Could you try removing the escapes on the parens?

Re: SOME graphs broken after upgrade

Posted: Fri Jul 18, 2014 2:42 pm
by highness
abrist wrote:Well, the check looks right, but the string omit is not working. Could you try removing the escapes on the parens?
Actually, those must have been added by phpBB. Those don't appear when I run the command.

Re: SOME graphs broken after upgrade

Posted: Fri Jul 18, 2014 8:22 pm
by Box293
highness wrote:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp -H my.cisco_vpn_concentrator.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u "\(Number of Sessions\)" -m RFC1155-SMI -c :35

Code: Select all

OUTPUT: SNMP OK - Active VPN Sessions 27 (Number of Sessions) | 'Active VPN Sessions'=27(Number of Sessions);;35;
The UOM containts spaces and this will be causing issues "(Number of Sessions)".

Perhaps try -u "\(Number_of_Sessions\)" in your check_snmp command.


https://nagios-plugins.org/doc/guidelines.html#AEN200

'label'=value[UOM];[warn];[crit];[min];[max]
UOM (unit of measurement) is one of:
no unit specified - assume a number (int or float) of things (eg, users, processes, load averages)
s - seconds (also us, ms)
% - percentage
B - bytes (also KB, MB, TB)
c - a continous counter (such as bytes transmitted on an interface)

Re: SOME graphs broken after upgrade

Posted: Mon Jul 21, 2014 9:50 am
by highness
Box293 wrote:
highness wrote:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp -H my.cisco_vpn_concentrator.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u "\(Number of Sessions\)" -m RFC1155-SMI -c :35
/usr/local/nagios/libexec/check_snmp -H hq1-asa-1.vsp.com my.cisco_vpn_concentrator.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u"(Number of Sessions)" -m RFC1155-SMI -c :35

Code: Select all

OUTPUT: SNMP OK - Active VPN Sessions 27 (Number of Sessions) | 'Active VPN Sessions'=27(Number of Sessions);;35;
The UOM containts spaces and this will be causing issues "(Number of Sessions)".

Perhaps try -u "\(Number_of_Sessions\)" in your check_snmp command.
Tried that, no joy. Here is the modified command and the output from that:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp -H my.cisco_vpn_concentrator.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u -m RFC1155-SMI -c :35

Code: Select all

OUTPUT: SNMP OK - Active VPN Sessions 17 -m | 'Active VPN Sessions'=17-m;;35; 

Re: SOME graphs broken after upgrade

Posted: Mon Jul 21, 2014 4:13 pm
by tmcdonald

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp -H my.cisco_vpn_concentrator.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u -m RFC1155-SMI -c :35
You're missing the -u paramater, so it seems to think that "-m" is the argument to -u.

Re: SOME graphs broken after upgrade

Posted: Mon Jul 21, 2014 4:41 pm
by highness
Here is the what I'm getting returned now

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp -H my.asa.hostname.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -u"(Number of Sessions)" -m RFC1155-SMI -c :35

Code: Select all

OUTPUT: SNMP OK - Active VPN Sessions 33 (Number of Sessions) | 'Active VPN Sessions'=33(Number of Sessions);;35; 
Does that look right? If so, the next step is to figure out why it's not graphing.

The weird thing is that this check wasn't updated and worked fine before we upgrade. After the upgrade, this check fails to graph...

Re: SOME graphs broken after upgrade

Posted: Mon Jul 21, 2014 4:46 pm
by abrist
That looks ok, but the unit label is breaking graphing. Can you run the check without the -u "<string"?

Code: Select all

/usr/local/nagios/libexec/check_snmp -H my.asa.hostname.com -p 161 -o enterprises.9.9.392.1.3.1.0 -C idontknow -P 2c -l "Active VPN Sessions" -m RFC1155-SMI -c :35