Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Small modification to

This is a windows Perl script to be used with a Digi Watchport sensor to read and format data about temperature, ready for use with Nagios

It's modified form the original to no longer require an external config file, and will now instead take the com port as an optional argument in addition to low temp warning and low temp critical

Dependencies: Win32::SerialPort;

Usage: perl -w <high warning temp> -c <high critical temp> -wm <low warning temp> -cm <low critical temp>  Optional: [-Com <ComPort>] Default: COM3

Default output is in Celsius, small edit explained in code required to change to Farenheit

For usage/implementation with nagios please refer to the blog post above, although it is slighlty dated and some of it is deprecated information so i will include what the nsclient config changes should look like now

You basically need to add the possibility to run external commands and a path to the file like so into your nsclient.ini with arguments. Then you can invoke the check_temp command with check_nrpe from nagios

CheckExternalScripts = enabled
[/settings/external scripts/scripts]
check_temp = C:\perl64\bin\perl.exe "C:\Program Files\NSClient++\scripts\" -w 22 -c 25 -wm 18 -cm 10

Tested with Nsclient++ Version

You can’t perform that action at this time.