Xymon looks for the history file in the directory that XYMONHISTDIR is set to. Run something like this to find out what it's set to:
echo echo \$XYMONHISTDIR | xymoncmd
Ensure that the directory is writeable by the Xymon user and/or group and is also readable by the web user and/or group. Also check to see if the directory contains the file "hostname.service" matching whatever you are trying to get history on, but where the hostname has commas instead of dots.
In cases like this, I try to replicate the process myself as the process user. So for example my webserver runs as user "wwwrun" so I do this:
$ sudo -u wwwrun xymoncmd sh$ echo $XYMONHISTDIR /var/lib/xymon/hist sh$ cd $XYMONHISTDIR ls sh$ head the,host,name.conn
If I get any errors with this, then it points to where the problem is. Common problems like this are caused by Xymon not being able to create the file or Apache not being able to read the file/directory. In most cases, it's filesystem permissions, but in some cases it's kernel-level security such as SELINUX. In the latter case, the output of "dmesg|tail" immediately after an attempt will usually confirm.
J
On 13 February 2013 05:38, Adapalli,Sridhar (HHSC) < Sridhar.Adapalli at hhsc.state.tx.us> wrote:
Hi****
I am using Hobbit monitor 4.2., when I click on History button for all the parameters that I am monitoring (cpu, http, memory, etc.), I get a message “Cannot open history file”. Can someone let me know how to fix this issue?
Thanks****
-- Sridhar****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon