![]() |
![]() |
Subject: | 4.2.4 :: SNMP query that returns STRING value |
Author: | [Not Specified] |
Posted: | 2016-02-17 06:10 |
Hello all,
We need to create a threshold with an SNMP query string that returns two STRING values:
- "Inactive Event"
- "Alarm"
The SNMP query always returns one of these two values.How can we create a compatible threshold with Zenoss
All SNMP queries and thresholds that we have, return always an INTEGER value, so it is easy to create the threshold (min-max type). But in this case we dont know how to "parse" string value for create threshold.
Sorry for my poor english....
Regards,
David.
Subject: | I think is possible creating |
Author: | [Not Specified] |
Posted: | 2016-02-17 06:19 |
I think is possible creating a data source command with .sh script, right
In that script I configure snmpwalk command and then parse result to integer
Subject: | That would work. Set a |
Author: | [Not Specified] |
Posted: | 2016-02-17 09:05 |
That would work. Set a default value, then have a CASE statement change it for anything you get. The reason I mention to set a default value is in case you have another value than "Inactive Event" or "Alarm" that you've never seen. Sometimes we don't have a full listing of possible return values.
Manuel
Subject: | Thanks |
Author: | [Not Specified] |
Posted: | 2016-02-17 10:29 |
Thanks Manuel, we'll try it :)
Subject: | Oh Thanks you very much |
Author: | [Not Specified] |
Posted: | 2016-11-10 08:30 |
Oh Thanks you very much David.
How i can integrate this script with with my OID SNMP. i need to change my data sources with COMMAND
Subject: | Exactly, just create a Data |
Author: | [Not Specified] |
Posted: | 2016-11-10 09:13 |
Exactly, just create a Data Source with Command.
Event Class: /status/perf
Parser: Auto
Severity: In my case is critical (send a mail)
Cycle Time: In my case 3600 secs
Command template: path to your script, in my case /opt/zenoss/libexec/script.sh
:)
< |
Previous Zenoss 5 remote zensendevent |
Next Issues w Userprofile in RM 4.2.4 |
> |