USV per SNMP abfragen

ändere das mal in (Punkt anstelle von Komma).

0 "UPS battery voltage" Voltage=12.8;11.0;13.0

und bei den Werten wo du warn/crit mit gibst solltest du die erste Stelle in P ändern

P "UPS battery voltage" Voltage=12.8;11.0;13.0

Danke, das war’s – es muss ein Punkt sein! Ich bekomme es aber nicht über die Warnstufen hin. Hier klettert der Wert nur (Beispiel Storage). Ich möchte aber bei 12,8 - 12,9 grün sein :rofl:

Ich erledige das jetzt über den Service Status; also ohne P.
Macht fast das, was ich brauche :smiley:

if [ "$VOLT" -ge "125" ]; then
        VOLTCMK=0
else
        VOLTCMK=2
fi
VOLT1=$(echo "$VOLT" | head -1 | sed 's: ::g' |sed 's/./&,/2')
"$VOLTCMK \"battery voltage\" Voltage=$VOLT1"

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.