Hello Mike,
This is possible: The SNMP Dell PowerEdge System Health Sensor uses Lookups. A lookup is a status table that will map numerical values (0, 1, 2, 3) to statuses (Ok, warning, error).
That way it is possible to create a modified copy of the lookup definition file and create a new status definition where running is bad and stopped is good.
This is the default lookup used by this channel/sensor
<?xml version="1.0" encoding="UTF-8"?>
<ValueLookup id="prtg.standardlookups.dell.dellstatus" desiredValue="3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd">
<Lookups>
<SingleInt state="Error" value="1">Other</SingleInt>
<SingleInt state="Error" value="2">Unknown</SingleInt>
<SingleInt state="Ok" value="3">Ok</SingleInt>
<SingleInt state="Warning" value="4">Non Critical</SingleInt>
<SingleInt state="Error" value="5">Critical</SingleInt>
<SingleInt state="Error" value="6">Non Recoverable</SingleInt>
</Lookups>
</ValueLookup>
It defines the following:
Value | Sensor State | Status Description/Name |
1 | Error | Other |
2 | Error | Unknown |
3 | Ok | Ok |
4 | Warning | Non Critical |
5 | Error | Critical |
6 | Error | Non Recoverable |
Most monitored devices that implement SNMP reply with integer values (1,2,3,4..) that relate to statuses, rather than replying with a string like "Everything is fine" which wouldn't be very scalable/practical.
In this case, that sensor is using the prtg.standardlookups.dell.dellstatus lookup which defines the value of 4 as a Warning State with the message Non Critical. (You can see which lookup is being used within the channel's settings)
To modify the alerting behavior for the affected(Global System Status) channel of this sensor, please perform the following:
- Copy the prtg.standardlookups.dell.dellstatus.ovl file to the \custom sub-folder from (C:\Program Files (x86)\PRTG Network Monitor\lookups)
- Rename the file to prtg.customlookups.dell.dellstatus.ovl and update the id="prtg.customlookups.dell.dellstatus" in the second line of the file as well.
- Modify the line that states state="Warning" value="4" to state="Ok" value="4"
- Head to Setup > Administrative Tools within PRTG's web-interface. Issue a re-load Lookups.
- Finally, head to the sensor that's generating the alert, and click the Global System Status channel to open it's settings.
- Within the sensor's settings, switch from the prtg.standardlookups.dell.dellstatus to the newly created prtg.customlookups.dell.dellstatus (if it doesn't show up, repeat step 4 and if the issue persists check Tickets for any alerts about problems loading lookups.
- The sensor will now follow the custom lookup and the warning alert will no longer be displayed. If you wish to apply this to other sensors or channels in bulk, please refer to Multi-Edit lists
IMPORTANT NOTE
- If you only copy the original file to the lookups\custom folder (C:\Program Files (x86)\PRTG Network Monitor\lookups\custom) and perform the state="ok" modification, all sensors and channels that use this lookups will follow the new behavior, which may cause you to miss actual alerts.
For further information regarding lookups:
Add comment