Tag Archives: kerio connect
title-icon-code

Checking Kerio Connect statistics with Nagios

Added to my OSX-Monitoring-Tools project today is a bash script to check statistics for Kerio Connect. This bash script lets you define the standard warning and critical thresholds on any key in the stats.dat file generated by Kerio, and also returns clean performance data (great for Groundwork graphs!).

The complexity here is that Kerio’s statistics are a constant counter until reset, so in order to gather useful data, you have to reset the stats each time the check is run. This functionality is built into the script thanks to the Kerio Admin API, so simply set your check interval, and enjoy statistics based on that. The graph above is “HTTPConnections” graphed on a production Kerio Connect server every 10 minutes.

You will need to enter a few variables into the script itself to allow it access to the API in order to reset statistics, but the counter names and thresholds can be entered as arguments.

check_kerio_connect_stats.sh on GitHub