Use a custom script in nagios to monitor DataMate3000 precision air conditioning temperature and other statuses

Source: Internet
Author: User

Use a custom script in nagios to monitor DataMate3000 precision air conditioning temperature and other statuses
First, let's briefly introduce an environment where one nagios warning server and one precision air conditioner DataMata3000 (old models, comes with a single-host management software that does not support email and SMS alarm functions, and can only view status, etc, however, a simple HTTP status page is provided for viewing, and a network interface device that supports querying the SNMP protocol is also available. If you need to meet the requirements, purchase dedicated cluster environment management software)
Since the SNMP protocol is supported, it is easy to do. As we all know, nagios supports Custom Script Commands and can be determined by exit of the script and return the status code. The script is written in python and mainly uses the netsnmp module. The specific code is shown in the attachment. In addition, nagios's custom command configuration is also too easy to say. There are a lot of online information, you can also refer to the following reference articles. I personally think that if I can get the MIB library of the vendor's device, it would be much easier to write a script to obtain the corresponding information based on the vendor's custom MIB library information. If I do not, then you can only use snmpwalk to get the device OID and then slowly match the corresponding, it is really dead. The attachment contains a mib of the DME3000 device.

DataMate3000check.zipDME3000_COND.zip

References:
Http://blog.chinaunix.net/uid-26978448-id-3389951.html
Http://blog.chinaunix.net/uid-26978448-id-3385856.html
Http://zhangxz.blog.51cto.com/5490116/1321862

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.