<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Here's a nagios plugin for checking
      cced for those that run nagios:<br>
      <br>
      <tt>#!/usr/bin/perl -w -I/usr/sausalito/perl</tt><tt><br>
      </tt><tt><br>
      </tt><tt>use strict;</tt><tt><br>
      </tt><tt>use lib qw( /usr/sausalito/perl );</tt><tt><br>
      </tt><tt>use CCE;</tt><tt><br>
      </tt><tt><br>
      </tt><tt><br>
      </tt><tt>my $cce = new CCE;</tt><tt><br>
      </tt><tt>$cce->connectuds();</tt><tt><br>
      </tt><tt>my ($oid) = $cce->find("System");</tt><tt><br>
      </tt><tt>$cce->bye('SUCCESS');</tt><tt><br>
      </tt><tt><br>
      </tt><tt>if ($oid == '1') {</tt><tt><br>
      </tt><tt>  print "OK";</tt><tt><br>
      </tt><tt>  exit(0);</tt><tt><br>
      </tt><tt>} else {</tt><tt><br>
      </tt><tt>  print "OID == $oid";</tt><tt><br>
      </tt><tt>  exit(2);</tt><tt><br>
      </tt><tt>}</tt><br>
      <br>
      Eric<br>
      <div class="moz-signature">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <title></title>
        <br>
      </div>
      On 3/21/14 4:53 PM, Michael Stauber wrote:<br>
    </div>
    <blockquote cite="mid:532CB4BC.60702@blueonyx.it" type="cite">
      <pre wrap="">Hi Eric,

</pre>
      <blockquote type="cite">
        <pre wrap="">Also, cced being down is a big problem so a watchdog process seems like
a good addition.  That is, a separate process that checks that cced is
running correctly, being sure to detect hangs, and restarts cced and
alerts the admin if it gets a bad response.
</pre>
      </blockquote>
      <pre wrap="">
Yeah, we do have a watchdog for that, but it needs improvement. It's on
my list of things to improve near term.

Aside from the vacation message Apache also depends on CCEd for
generating the VirtualHost containers for the SSL enabled sites. Which
is done in real time when Apache starts. And it if restarts while CCEd
is down, Apache will fail to come up, too.

</pre>
    </blockquote>
    <br>
  </body>
</html>