Page 1 of 1

imap Monitoring

Posted: Mon Mar 21, 2016 10:34 am
by nathanplatt
Hi Everyone,

I'm trying to setup monitoring for our mail server to check that imap is running, here's how i've configured it so far;

Windows.cfg

Code: Select all

define service{
        use                     generic-service
        host_name               MS2-V
        service_description     Is IMAP Running
        check_command           check_imap! -p 993
        contact_groups          admins
}
commands.cfg

Code: Select all

# 'check_imap' command definition
define command{
        command_name    check_imap
        command_line    $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
        }

The command is the built in one, but its not working;

Is IMAP Running Notifications for this service have been disabled CRITICAL 21-03-2016 15:27:45 0d 0h 29m 32s 3/3 CRITICAL - Socket timeout after 10 seconds

Have I missed something stupid, the server is being monitored for other things with NSClient++

Re: imap Monitoring

Posted: Mon Mar 21, 2016 11:48 am
by rhassing
I think you need to add the -S option to tell it's a SSL connection

Re: imap Monitoring

Posted: Mon Mar 21, 2016 11:57 am
by nathanplatt
Thanks Rob that worked!

Re: imap Monitoring

Posted: Mon Mar 21, 2016 12:19 pm
by rkennedy
Glad to see this resolved! Thanks @rhassing!

Going to close it out, but feel free to make a new post if you need any assistance in the future!