Closed Aleksey-Maksimov closed 1 year ago
Hi @Aleksey-Maksimov, If I understand correctly, the returned value is zero whether nothing is plugged or no voltage is provided.
I do not see a way to detect if something's wrong with the absence of voltage on extra inputs (since zero can be a normal value), but I propose to raise a critical alert when none of the input lines have electric tension.
E.g.:
.1.3.6.1.2.1.33.1.3.3.1.2.1 = 499
.1.3.6.1.2.1.33.1.3.3.1.3.1 = 0
.1.3.6.1.2.1.33.1.3.3.1.4.1 = 0
.1.3.6.1.2.1.33.1.3.3.1.5.1 = 0
we can't tell if the second line being at 0 is normal or not, but
.1.3.6.1.2.1.33.1.3.3.1.2.1 = 0
.1.3.6.1.2.1.33.1.3.3.1.3.1 = 0
.1.3.6.1.2.1.33.1.3.3.1.4.1 = 0
.1.3.6.1.2.1.33.1.3.3.1.5.1 = 0
we can tell it's not normal.
Do you agree with this behaviour?
Hello @omercier
I don't understand what you mean by "extra inputs". My example uses a single-phase UPS with a single input.
As you can see in my example, the options '--critical-frequence' '49:51' '--critical-voltage' '198:242' are used. But with no voltage at all (both frequence and voltage values are zero) I get incorrect plugin behavior:
1) It doesn't show CRITICAL status 2) It does not return perfdates with "0" values.
Ok, sorry I got it wrong. We'll take this issue soon, it is in our internal bug tracker now.
Hello. @omercier
I don't understand. Was the problem solved in the plugin or did you just close the issue?
Hi @Aleksey-Maksimov, I closed the issue but the fix will soon be pushed in a PR.
Hello
This is what the plugin output looks like if the UPS is operating normally. Everything is fine here:
This is what the plugin output looks like if the incoming voltage to the UPS is lost. It does not change the status from OK to CRITICAL and does not show perfdata: