<div dir="ltr">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:<div><br></div><div>  echo echo \$XYMONHISTDIR | xymoncmd</div><div><br>

</div><div style>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.<br>

</div><div style><br></div><div style>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:</div><div style><br></div><div style>

  $ sudo -u wwwrun xymoncmd</div><div style>  sh$ echo $XYMONHISTDIR</div><div style>  /var/lib/xymon/hist</div><div style>  sh$ cd $XYMONHISTDIR</div><div style>  ls</div><div style>  sh$ head the,host,name.conn</div><div style>

<br></div><div style>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.</div>

<div style><br></div><div style>J<br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 February 2013 05:38, Adapalli,Sridhar (HHSC) <span dir="ltr"><<a href="mailto:Sridhar.Adapalli@hhsc.state.tx.us" target="_blank">Sridhar.Adapalli@hhsc.state.tx.us</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">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?<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></font></p><span class="HOEnZb"><font color="#888888">

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">-- Sridhar<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</font></span></div>

</div>


<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>