<font size=2 face="sans-serif">Henrik,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for the reply, doing what you
stated I was seeing the expected HTML output in the command line, the only
thing that changed on Friday was I re-did the hosts.cfg. My co-worker and
I both reviewed it and we didn't see any errors in that that config file,
but we made the decision to restore back to a copy from a couple of weeks
ago. After doing that everything is working correctly again.</font>
<br>
<br><font size=2 face="sans-serif">One last question is there a way to
parse the hosts.cfg for errors, maybe I have some erroneous character or
escape/control sequence in there we are not seeing.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">xymon-request@xymon.com</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">xymon@xymon.com</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">06/25/2013 06:00 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Xymon Digest, Vol 29, Issue 23</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">"Xymon" <xymon-bounces@xymon.com></font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Send Xymon mailing list submissions to<br>
                
xymon@xymon.com<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
                
</font></tt><a href=http://lists.xymon.com/mailman/listinfo/xymon><tt><font size=2>http://lists.xymon.com/mailman/listinfo/xymon</font></tt></a><tt><font size=2><br>
or, via email, send a message with subject or body 'help' to<br>
                
xymon-request@xymon.com<br>
<br>
You can reach the person managing the list at<br>
                
xymon-owner@xymon.com<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Xymon digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. custom graph problem (deepak deore)<br>
   2. CGI Scripts coredumping (Glenn Brown)<br>
   3. Re: CGI Scripts coredumping (Henrik St?rner)<br>
   4. Re: CGI Scripts coredumping (Henrik St?rner)<br>
   5. Re: rrd network graphs on windows check (B-Art Gillis)<br>
   6. Re: rrd network graphs on windows check (Jeremy Laidman)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 24 Jun 2013 17:52:14 +0530<br>
From: deepak deore <deepakdeore2004@gmail.com><br>
To: "xymon@xymon.com" <xymon@xymon.com><br>
Subject: [Xymon] custom graph problem<br>
Message-ID:<br>
                
<CABpN7iS15sXBwKJz4vwXio8arQAHNwbJZVAK8_aV1+_=Q=UO-w@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I have setup the graph which is showing no data. The output contains NCV<br>
value and some detailed output after that, how rrd will get the data from<br>
NCV value only and ignore other output?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.xymon.com/pipermail/xymon/attachments/20130624/394c26c2/attachment-0001.html"><tt><font size=2>http://lists.xymon.com/pipermail/xymon/attachments/20130624/394c26c2/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 24 Jun 2013 11:05:17 -0400<br>
From: Glenn Brown <Brown.Glenn@healthnow.org><br>
To: xymon@xymon.com<br>
Subject: [Xymon] CGI Scripts coredumping<br>
Message-ID:<br>
                
<OFB120EE62.149029DC-ON85257B94.004FFF64-85257B94.0052E186@healthnow.org><br>
                
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Over the weekend the xymon CGI scripts seem to have started to coredump.
<br>
In the Web server logs I see this...<br>
<br>
[Mon Jun 24 10:19:27 2013] [error] [client 10.133.24.119] Premature end
of <br>
script headers: svcstatus.sh, referer: </font></tt><a href=http://monaix/xymon/nongreen.html><tt><font size=2>http://monaix/xymon/nongreen.html</font></tt></a><tt><font size=2><br>
[Mon Jun 24 10:39:38 2013] [error] [client 10.133.24.119] Premature end
of <br>
script headers: enadis.sh, referer: </font></tt><a href="http://monaix/xymon-cgi/report.sh"><tt><font size=2>http://monaix/xymon-cgi/report.sh</font></tt></a><tt><font size=2><br>
<br>
In the cgi-bin and cgi-secure directories I see a core file which <br>
references the actual C cgi apps, when I try to run gdb backtrace it just
<br>
tells me signal 4, illegal instruction, I assume It has no more info since
<br>
there are no symbols.<br>
<br>
I am really at a loss for what would have started to cause this happen,
<br>
can anyone provide some insight or direction?<br>
<br>
<br>
<br>
CONFIDENTIALITY NOTICE: This email message and any attachments are for
the sole use of the intended recipient(s) and may contain proprietary,
confidential, trade secret or privileged information.  Any unauthorized
review, use, disclosure or distribution is prohibited and may be a violation
of law.  If you are not the intended recipient or a person responsible
for delivering this message to an intended recipient, please contact the
sender by reply email and destroy all copies of the original<br>
message.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.xymon.com/pipermail/xymon/attachments/20130624/124b90a5/attachment-0001.html"><tt><font size=2>http://lists.xymon.com/pipermail/xymon/attachments/20130624/124b90a5/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 24 Jun 2013 17:34:41 +0200<br>
From: Henrik St?rner <henrik@hswn.dk><br>
To: xymon@xymon.com<br>
Subject: Re: [Xymon] CGI Scripts coredumping<br>
Message-ID: <51C86711.7030608@hswn.dk><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Den 24-06-2013 17:05, Glenn Brown skrev:<br>
> Over the weekend the xymon CGI scripts seem to have started to coredump.<br>
> In the cgi-bin and cgi-secure directories I see a core file which<br>
> references the actual C cgi apps, when I try to run gdb backtrace
it<br>
> just tells me signal 4, illegal instruction, I assume It has no more<br>
> info since there are no symbols.<br>
<br>
It usually comes down to some configuration setting that has been <br>
changed .... any of your config files changed recently ?<br>
<br>
<br>
You could try running one of the CGI's by hand. If you have a URL like
<br>
this (for one of the detailed status pages):<br>
<br>
</font></tt><a href="http://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=blixen.hswn.dk&SERVICE=cpu"><tt><font size=2>http://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=blixen.hswn.dk&SERVICE=cpu</font></tt></a><tt><font size=2><br>
<br>
then you can run it by hand with<br>
<br>
SCRIPT_NAME="svcstatus.sh"<br>
REQUEST_METHOD=GET<br>
QUERY_STRING="HOST=blixen.hswn.dk&SERVICE=cpu"<br>
export SCRIPT_NAME QUERY_STRING REQUEST_METHOD<br>
/usr/lib/xymon/cgi-bin/svcstatus.sh<br>
<br>
(the QUERY_STRING is the bit of the URL after the '?')<br>
<br>
With a bit of luck you'll get some error-message. If not, then I would
<br>
probably try re-compiling the binaries with debugging symbols (the '-g'
<br>
option in gcc) and then see if running the cgi-program from a gdb <br>
session gives you a better idea of what is happening.<br>
<br>
<br>
Regards,<br>
Henrik<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 24 Jun 2013 17:37:13 +0200<br>
From: Henrik St?rner <henrik@hswn.dk><br>
To: xymon@xymon.com<br>
Subject: Re: [Xymon] CGI Scripts coredumping<br>
Message-ID: <51C867A9.9090002@hswn.dk><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Den 24-06-2013 17:34, Henrik St?rner skrev:<br>
> Den 24-06-2013 17:05, Glenn Brown skrev:<br>
>> Over the weekend the xymon CGI scripts seem to have started to
coredump.<br>
><br>
> It usually comes down to some configuration setting that has been<br>
> changed .... any of your config files changed recently ?<br>
<br>
I just remembered - we had a similar problem some time ago where the <br>
permissions on some of the Xymon data-directories (hist, histlogs, rrd,
<br>
tmp and so on) had been changed.<br>
<br>
<br>
Regards,<br>
Henrik<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Mon, 24 Jun 2013 23:03:58 +0200<br>
From: B-Art Gillis <bacaselo@gmail.com><br>
To: Jeremy Laidman <jlaidman@rebel-it.com.au><br>
Cc: "xymon@xymon.com" <xymon@xymon.com><br>
Subject: Re: [Xymon] rrd network graphs on windows check<br>
Message-ID:<br>
                
<CAHS9aJhu9B_g33yJ_HVwpjSdrStW0g1YwNM3mc02atdbwuAC-A@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Jeremy,<br>
<br>
Thank you for your answer but I just saw on the graph that the values are<br>
converted to rrd data seem to come from the "do_netstat.c" module.<br>
I just want to graph the TCP/IP trafic using the Windows command "netstat<br>
-e".<br>
If I send my test page to the "netstat" test I see the following
message in<br>
the rrd_status.log:<br>
<br>
2013-06-20 22:34:28 Host 'server1' reports netstat for an unknown OS<br>
<br>
I guess that I don't sent all required data to the Xymon server.<br>
Any idea of the requirements and the format?<br>
<br>
At this moment I was sending the test in the format:<br>
<br>
green ma 24/06/2013 22:56:58,51<br>
[netstat]<br>
192.168.17.1 144084269 41843593<br>
<br>
The value that are available:<br>
<br>
Interface Statistics<br>
<br>
                    
           Received      
        Sent<br>
<br>
Bytes                    
144681781        42531845<br>
Unicast packets           184396    
       169026<br>
Non-unicast packets          777    
         11827<br>
Discards                  
            0        
           0<br>
Errors                    
              0      
             0<br>
Unknown protocols                0<br>
<br>
<br>
<br>
On Sun, Jun 23, 2013 at 11:32 AM, Jeremy Laidman<br>
<jlaidman@rebel-it.com.au>wrote:<br>
<br>
><br>
> On 22 June 2013 00:04, B-Art Gillis <bacaselo@gmail.com> wrote:<br>
><br>
>> Can someone explain me to which xymon test I should post my ifstat
info?<br>
>><br>
>><br>
> Typically, ifstat numbers are sent in a "client" message
in the [ifstat]<br>
> section.  Example here of an ifstat section:<br>
><br>
><br>
> </font></tt><a href="http://www.xymon.com/xymon-cgi/svcstatus.sh?CLIENT=blixen.hswn.dk&section=ifstat"><tt><font size=2>http://www.xymon.com/xymon-cgi/svcstatus.sh?CLIENT=blixen.hswn.dk&section=ifstat</font></tt></a><tt><font size=2><br>
><br>
> It's for Linux, so the format is all wrong if you're trying to emulate<br>
> BBWin.  But gives you the idea.<br>
><br>
> J<br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.xymon.com/pipermail/xymon/attachments/20130624/a1fde696/attachment-0001.html"><tt><font size=2>http://lists.xymon.com/pipermail/xymon/attachments/20130624/a1fde696/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 25 Jun 2013 13:07:24 +1000<br>
From: Jeremy Laidman <jlaidman@rebel-it.com.au><br>
To: B-Art Gillis <bacaselo@gmail.com><br>
Cc: "xymon@xymon.com" <xymon@xymon.com><br>
Subject: Re: [Xymon] rrd network graphs on windows check<br>
Message-ID:<br>
                
<CAAnki7CjjGQSaKu7rU-RQZiBLqR_Mb3A3o-+Eb-z882k4jKmXA@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
On 25 June 2013 07:03, B-Art Gillis <bacaselo@gmail.com> wrote:<br>
<br>
> Thank you for your answer but I just saw on the graph that the values
are<br>
> converted to rrd data seem to come from the "do_netstat.c"
module.<br>
<br>
<br>
No, if you want interface statistics then you want ifstat parsed in<br>
do_ifstat.c.  If you want protocol statistics (layer 3 and above such
as<br>
TCP and UDP) then you would want a [netstat] section parsed in<br>
do_netstat.c.  The message example you gave shows interface statistics.<br>
<br>
Xymon expects the format to match ifstat_bbwin_exprs[] (defined in<br>
do_ifstat.c). This includes an IP address then the in and out byte count.<br>
 The output of "netstat -e" does not provide an IP address, and
it provides<br>
much more than just the bytes in and out.  You'd have to select the
Bytes<br>
line and prefix it with an IP address (probably a dummy device name would<br>
do also).<br>
<br>
Something like:<br>
<br>
EthDev 144681781 42531845<br>
<br>
Any whitespace can be used as separators (one or more tabs or spaces).<br>
<br>
You could probably get away with this:<br>
<br>
echo [netstat] & netstat -e | find "Bytes"<br>
<br>
This would give "Bytes" as a devicename, but I don't think it
would break<br>
anything.<br>
<br>
You need to prefix this message with the correct "client" message
header.<br>
 If you're sending other client data, this should be included with that<br>
message, otherwise one will mask the other.<br>
<br>
The client message might look something like this:<br>
<br>
client server1.win32<br>
[netstat]<br>
Bytes      144681781        42531845<br>
<br>
To get Xymon to match against the bbwin match string, you have to report<br>
your OS in the message as "bbwin" or "win32".  This
is probably why you're<br>
getting the "reports netstat for an unknown OS" message.<br>
<br>
J<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.xymon.com/pipermail/xymon/attachments/20130625/b1518bc0/attachment-0001.html"><tt><font size=2>http://lists.xymon.com/pipermail/xymon/attachments/20130625/b1518bc0/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
Xymon@xymon.com<br>
</font></tt><a href=http://lists.xymon.com/mailman/listinfo/xymon><tt><font size=2>http://lists.xymon.com/mailman/listinfo/xymon</font></tt></a><tt><font size=2><br>
<br>
<br>
------------------------------<br>
<br>
End of Xymon Digest, Vol 29, Issue 23<br>
*************************************<br>
</font></tt>
<br>
<br>