And again talking to myself:

Am 15.02.2017 um 07:42 schrieb Klaus Muth:
> Hi!
> Is there a good documentation on the performance data syntax, especially on
> the interaction with graphite? I've got the problem of a check script for
> DELL iDRAC, which produces some graphics but not all.
> 
> ---------------
> PS
> --PS 1: OK, Volt I/O: 264 V/230 V, Current: 0.6 A, Watt I/O: 900.0 W/750 W |
> VoltINPUT=264;;;; VoltOUTPUT=230;;;; Current=0.6;;;; WattINPUT=900.0;;;;
> WattOUTPUT=750;;;;
> --PS 2: OK, Volt I/O: 264 V/230 V, Current: 0.2 A, Watt I/O: 900.0 W/750 W |
> VoltINPUT=264;;;; VoltOUTPUT=230;;;; Current=0.2;;;; WattINPUT=900.0;;;;
> WattOUTPUT=750;;;;
> FAN
> --System Board Fan1: 2880 RPM - ENABLED/OK | RPM=2880;;;;
> --System Board Fan2: 2880 RPM - ENABLED/OK | RPM=2880;;;;
> --System Board Fan3: 3000 RPM - ENABLED/OK | RPM=3000;;;;
> --System Board Fan4: 2880 RPM - ENABLED/OK | RPM=2880;;;;
> --System Board Fan5: 2880 RPM - ENABLED/OK | RPM=2880;;;;
> --System Board Fan6: 2880 RPM - ENABLED/OK | RPM=2880;;;;
> -----------------
This is why graphite can't produce graphics:
root@icinga:/var/lib/graphite/whisper/icinga2/.../perfdata# ll
insgesamt 44
drwxr-xr-x 11 _graphite _graphite 4096 Jul 19  2016 ./
drwxr-xr-x  3 _graphite _graphite 4096 Jul 19  2016 ../
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 Current/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 _PwrConsumption/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 _RPM/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 _Temperature/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 VoltINPUT/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 _VoltINPUT/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 VoltOUTPUT/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 WattINPUT/
drwxr-xr-x  2 _graphite _graphite 4096 Jul 19  2016 WattOUTPUT/

Having the same Name for all perfdata apparently won't work. So I learned
enough python to fiddle the check_idrac script to get different names for all
values.

Furthermore there seems to be a glitch beginning on the second perfdata line:
the first space character isn't stripped from the Value name and so RPM is
renamed to _RPM. So removed spaces following the | in perfdata.

Fixed the problem.

klaus
-- 
Klaus Muth
Hagos eG                   EDV                    Tel: 0711/78805-7085
Zentrale Stuttgart         Industriestr. 62       Fax: 0711/78805-7035
http://www.hagos.de        70565 Stuttgart               m...@hagos.de

Hagos eG
Sitz:                      Stuttgart
Rechtsform:                Genossenschaft
Registergericht:           Stuttgart GnR 77
Vorstände:                 Guido Eichel, Ralf Tigges
Aufsichtsratsvorsitzender: Thomas Müller
USt.-ID-Nr.:               DE 147799748
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to