Hi there,
Something we've been wondering about is the use of SNMP MIBs during polling.
For instance, we currently have a service check that queries what state a UPS
battery is in. If it returns anything other than "3" we alert. The engineer
on-call gets a report saying "SNMP CRITICIAL - 5" or some such, and goes to
investigate what "5" means.
What would be quite nice is to use the translated MIB output in the result -
the MIB is already present in the /usr/local/nagios/snmp/load directory etc.
An example of a MIB entry:
upsDiagBatteryStatus OBJECT-TYPE
SYNTAX INTEGER {
unknown (1),
notInstalled (2),
ok (3),
failed (4),
highTemperature (5),
replaceImmediately (6),
lowCapacity (7)
}
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The status of the battery.
unknown(1) indicates the device status is unknown.
notInstalled(2) indicates the device is not installed.
ok(3) indicates the battery status is OK.
failed(4) indicates the battery status is failed.
highTemperature(5) indicates the battery has a high temperature
condition.
replaceImmediately(6) indicates the battery must be replaced immediately.
lowCapacity(7) indicates the battery has a low capacity."
::= { upsDiagBatteryEntry 3 }
It would be quite nice to have "SNMP CRITICAL - highTemperature(5)", and
possibly even a copy of the description in the report. Is that something
trivial to implement?
The interesting thing is that you can specify the OID as
"PowerNet-MIB::upsDiagBatteryStatus.1" rather than
"1.3.6.1.4.1.318.1.1.1.13.3.2.1.3.1" and Opsview does "the right thing" with it.
Kind regards,
Matthew Walster
Network Architect
Gyron Internet Ltd
mail: [email protected]
web: http://gyron.net/
tel: 0845 888 6900
fax: 0845 888 6910
This message may be private and confidential. If you have received this message
in error, please notify us and remove it from your system.
Gyron may monitor email traffic data and the content of email for the purposes
of security and staff training.
Gyron Internet Ltd is a limited company registered in England and Wales.
Registered number: 4239332. Registered office: 3 Centro, Boundary Way, Hemel
Hempstead, HP2 7SU. VAT reg no 804 2532 63. Gyron is a registered trademark.
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users