Discussion:
Monitoring cyrusimapd
Albert Shih
2018-06-19 15:23:05 UTC
Permalink
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 ?

Regards
--
Albert SHIH
Observatoire de Paris
xmpp: ***@obspm.fr
Heure local/Local time:
Tue Jun 19 17:21:11 CEST 2018
Michael Menge
2018-06-21 08:53:26 UTC
Permalink
Hi,
Post by Albert Shih
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.
In addition to the normal System monitoring (CPU-, Memory and Disk usage and
the Checks if tie services are running, we monitor the Cyrus logs for
Critical errors like IOERROR, or Mupdate commit errors.
Post by Albert Shih
For example do you launch any check on each database ? How can I
check if the replication work fine ?
No database checks.

For Replication we check the size of the "sync" folder to see if the rolling
replication log is growing over 1 MB or if average size of the logs was over
500 KB for more than 15 min



--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universität Tübingen Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung mail:
***@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
ht
Vladislav Kurz
2018-06-21 10:38:02 UTC
Permalink
Post by Albert Shih
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.
Hi,

not exactly a cyrus check, but I recommend checking the mailq length of
whatever SMTP server you have. If it is longer than usual, it may
indicate spam originating from some of your users.
--
Best regards
Vladislav Kurz
Nic Bernstein
2018-06-21 12:02:28 UTC
Permalink
Post by Albert Shih
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 ***@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
Loading...