[icinga-users] Graphite writer and perf data

Zachary McGibbon zachary.mcgibbon at gmail.com
Wed Nov 18 14:42:51 CET 2015


Exactly, it seems that the check_snmp that I'm using doesn't send the
output correctly when using units, however it works fine with labels.

Ex:

# /usr/lib64/nagios/plugins/check_snmp -H burnside-ups-2 -C public -o
1.3.6.1.4.1.318.1.1.1.2.2.1.0 -u "%"
SNMP OK - 100 % | iso.3.6.1.4.1.318.1.1.1.2.2.1.0=100%

# /usr/lib64/nagios/plugins/check_snmp -H burnside-ups-2 -C public -o
1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l "%"
SNMP OK - % 100 | %=100

My Redhat install is still using the old nagios-plugins:

# /usr/lib64/nagios/plugins/check_snmp --version
check_snmp v2.0.3 (nagios-plugins 2.0.3)

Installed Packages
Name        : nagios-plugins-snmp
Arch        : x86_64
Version     : 2.0.3
Release     : 3.el6
Size        : 105 k
Repo        : installed
>From repo   : epel
Summary     : Nagios Plugin - check_snmp
URL         : https://www.nagios-plugins.org/
License     : GPLv2+
Description : Provides check_snmp support for Nagios.


On Wed, Nov 18, 2015 at 4:43 AM, Alexander Wirt <formorer at formorer.de>
wrote:

> On Tue, 17 Nov 2015, Zachary McGibbon wrote:
>
> > Is something wrong in my config?  Graphite seems to be refusing a lot of
> my
> > performance data.  Is there a space missing after the number and the
> unit?
> >
> > Here is a snippet:
> >
> > [2015-11-17 11:49:06 -0500] warning/GraphiteWriter: Ignoring invalid
> > perfdata value: iso.3.6.1.2.1.105.1.3.1.1.4.1=77Watts;180;190;
> > Context:
> >         (0) Processing check result for 'leacock-poe-b2!POE - Load'
> The unit is not a valid one. Since graphite is pretty strict when it comes
> to
> numbers and units icinga2 has to reformat some numbers. It is only able to
> do
> it if the units in the perfdatastring follows the monitoring plugins
> development guidelines [1]. Perfdatastrings that don't follow these rules
> will get ignored.
>
> The plugin needs to get fixed, icinga2 is right about it.
>
> Hope that helps
>
> Alex
>
> [1] https://www.monitoring-plugins.org/doc/guidelines.html#AEN201
>
> _______________________________________________
> icinga-users mailing list
> icinga-users at lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20151118/05e7444d/attachment.html>


More information about the icinga-users mailing list