imap Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

imap Monitoring

Post 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++
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: imap Monitoring

Post by rhassing »

I think you need to add the -S option to tell it's a SSL connection
Rob Hassing
Image
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: imap Monitoring

Post by nathanplatt »

Thanks Rob that worked!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: imap Monitoring

Post 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!
Former Nagios Employee
Locked