<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I will create an issue about that on devmon <br>
Regards<br>
Bruno<br>
</p>
<div class="moz-cite-prefix">Le 29.09.2022 à 13:38, Neil Simmonds a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AS8PR05MB86115BFA141C62ADDB9AD965D4579@AS8PR05MB8611.eurprd05.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-language:EN-GB;}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
mso-fareast-language:EN-US;}span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi Bruno, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for the suggestion. I did that and,
because I was working on a copy I also took the step of moving
all the files in hosts.d to be a part of the hosts.cfg file to
rule that out.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks to doing that I realised that I have
some includes in there that the files don’t exist for yet as I
haven’t copied the scripts over that create them
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve commented out those extra includes and
it’s all working now. So worth people being aware, if you have
a specific file included and it’s missing it devmon will fail.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards, <o:p></o:p></p>
<p class="MsoNormal">Neil. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:EN-GB" lang="EN-US">From:</span></b><span
style="mso-fareast-language:EN-GB" lang="EN-US"> Bruno
Manzoni <a class="moz-txt-link-rfc2396E" href="mailto:bruno.manzoni@ubi-network.ch"><bruno.manzoni@ubi-network.ch></a>
<br>
<b>Sent:</b> 29 September 2022 12:12<br>
<b>To:</b> Neil Simmonds
<a class="moz-txt-link-rfc2396E" href="mailto:Neil.Simmonds@studio.co.uk"><Neil.Simmonds@studio.co.uk></a><br>
<b>Subject:</b> Re: [Xymon] Weird devmon issue with
Terabithia RPM's<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:solid #FFCACA
1.0pt;padding:12.0pt 12.0pt 12.0pt 12.0pt;background:#FFCACA">
<p style="background:#FFCACA;border:none;padding:0cm"><b><span
style="font-size:12.0pt;color:black">[CAUTION]</span></b><span
style="color:black">
</span><span style="font-size:10.0pt;color:black">This is an
external email. Do not click links or open any attachments
unless you are sure they are safe.</span><span
style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p>Hi Neil, <o:p></o:p></p>
<p>I manage devmon on github,(I try), and I never see your
problem, but it seems to me a permission issue: you can may
be place a copy of the hosts file in another location and
set it in devmon.cfg: just to confirm that it is a
permission issue.<br>
Hope this help.<br>
Regards<o:p></o:p></p>
<p>Bruno<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 29.09.2022 à 12:54, Neil Simmonds a
écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi folks,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’m currently building a new Xymon
server and I’m going from Centos 5 running Xymon 4.3.4 to
RHEL 8 running Xymon 4.3.30-1. I’ve also switched to using
the Terabithia RPM’s and I’ve gone from the old
sourceforge Devmon to the new Github devmon. So all in
all, quite a bit of change . <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’ve had to do quite a lot of changing
of paths in config files and scripts due to the different
layout when using Terabithia but I’m happy I’ve made all
those changes correctly.
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">However, when trying to run devmon
using “./devmon --readbbhosts -vvvvv” I’m getting an error
of
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">[22-09-29@10:41:50]
Unable to open file '/etc/xymon/hosts.cfg' (No such file
or directory)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">Exiting
subroutine via next at /opt/devmon/modules/dm_config.pm
line 1548 (#1)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> (W
exiting) You are exiting a subroutine by unconventional
means, such</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> as a
goto, or a loop control statement.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">Label not
found for "next FILEREAD" at
/opt/devmon/modules/dm_config.pm line</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">
1548 (#2)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> (F) You
named a loop to continue, but you're not currently in a
loop of</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> that
name, not even if you count where you were called from.
See</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> "last"
in perlfunc.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">Uncaught
exception from user code:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">
Label not found for "next FILEREAD" at
/opt/devmon/modules/dm_config.pm line 1548.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">
dm_config::read_hosts_cfg() called at
/opt/devmon/modules/dm_config.pm line 575</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">
dm_config::initialize("0.22.06") called at ./devmon line
27</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’ve checked permissions on
/etc/xymon/hosts.cfg and it’s 666 (probably only needs to
be 644 but I made it 666 to try and solve this)
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The only thing I can think of is that
I’ve only got 1 entry in the hosts.cfg file and that’s an
include for the /etc/xymon/hosts.d directory but that does
seem to be being read by devmon as it lists all the checks
it’s doing before the error. (EG “Checking if #
testip matches NET:.” ) <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Has anyone seen this kind of error
before and have any idea about how I might fix it?
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:navy;mso-fareast-language:EN-GB">Thanks,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:navy;mso-fareast-language:EN-GB">Neil
Simmonds.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="mso-fareast-language:EN-GB">Studio is a trading
name of Studio Retail Ltd which is authorised and
regulated by the Financial Conduct Authority for
consumer credit and general insurance. Studio Retail Ltd
are members of the Finance and Leasing Association
(FLA). Registered in England. No: 718151. Registered
Office: Church Bridge House, Henry Street, Accrington,
BB5 4EE NOTE: This email and any information contained
within or attached in a separate file is confidential
and intended solely for the Individual to whom it is
addressed. The information or data included is solely
for the purpose indicated or previously agreed. Any
information or data included with this e-mail remains
the property of Studio Retail Ltd and the recipient will
refrain from utilising the information for any purpose
other than that indicated and upon request will destroy
the information and remove it from their records. Any
views or opinions presented are solely those of the
author and do not necessarily represent those of Studio
Retail Ltd. If you are not the intended recipient, be
advised that you have received this email in error and
that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. No
warranties or assurances are made in relation to the
safety and content of this e-mail and any attachments.
No liability is accepted for any consequences arising
from it. Studio Retail Ltd reserves the right to monitor
all e-mail communications through its internal and
external networks. If you have received this email in
error, please notify our careline on +44(0) 371 200
0378.
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Xymon mailing list<o:p></o:p></pre>
<pre><a href="mailto:Xymon@xymon.com" moz-do-not-send="true" class="moz-txt-link-freetext">Xymon@xymon.com</a><o:p></o:p></pre>
<pre><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=05%7C01%7CNeil.Simmonds%40studio.co.uk%7C059fce2f98fc4cdc146f08daa20b6ad4%7C5dec06aa244548258283467bd0a4cbd6%7C0%7C0%7C638000467181778093%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=R6W7CLupSJt%2FJfuaV%2F6a87GGOPHeBnvf5FYb5Aod5kI%3D&reserved=0" moz-do-not-send="true">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></pre>
</blockquote>
</div>
</div>
Studio is a trading name of Studio Retail Ltd which is authorised
and regulated by the Financial Conduct Authority for consumer
credit and general insurance. Studio Retail Ltd are members of the
Finance and Leasing Association (FLA). Registered in England. No:
718151. Registered Office: Church Bridge House, Henry Street,
Accrington, BB5 4EE NOTE: This email and any information contained
within or attached in a separate file is confidential and intended
solely for the Individual to whom it is addressed. The information
or data included is solely for the purpose indicated or previously
agreed. Any information or data included with this e-mail remains
the property of Studio Retail Ltd and the recipient will refrain
from utilising the information for any purpose other than that
indicated and upon request will destroy the information and remove
it from their records. Any views or opinions presented are solely
those of the author and do not necessarily represent those of
Studio Retail Ltd. If you are not the intended recipient, be
advised that you have received this email in error and that any
use, dissemination, forwarding, printing, or copying of this email
is strictly prohibited. No warranties or assurances are made in
relation to the safety and content of this e-mail and any
attachments. No liability is accepted for any consequences arising
from it. Studio Retail Ltd reserves the right to monitor all
e-mail communications through its internal and external networks.
If you have received this email in error, please notify our
careline on +44(0) 371 200 0378.
</blockquote>
<div id="grammalecte_menu_main_button_shadow_host" style="width:
0px; height: 0px;"></div>
</body>
</html>