<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 06/19/2018 10:23 AM, Albert Shih wrote:<br>
<blockquote type="cite"
cite="mid:20180619152305.GL9837@io.chezmoi.fr">
<pre wrap="">Hi everyone,
I would like to know what kind of monitoring you perform on a cyrus-imapd.
Beside classic (check_imap, check_disk, check_cpu etc...) do you have any
special thing to monitor about cyrus-imapd.
For example do you launch any check on each database ? How can I check if the replication work fine ?
</pre>
</blockquote>
<br>
We use the attached PHP plugin in Icinga to monitor the SNMP OIDs
provided by Cyrus. I haven't tried this with the newer
Prometheus-based system, but it works just fine on 2.5.X systems
built with SNMP enabled:<br>
<blockquote> Usage: $argv[0] -H <host> -C <community
string> -s <service><br>
-p <property> -c <crit_range> -w
<warn_range> -h -t <timeout> -d<br>
<br>
Required:<br>
-H [STRING|IP]<br>
Hostname or IP address<br>
-s Which service name to check: This may be any service
defined in<br>
cyrus.conf on host being checked. For example: imap,
imaps, pop3<br>
lmtp. This is also used as a label for the results.<br>
<br>
* Note: To receive a list of services supported by host,
use the<br>
special keyword 'list'.<br>
<br>
* Note: Services with special characters in their name,
such as<br>
lmtp[v6], must be quoted; i.e. 'lmtp[v6]'.<br>
<br>
Options:<br>
-C STRING<br>
SNMP community string (defaults to `public').<br>
-p <property><br>
Which property to report (and alarm) on (defaults to
'active'):<br>
* forks<br>
* active<br>
* connections<br>
...<br>
</blockquote>
Warning & critical thresholds are allowed (scalar or range) for
all checks. This is primarily a process oriented check script.
It's useful to keep an eye on how many of each service's processes
are running versus the configured quantity.<br>
<br>
You may want to take a look at issue 1827 on GitHub in regards to
SNMP on Cyrus:<br>
<a class="moz-txt-link-freetext" href="https://github.com/cyrusimap/cyrus-imapd/issues/1827">https://github.com/cyrusimap/cyrus-imapd/issues/1827</a><br>
<br>
Please note that this plugin relies upon utils.php by Marcel Kühn
& Doug Warner:<br>
<a class="moz-txt-link-freetext" href="http://doug.warner.fm/nagios-utilsphp-script-for-php-plugins.html">http://doug.warner.fm/nagios-utilsphp-script-for-php-plugins.html</a><br>
<br>
Cheers,<br>
-nic<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
</pre>
</body>
</html>