<div dir="ltr">Torkil<div><br></div><div>I recommend you put subjects in your posts, which will not only increase engagement, but also helps with searching the archives.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Mar 18, 2016 at 7:59 AM Torkil Zachariassen <<a href="mailto:torkil.zachariassen@gmail.com">torkil.zachariassen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On our xymon (4.3.26) server, which otherwise works just fine,<br>
/var/log/xymon/xymonlaunch.log issues the following warning the<br>
following every 5 minutes.<br>
This again indicates that the culprit is xymonlaunch<br>
:<br>
<br>
WARNING: Cannot open include file '/var/run/xymonclient-runtime.cfg',<br>
line was: include /var/run/xymonclient-runtime.cfg<br>
<br>
This seems related to an earlier report  @<br>
<a href="http://comments.gmane.org/gmane.comp.monitoring.hobbit/26155" rel="noreferrer" target="_blank">http://comments.gmane.org/gmane.comp.monitoring.hobbit/26155</a>  stating<br></blockquote><div><br></div><div><snip></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I suppose there are multiple ways to resolve this, but some advice is needed:<br>
1) include a few line into the server init script (/etc/init.d/xymon)<br>
which creates the xymonclients-runtime.cfg file<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2) modify or remove the include line in<br>
/usr/lib/xymon/client/etc/xymonclient.cfg on the server<br></blockquote><div><br></div><div>On my installation, I have this in /etc/default/xymon:</div><div><br></div><div>cat <<EOF >/var/run/xymonclient-runtime.cfg</div><div>XYMSERVERS="10.3.3.20 10.3.23.20"</div><div>XYMSRV="0.0.0.0"</div><div>EOF </div><div><br></div><div>(Note: I have two xymon servers, hence two IP addresses.)</div><div><br></div><div>This automatically creates the /var/run/xymonclient-runtime.cfg file each time the Xymon server is started using the init scripts.  Not sure if this is the best way, or even a very good way.  But it works for me.</div><div><br></div><div>The thing is, files in /var/run/ probably shouldn't be expected to exist after a reboot.  In practice, I suspect they do for most apps, but a system administrator should be able to wipe this directory out prior to a reboot, and everything should come back like it was before.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We use rpms created from the supplied spec files, and the server has<br>
the xymon package installed only, as the xymon(-server) and<br>
xymon-client packages conflicts (you can not install both)<br>
<br>
For now we have commented the include line out manually, but please<br>
advise on what a proper resolution might look like.</blockquote><div><br></div><div>Have you restarted Xymon since doing this?  Do the client scripts work as expected?</div><div><br></div><div><div>I suspect that if you remove the include line altogether, you will no longer have XYMSERVERS/XYMSRV defined, and it will break the client side on next restart.  (Actually, it might even cause impact on the next execution of xymonclient, typically every 5 minutes.)  If this is the case, you would have to replace the include line either with definitions of these variables, or an include for a different file, which you populate with the values you require.</div><div><br></div><div>I don't know the "correct" way to do this kind of thing.  There's certainly a problem here, where the default install creates errors in the logs.  It'd be good to get some input from any of the guys on the list who were involved in creating the spec.</div><div><br></div></div><div>J</div><div><br></div></div></div>