check_snmp: Timeticks are not being parsed correctly before performance data (#1369)

waja notifications at github.com
Mon Oct 5 12:53:43 CEST 2015


When using certain OIDs with check_snmp the performance data after the '|'
(pipe) is not being written because of the "Timeticks(n)" label. Currently,
it will see that the output it is not an integer and it will not be
displayed.

$ /usr/lib/nagios/plugins/check_snmp -H localhost -C public -o
.1.3.6.1.2.1.25.1.1.0
SNMP OK - Timeticks: (112941395) 13 days, 1:43:33.95 |

See also https://github.com/nagios-plugins/nagios-plugins/issues/108
You can view, comment on, or merge this pull request online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1369

-- Commit Summary --

  * Timeticks are not being parsed correctly before performance data

-- File Changes --

    M plugins/check_snmp.c (5)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1369.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1369.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1369
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20151005/b6649b9e/attachment.html>


More information about the Devel mailing list