Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Some of units have a special SNMP data OID that coding a system state by integer number. Let’s try to read this code by SNMP GET, recognize this code and send a special message to the user.

You can recognize code using the SNMP GET (discrete), but if there are many codes (more then 9), then the string comparison will not work. Because comparison with a string "1" will also make coincidences with the strings "10", "11", "21", etc.

Choose another way. Create SNMP GET (analog) element for reading code state from remote unit. Set the value for the thresholds so that the codes set into the normal range (just not distracted).

Create a "Math" virtual sensor for catch state number 7. Set the thresholds so that only the value of 0 match into normal state (Low warning level = -0.5, High warning level = 0.5). The rest thresholds will leave as it is.

Set the sources for math sensor. Variable "A" is our SNMP GET "State Code Get" element, for catch state 7, we may subtract 7 from it.

Also create some Math sensors for another needed states. And combine them in the group.

Create notification, email for example. Use macro in text message for sending properly information. Here 216001 is a id of SNMP GET sensor (State Code Get). We read his value, and the name of the element that fetch to sending a message. 

Add this email to group notification for state "Normal".

Now we have a group of elements each of which corresponds to the state when its value is 0 (state "Normal").

And when the state of any element becomes to "Normal", the notification of such a content is sent:

Notification message example

State Code Get: '7.000'
Element: 'State 7 - Running'


  • No labels