Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Watchport Temperature and Humidity
1.0
2019-12-01
- Nagios XI
4177
File | Description |
---|---|
check_watchport_temp.py | Temperature |
check_watchport_humid.py | Humidity |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This plugin checks the temperature or humidity from a watchport sensor.
The temperature and humidity checks are in separate files.
Parameters :
-w - warning threshold
-c - critical threshold
-p - device port, default it /dev/ttyUSB0
Add the nagios user to the 'dialout' group to allow access to the serial port.
When I first made this, I had issues with the USB sensor locking up after every read. To get around this, I made a version to reset the USB device after every read. See the github page for this version: https://github.com/nsafran1217/check_watchport
I added an ACL to the USB device file to allow nagios write access. I added a udev rule so this ACL is added when the device is plugged in.
Example, you will have to change the identifiers:
SUBSYSTEM=="usb", ATTRS{idProduct}=="0305", ATTRS{serial}=="V72983794-0", ACTION=="add", RUN+="/bin/setfacl -m u:nagios:rw- /dev/$name"
The temperature and humidity checks are in separate files.
Parameters :
-w - warning threshold
-c - critical threshold
-p - device port, default it /dev/ttyUSB0
Add the nagios user to the 'dialout' group to allow access to the serial port.
When I first made this, I had issues with the USB sensor locking up after every read. To get around this, I made a version to reset the USB device after every read. See the github page for this version: https://github.com/nsafran1217/check_watchport
I added an ACL to the USB device file to allow nagios write access. I added a udev rule so this ACL is added when the device is plugged in.
Example, you will have to change the identifiers:
SUBSYSTEM=="usb", ATTRS{idProduct}=="0305", ATTRS{serial}=="V72983794-0", ACTION=="add", RUN+="/bin/setfacl -m u:nagios:rw- /dev/$name"
Reviews (0)
Be the first to review this listing!