Re: Monitoring cyrusimapd

2018-06-21 Thread Nic Bernstein

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  -C  -s 
    -p  -c  -w  -h -t
-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 
    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

<>

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

Re: Monitoring cyrusimapd

2018-06-21 Thread Vladislav Kurz
On 06/19/18 17:23, 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.

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


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


Re: Monitoring cyrusimapd

2018-06-21 Thread Michael Menge

Hi,

Quoting 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.


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.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:  
michael.me...@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:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Monitoring cyrusimapd

2018-06-19 Thread 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 ?

Regards
--
Albert SHIH
Observatoire de Paris
xmpp: j...@obspm.fr
Heure local/Local time:
Tue Jun 19 17:21:11 CEST 2018

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