<div dir="ltr">On 28 June 2013 07:10, David Hay-Currie <span dir="ltr"><<a href="mailto:dhaycurrie@leisurefitness.com" target="_blank">dhaycurrie@leisurefitness.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<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"><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">This is to launch the dnsreg, but I guess it is not launching it</span><br>

</p><p class="MsoNormal"><span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Just in case I also added it to tasks.cfg</span></span></p></div></blockquote><div><br></div>

<div>Xymon will ignore extra task configs with the same name.  I don't know which would be honoured, but having two might lead to confusion.  If you're not sure that it's taking the tasks.d version, just add to tasks.cfg until you know it's working.</div>

<div><br></div><div>If it doesn't appear to be running:</div><div>1) Look at the log file listed in the tasks.cfg config for [dnsreg], perhaps even change the logfilename to /var/log/xymon/dnsreg.log and see if the logfile gets created, and if anything interesting appears.</div>

<div>2) Change the command to something simple like "/usr/bin/date" and see if the output appears in your log, then work backwards.</div><div>3) Try running the command manually, from within "xymoncmd", after sourcing the environment.  Something like this:</div>

<div><br></div><div>$ /usr/lib/xymon/server/bin/xymoncmd</div><div>$ . /etc/xymon/xymonserver.cfg</div><div>[might show an error if you have an include line, just ignore]</div><div>$ /usr/lib/xymon/server/ext/dnsreg</div>

<div><br></div><div>See if this gives any output that shows problems.</div><div><br></div><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">

<p class="MsoNormal"><span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></span></p><p class="MsoNormal"><span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> </span></span><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">For the http checks. I created a httoweb.cfg in tasks.d with the code</span></p>

</div></blockquote><div><br></div><div>I'm assuming that you didn't put the code directly in the httoweb.cfg file.  Doing that would not work.</div><div><br></div><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"><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">What I am wondering is:</span><br></p><p><span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1.<span style="font:7.0pt "Times New Roman"">       </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Do I need to rename the domain check from the host file (only the http like </span></span><a href="http://somedomain.com" target="_blank"><span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">http://somedomain.com</span></span><span></span></a><span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">)</span></span></p>

</div></blockquote><div>They are independent, and will only cause a problem if the status message name clashes.  In the case of the hosts.cfg entries (run by xymonnet) the status message (and thus the name of the dot on your Xymon display) is called "http".  With my example script, I used "webchecks".  Feel free to rename this in the script, but be sure to avoid a clash with any existing check names.  You could use "http" for this if you wanted to, and remove all "http://" or "https://" checks from hosts.cfg so that xymonnet doesn't report http status messages.</div>

<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"><p><span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></span></p>

<p><span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2.<span style="font:7.0pt "Times New Roman"">       </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">And, If I remove the http check, where will it report the status?</span></span></p>

</div></blockquote><div>In the "webchecks" test.<br></div><div><br></div><div>J</div><div><br></div></div></div></div>