[Nagiosplug-help] check_tcp for imaps stange!

Stephen Carpenter scarpe01 at emerald.tufts.edu
Wed Jan 8 08:09:02 CET 2003


Well for reasons that go back long time we have (at least for a while) 
2 different imap servers deployed, both do imap over ssl.

So in playing I find this works: (check_imap is the sym link to
check_tcp) (ohg yea, beta2 plugins on solaris 8 btw)

../libexec/check_imap -v -S -p 993 -H HOST -s "0 logout" -e "OK"

works fine on hosts running PMDF and fails on hosts running SIMS 
(would be better if it was the other way around as we expect to have
PMDF retired before nagios goes into production here)

When it works I get: 
-----------
$ ./check_imap -v -S -p 993 -H citrine.tufts.edu -s "0 logout" -e "OK"

0 1
1 1
Invalid response from host
---------------
(another issue, why isn't this CRITICAL ?? I would like this test 
failing to be critical!) 

Now if I try it against the pmdf hosts:
--------------
$ ./check_imap -v -S -p 993 -H emerald.tufts.edu -s "0 logout" -e "OK"
* OK emerald.tufts.edu IMAP4 Server PMDF5.2-32.4 at Wed, 8 Jan 2003 11:03:32 -0500 (EST)
0 1
IMAP OK -   0.131 second response time on port 993 [* OK emerald.tufts.edu IMAP4 Server PMDF5.2-32.4 at Wed, 8 Jan 2003 11:03:32 -0500 (EST)]|time=  0.131
--------------

obviously its picking up on the banner... so lets pull out s_client (openssl)
---
[snip]
* OK citrine.tufts.edu IMAP4 service ...
---
yup same gooness of banner, even ends in a newline.

anybody got some clue here? theres even an OK in the response to "0 logout"

in fact, on either of them if I try to use the command "GOK logout" and a 
-e string of "GOK OK" (which will appear in the reply as I checked with
s_client) it doesn't find that either.

-Steve
-- 
"The Creation of the Universe was made possible by a grant from Texas 
Instruments. "
                -- PBS 




More information about the Help mailing list