History Custom Script (Client data ID)

bb at buglecreek.com bb at buglecreek.com
Tue Jun 23 20:49:09 CEST 2009


We have a custom script that just goes out and grabs a status from a few
web sites for a product.  It seems to work fine.  When we go to the
history page for the test, all the change of status is there as you
would expect.  But when you scroll down and select a colored ball under
the status column some of them work and some do not.  The ones that do
not work generate a browser error that states:
File Not Found
Firefox can't find the file at
https://XXXXXXX/xymon-cgi/bb-histlog.sh?HOST=XXXXXXX&SERVICE=customtest&TIMEBUF=Mon_Jun_22_08:08:05_2009.

The data file is in the histlogs directory and has the correct name. 
The data in the file is correct.   So we copied the line that says
"Client data ID 1234567890" in a history file that displays correctly
and replaced the line in a file that does not display correctly.   It
now shows up fine with the correct data.  So maybe the "Client data ID"
line is the problem.  Replace the line with a known good one and all is
well.  Checked perms and they seem fine.  The httpd error log generates
the following when a status is selected that does not display correctly:

[Tue Jun 23 12:31:14 2009] [error] [client xxx.xxx.xxx.xxx] Premature
end of script headers: bb-histlog.sh, referer:
https://XXXXXX/xymon-cgi/bb-hist.sh?HISTFILE=XXXXXX.customtest&ENTRIES=50&IP=XXX.XXX.XXX.XXX&DISPLAYNAME=XymonServer

Error is not generated when a status is selected that displayed
correctly.

Anyone have an idea on how to fix this?  Not really sure how "Client
data ID" line is being used or generated.  If in fact that is the issue. 



More information about the Xymon mailing list