check_pop & check_imap
Denis J. O'Toole
Denis.OToole at dd.nec.com.au
Fri Mar 14 00:02:42 CET 2003
Thanks for the warning ;)
Hope this info helps solve my puzzle.. thanks again
==================
checkcommands.cfg
==================
<snip>
# 'check_imap' command definition
define command {
command_name check_imap
command_line $USER1$/check_imap -H $HOSTADDRESS$
}
# 'check_pop' command definition
define command {
command_name check_pop
command_line $USER1$/check_pop -H $HOSTADDRESS$
}
=========
hosts.cfg
=========
<snip>
# 'MUA Pickup Host' host definition
define host{
use generic-host ; Name of host template to use
host_name pophost
alias Linux Fileserver
address 1.2.3.4
check_command check-host-alive
max_check_attempts 10
notifications_enabled 1
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
</snip>
============
services.cfg
===========
<snip>
# Service definition
define service{
use generic-service ; Name of service template
to use
host_name pophost
service_description POP3
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups unix-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_pop ; check_command
check_tcp!110
}
# Service definition
define service{
use generic-service ; Name of service template
to use
host_name pophost
service_description IMAP4
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups unix-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_imap ; check_command
check_tcp!143
}
</snip>
Subhendu Ghosh wrote:
>On Fri, 14 Mar 2003, Denis J. O'Toole wrote:
>
>
>>Hi Folks,
>>
>>I have just compiled, built and am now testing my first nagios box.
>>
>>Versions are; Nagios 1.0, Plugins V1.30 on Debian Linux 3.0 (Woody) Kernel 2.4.18
>>
>>Most things are working fine, except for some checks I am doing for my
>>POP and IMAP test responses.
>>
>>In services.cfg in have tried using check_imap & check_pop, looked
>>through the checkcommands.cfg to make sure I had the syntax right.
>>However these service checks *always* come back with connection refused.
>>
>>I have run the equivalent command from CLI as root and as nagios users (
>>/usr/local/nagios/libexec/check_(pop|imap) -H pophost and get the
>>response, as I should expect :-
>>
>>POP OK - 0.018 second response time on port 110 [+OK POP3 ...]
>>IMAP OK - 0.020 second response time on port 143 [* OK [CAPABILITY
>>IMAPREV1 X-NETSCAPE LOGIN_REFERRALS STARTTLS AUTH=LOGIN] .....
>>
>>I have tried using the check via check_tcp. I know it is the same
>>program, but it has a less verbose output, as I thought it may have been
>>a problem.
>>
>>I hope someone has an idea on what I can try next..
>>
>>
>>Regards,
>>
>>Denis J. O'Toole
>>
>>
>
>Helps if you post your configuration as well.
>
>
--
Regards,
Denis J. O'Toole
- "There are 10 types of people in this world.
Those that understand binary, and those that don't."
--
Denis O'Toole
Voice Products Department
R&D Division, Technology Group
NEC Business Solutions Pty Ltd
649, Springvale Road
Mulgrave 3170, AUSTRALIA
Tel: +61-3-9264-3752 Fax: +61-3-9264 3438
Email: Denis.OToole at nec.com.au
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list