On 06/19/2018 10:23 AM, Albert Shih wrote:
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 ?


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:

      Usage: $argv[0] -H <host> -C <community string> -s <service>
                -p <property> -c <crit_range> -w <warn_range> -h -t
   <timeout> -d

      Required:
        -H [STRING|IP]
            Hostname or IP address
        -s Which service name to check: This may be any service defined in
            cyrus.conf on host being checked. For example: imap, imaps,
   pop3
            lmtp.  This is also used as a label for the results.

            * Note: To receive a list of services supported by host,
   use the
            special keyword 'list'.

            * Note: Services with special characters in their name, such as
            lmtp[v6], must be quoted; i.e. 'lmtp[v6]'.

      Options:
        -C  STRING
            SNMP community string (defaults to `public').
        -p <property>
            Which property to report (and alarm) on (defaults to 'active'):
               * forks
               * active
               * connections
   ...

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.

You may want to take a look at issue 1827 on GitHub in regards to SNMP on Cyrus:
    https://github.com/cyrusimap/cyrus-imapd/issues/1827

Please note that this plugin relies upon utils.php by Marcel Kühn & Doug Warner:
http://doug.warner.fm/nagios-utilsphp-script-for-php-plugins.html

Cheers,
    -nic

--
Nic Bernstein                             n...@onlight.com
Onlight Inc.                              www.onlight.com
6525 W Bluemound Rd., Ste 24              v. 414.272.4477
Milwaukee, Wisconsin  53213-4073          f. 414.290.0335

<<attachment: check_cyrus.php>>

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Reply via email to