VMware Cloud Community
SeanEL
Contributor
Contributor

Testing snmp values for availability

I have some IBM appliances I am writing an SNMP based plugin for. All gone well, but would like to know how I can test a specific value for the availability check.

For example I currently have something like:

<metric name="Availability"

                        template="${snmp.template},Avail=true:dpStatusEnvironmentalFanSensorsFanID:${index}"

....

Which basically just checks I can get a value. But this device has different schemes for what is good and what is bad.

So for Fan Sensors: 4 = OK and anything higher or lower is a bad value.

For the RAID Disks: 1 = Good , 2 = bad

etc etc

So can I write something like

<metric name="Availability"

                        template="${snmp.template},Avail=true:dpStatusEnvironmentalFanSensorsFanID:${index}=4"

0 Kudos
3 Replies
kashifkarar01
Enthusiast
Enthusiast

hi

you can use vcenter orchestrator and test as mentioned in the following doc:

http://pubs.vmware.com/orchestrator-plugins/topic/com.vmware.ICbase/PDF/using-snmp-plugin-10-guide.p...  

0 Kudos
SeanEL
Contributor
Contributor

Thanks, but we are running a standalone Hyperic Installation, and looking to do this purely within the plugin

0 Kudos
SeanEL
Contributor
Contributor

I could be wrong, but I think SNMP stuff is handled by SIGAR right? In which case can I not use SIGAR query language in the definition?

e.g.

<metric name="Availability"

                        template="${snmp.template},Avail=true:dpStatusEnvironmentalFanSensorsFanID:${index}eq4"

0 Kudos