<div dir="ltr">Excellent!<div><br></div><div>That was it I was looking for. Works exactly as expected. I added a</div><div><br></div><div>directory /home/xymon/server/etc/analysis.d</div><div><br></div><div>into my analysis.cfg, and now:</div><div>- i can throw in any kind of cfg files into this dir, and all the settings become active within some minutes (no restart necessary) </div><div>- even a mix of settings (for one server) in analysis.cfg and a servername.cfg in analysis.d works, both settings are considered</div><div><br></div><div>This makes it very easy to handle the global settings in analysis.cfg, and all the individual checks in several extra files.</div><div><br></div><div>Thanks for the hint, Fabian!</div><div><br></div><div>I saw the directory statement for tasks.d in my servers tasks.cfg as well, but never realized that this is also possible in the other cfg files.</div><div>Next time I will try this in my alerts.cfg as well.</div><div><br></div><div>As always a very fast and sufficient solution from this list, great!</div><div><br></div><div>Have a nice weekend</div><div><br></div><div>Norbert</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 3. Juni 2022 um 11:44 Uhr schrieb Fabian Wendlandt <<a href="mailto:fabian.wendlandt@innowerk-it.de">fabian.wendlandt@innowerk-it.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
including directories does work for analysis.cfg, but unlike e.g. hosts.cfg, analysis.cfg does not include a 'directory'-statement by default.<br>
<br>
Add the following directive above your 'DEFAULT' section in analysis.cfg and restart xymon:<br>
<br>
directory /path/to/analysis.d/<br>
<br>
Regards,<br>
Fabian<br>
<br>
Von: Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>> Im Auftrag von nor krie<br>
Gesendet: Freitag, 3. Juni 2022 10:50<br>
An: <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
Betreff: [Xymon] automated svcs listing with xymon ps client and analysis.d<br>
<br>
Hi,<br>
 <br>
I want to automatically identify and configure test for all services of win servers which has the startup setting “automatic”<br>
 <br>
Getting the analysis.cfg entries is quite easy:<br>
 <br>
for servername in $LIST<br>
do<br>
  echo “HOST=$servername” > $servername.cfg<br>
  xymon localhost "xymondlog $servername.svcs"|awk '/ automatic /{printf("   SVC %-30s startup=automatic\n",$1)}' >> $servername.cfg<br>
done<br>
 <br>
This will create an individual cfg file for every server just for the SVC check (with ~60 entries each).<br>
I thought I can just create these cfg files in $XYMONHOME/etc/analysis.d and it will be used similar to hosts.d or tasks.d directories.<br>
But obviously this does not work (and also there is no mention of analysis.d in the manuals).<br>
Of course I can add all these lines directly into analysis.cfg, but this would create a very huge file.<br>
 <br>
Is there a way to use a subdir for those settings?<br>
Any other ideas to combine the normal analysis.cfg with let’s say 100 extra server cfg files?<br>
 <br>
Xymon 4.3.30 self compiled and latest xymon PS client.<br>
 <br>
Any ideas welcome<br>
 <br>
regards<br>
 <br>
Norbert <br>
</blockquote></div>