<div dir="ltr"><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">I want to automatically identify and configure test for all services of win servers which has the startup setting “automatic”<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Getting the analysis.cfg entries is quite easy:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">for servername in $LIST<u></u><u></u></span></p><p class="MsoNormal"><span lang="PT" style="font-family:"Courier New"">do<u></u><u></u></span></p><p class="MsoNormal"><span lang="PT" style="font-family:"Courier New"">  echo “HOST=$servername” > $servername.cfg<u></u><u></u></span></p><p class="MsoNormal"><span lang="PT" style="font-family:"Courier New"">  </span><span lang="EN-US" style="font-family:"Courier New"">xymon localhost "xymondlog $servername.svcs"|awk '/ automatic /{printf("   SVC %-30s startup=automatic\n",$1)}' >> $servername.cfg<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">done<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">This will create an individual cfg file for every server just for the SVC check (with ~60 entries each).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">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).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Of course I can add all these lines directly into analysis.cfg, but this would create a very huge file.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Is there a way to use a subdir for those settings?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Any other ideas to combine the normal analysis.cfg with let’s say 100 extra server cfg files?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Xymon 4.3.30 self compiled and latest xymon PS client.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Any ideas welcome<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">regards<font color="#888888"><u></u><u></u></font></span></p><font color="#888888"><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Norbert </span></p></font></div>