All,
I am trying to develop an advanced alert so that if any of my UPS's go to a condition other than normal (2) that it would send out an email with the verbage something like:
ups710 Condition is not normal. It is 2. <------ This is what I am expecting if it is online and normal
1 unknown
2 Online
3 On Battery
4 On Smart Boost
5 Timed Sleeping
6 Software Bypass
7 Off
8 Rebooting
9 Switched Bypass
10 Hardware Failure Bypass
11 Sleeping Until Power Return
12 On Smart Trim
But what it returns now is:
ups710 Condition is not normal. It is 61. <------ This is what I am seeing when I do an Alert Test - not correct!
1 unknown
2 Online
3 On Battery
4 On Smart Boost
5 Timed Sleeping
6 Software Bypass
7 Off
8 Rebooting
9 Switched Bypass
10 Hardware Failure Bypass
11 Sleeping Until Power Return
12 On Smart Trim
The message structure looks like this:
${NodeName} Condition is not normal. It is ${CustomPollerStatus.Status}.
1 unknown
2 Online
3 On Battery
4 On Smart Boost
5 Timed Sleeping
6 Software Bypass
7 Off
8 Rebooting
9 Switched Bypass
10 Hardware Failure Bypass
11 Sleeping Until Power Return
12 On Smart Trim
I can't figure out how to return the correct value when it is polled. I checked the status in the Custom Poller and it returns correctly yet when I do a test alert it comes back with a number not even close. I have tried the Custom Poller type as raw, enumerated and raw,text - same thing.
It should return a value between 1-12
Ideas?????/