<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hiyas, didnt know where to send this exatly to.. 
</FONT></DIV>
<DIV><FONT face=Arial size=2>I sending it in hope that it might be of help to 
someone.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I noticed that after upgrading from check_real 
(nagios-plugins 1.3.0-beta2) 1.2<BR>to check_real (nagios-plugins 1.3.0) 1.4, 
all my "regular" Real tests:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>./check_real -H hostname</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Started to get: "RTSP/1.0 404 Not 
Found"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When not looking for anything, this is an strange 
error message..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I noticed in the source for check_real that the 
server_url pointer had been changed to</FONT></DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>char *server_url = "/"; to prevent software 
failure. Now.. with this as 'default url' the plugin will look for "/" in the 
server.</FONT></DIV>
<DIV>That was what was causing the error messages. The streaming servers I check 
demand that you give a valid URL and "/" is not one. </DIV>
<DIV> </DIV>
<DIV>I don't know if this is actually a good solution, it's a quick dirty hack 
that worked out good for me.</DIV>
<DIV>Even though I never have experienced any problems..</DIV>
<DIV>beware.. the author writes about his change: </DIV>
<DIV> </DIV>
<DIV>----------snip-----------</DIV>
<DIV>2003-01-28  <A 
href="mailto:kdebisschop@alert.infoplease.com">kdebisschop@alert.infoplease.com</A>  
<kdebisschop></DIV>
<DIV> </DIV>
<DIV>        * 
plugins/check_real.c:<BR>        make sure 
host_name is set and remove NULL string inits that can lead to 
<U><EM>segfaults</EM></U><BR>----------snip-----------</DIV>
<DIV> </DIV>
<DIV>The system that I compiled on is Linux Redhat 7.2 (i386) with 
2.4.18-27.7.x Kernel.</DIV>
<DIV>I can't see any reason why this shouldnt work on most systems though.</DIV>
<DIV> </DIV>
<DIV>What to do;</DIV>
<DIV>Change below syntax in check_real.c: </DIV>
<DIV><EM></EM> </DIV>
<DIV>
<DIV>
<DIV><FONT face=Arial size=2><EM>--------------original source 
snip----------------</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM>int server_port = PORT;<BR>char *server_address 
= "";<BR>char *host_name = "";</EM></FONT></DIV><FONT face=Arial size=2>
<DIV><BR><EM>char *server_url = "/";</EM></DIV>
<DIV><BR><EM>char *server_expect = EXPECT;<BR>int warning_time = 0;<BR>int 
check_warning_time = FALSE;<BR>int critical_time = 0;<BR>int check_critical_time 
= FALSE;<BR>int verbose = 
FALSE;<BR>--------------snip----------------</EM></FONT></DIV></DIV></DIV>
<DIV>TO</DIV>
<DIV> </DIV>
<DIV>
<DIV>
<DIV><FONT face=Arial size=2><EM>--------------original source 
snip----------------</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM>int server_port = PORT;<BR>char *server_address 
= "";<BR>char *host_name = "";</EM></FONT></DIV><FONT face=Arial size=2>
<DIV><BR><EM>char *server_url = NULL;</EM></DIV>
<DIV><BR><EM>char *server_expect = EXPECT;<BR>int warning_time = 0;<BR>int 
check_warning_time = FALSE;<BR>int critical_time = 0;<BR>int check_critical_time 
= FALSE;<BR>int verbose = 
FALSE;<BR>--------------snip----------------</EM></DIV>
<DIV></FONT> </DIV></DIV></DIV>
<DIV><FONT size=3></FONT><FONT size=3></FONT><FONT size=3></FONT><FONT 
size=3></FONT><FONT size=3></FONT><FONT size=3></FONT><FONT size=3></FONT><FONT 
size=3></FONT><FONT size=3></FONT><FONT size=3></FONT><FONT 
size=3></FONT></FONT><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>AND</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2>--------------original source 
snip----------------<BR>        /* Part II - 
Check stream exists and is ok */<BR>        
if (result == STATE_OK) 
{<BR>---------------------snip-------------------------------</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>TO</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV><FONT face=Arial>
<DIV><FONT size=2> /* Part II - Check stream exists and is ok 
*/<BR>        if ((result == STATE_OK) 
&& (server_url != NULL)) {</FONT></DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>And recompile.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Cheers,</FONT></DIV>
<DIV><FONT size=2>//Magnus Glantz</DIV>
<DIV><BR></DIV></FONT></FONT></BODY></HTML>