check_jabber problem

Marc Powell marc at ena.com
Tue Jul 5 20:17:55 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Fred Reinthaler
> Sent: Tuesday, July 05, 2005 12:04 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_jabber problem
> 
> Hi,
> 
> I am getting weird behaviour with the check_jabber plugin.  If I try
> to do a check:
> 
> nagios:/usr/lib/nagios/plugins# ./check_jabber -H 172.16.230.234 -p
5222
> 
> I get:
> 
> "
> CRITICAL - Cannot make  SSL connection 15582:error:140770FC:SSL
> routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:
> "
> 
> Jabber runs on port 5222 and is not using SSL and as you can see I am
> not even specifying the -S flag for SSL.
> 
> This is the wierd part:
> 
> nagios:/usr/lib/nagios/plugins# ls -l check_jabber
> lrwxrwxrwx  1 root root 9 Jun 24 13:13 check_jabber -> check_tcp
> 
> nagios:/usr/lib/nagios/plugins# ./check_tcp -H 172.16.230.234 -p 5222
> TCP OK - 0.001 second response time on port 5222
> |time=0.000526s;0.000000;0.000000;0.000000;10.000000
> 
> Can anyone enlighten me on why check_jabber is soft-linked to
> check_tcp but they both return a different result?

check_tcp behaves differently depending on the name it was called as.
Looking at the source, there are several --

       if (strstr (argv[0], "check_udp")) {
        else if (strstr (argv[0], "check_tcp")) {
        else if (strstr (argv[0], "check_ftp")) {
        else if (strstr (argv[0], "check_smtp")) {
        else if (strstr (argv[0], "check_pop")) {
        else if (strstr (argv[0], "check_imap")) {
        else if (strstr(argv[0],"check_simap")) {
        else if (strstr(argv[0],"check_spop")) {
        else if (strstr(argv[0],"check_jabber")) {
       else if (strstr (argv[0], "check_nntps")) {
        else if (strstr (argv[0], "check_nntp")) {


When jabber support was added to check_tcp, SSL connections were
required regardless of whether -S was used or not (per the ChangeLog and
a glance at the code). It looks like the jabber code was made to respect
the -S flag on June 5th in CVS. Try the latest CVS version.

--
Marc 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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