<div dir="ltr">On 30 January 2013 04:36, Simmons Clint <span dir="ltr"><<a href="mailto:C.Simmons@criflending.com" target="_blank">C.Simmons@criflending.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div lang="EN-US" link="blue" vlink="purple"><p class=""> </p><p class="">I’m having a problem trying to disable over 1000+ hosts and tests at one time for maintenance windows. I’ve even tried disabling in groups of 100-200 but it will still miss a group of servers here and there. It seems that when I click “apply” and once the screen refreshes could possibly stop running the <a href="http://enadis.sh/cgi" target="_blank">enadis.sh/cgi</a> script in the background (??)</p>

</div></blockquote></div><div style>I'm thinking that there's some limit being reached, perhaps maximum rate of commands to xymond (although I'm not aware of any such thing), maximum CGI request size, or maximum CGI lifetime.</div>

<div style><br></div><div style>First, check your xymond logs for warnings.  Also, check the Apache logs.  If nothing, then run the following command:<br></div><div><div><br></div></div><div style>xymond_channel --channel=enadis sh -c 'cat >/tmp/enadis-msgs.dump'</div>

<div><br></div><div style>Then do your disable from the web interface.  When it's all finished (perhaps when the last of the servers show as disabled), stop the above process and review the dump file, looking for the hosts that didn't get disabled.  If they show up in the dump, the problem might be in the xymond process handling the disable commands.  This would be tricky to diagnose, and might require a review of the code, or running xymond with debugging on.</div>

<div style><br></div><div style>If the hosts didn't show up in the dump, the problem might be in the CGI process (enadis.cgi).  You could replace enadis.sh with a modified version that first copies STDIN to a dump file before sending it on the normal path to the CGI.  Such as adding the "cat" line below immediately before the "exec" line like so:</div>

<div style><br></div><div style>#!/bin/sh</div><div style># This is a wrapper for the Xymon enadis script</div><div style>. /usr/lib/xymon/server/etc/cgioptions.cfg</div><div style>cat > /tmp/enadis-cgi.dump; cat /tmp/enadis-cgi.dump |</div>

<div style> exec /usr/lib/xymon/server/bin/enadis.cgi $CGI_ENADIS_OPTS</div><div style><br></div><div style>Also, you might see if sending the disable messages from the command-line all at once also produces the same behaviour.  If it does, then the CGI is not your problem, and is more likely to be the xymond process.</div>

<div style><br></div><div style>J</div></div>