Hi good afternoon before everything.
I’m starting a little with The Dude. I have always performed basic tasks, but now I’m trying to deepen the probe functions for more information.
I’m working with version 6.36.2 on the x86 architecture.
In this case I’m trying to get the values of the function:
Name: PSU1_Voltaje
Description: Voltage PSU 1
Code: oid ( “1.3.6.1.4.1.7465.20.2.9.1.3.1.6.1.3.12.1”)
It obtine result: 220000 Volts. The problem is that I want to make that value: 220 Volts, for this I made the following structure:
Name: PSU1_Voltaje
Description: Voltage PSU 1
Code: oid ( “1.3.6.1.4.1.7465.20.2.9.1.3.1.6.1.3.12.1”) / 1000
But the result becomes 0.
I incorporate information “probe”:
_Name: PSU1_Voltaje
Type: Function
Agent: Default
Available: PSU1_Voltaje()
Error: if (PSU1_Voltaje()> 215, “”, “electrical problem”)
Value: PSU1_Voltaje()
Unit: Voltios
Can you help with the case ?. I looked through the forum’s web and for such things as seen just simply set / 1000 and the value fits what I need.
I take this opportunity to ask, is there a guide to follow functions.?
Thank you very much for the time spent.