[BlueOnyx:14988] Re: Vacation blocked by cced down

Eric Peabody admin at bnserve.com
Sun Mar 23 08:06:17 -05 2014


Here's a nagios plugin for checking cced for those that run nagios:

#!/usr/bin/perl -w -I/usr/sausalito/perl

use strict;
use lib qw( /usr/sausalito/perl );
use CCE;


my $cce = new CCE;
$cce->connectuds();
my ($oid) = $cce->find("System");
$cce->bye('SUCCESS');

if ($oid == '1') {
   print "OK";
   exit(0);
} else {
   print "OID == $oid";
   exit(2);
}

Eric

On 3/21/14 4:53 PM, Michael Stauber wrote:
> Hi Eric,
>
>> 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.
> 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.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20140323/f305986e/attachment.html>


More information about the Blueonyx mailing list