Update: Passed the CISSP exam!

Just a quick entry to note that I did pass the CISSP exam! I still have to get endorsed by an existing CISSP (done) and get my years of experience proven (paperwork submitted). Now I am just waiting for ISC2 to complete the process so I can officially say I am a CISSP!

Update:  I got confirmation today (April 9th, 2009) that my endorsement and certification were approved.  So, I am now officially a CISSP!

Studying for CISSP exam

I have been studying to take the CISSP examination. You can read about the CISSP exam here. Since this has kept me pretty busy, but I did not want to fall behind on my Fifty Two project I combined the two and ended up with the shot below. I think it turned out pretty well :)

Source of enlightenment

OCS Diff script

Here is the script I used to generate hardware change reports from the OCS NG database.  This script is implemented much like the daily disk reports from OCS (see this).  Sorry there is no better documentation for this, I just have not had the time and soon will no longer have access to test or refine this.  If you post a comment here I will try to help as best I can and as time allows.

Download OCS Diff Version 1.0

Nagios Plugin for Barracuda Spam Firewalls

In our environment we use Barracuda Spam Firewalls to handle in and outbound mail delivery. Wanting to keep an eye on the in and outbound queues to make sure we are not seeing any delays with delivery I went looking for ways to monitor the queues and alert when they are above certain thresholds. Barracuda exposes the queue lengths in a number of ways (CGI/API, web interface and SNMP) and since we wanted this automated and we already use Nagios I chose to use SNMP. I tried some of the other SNMP plugins to try to use those, but after a bit of struggling without success I decided to write my own in PHP (mainly because that is what is easiest for me). Use the download link below to download a zip file of the plugin.

Download Barracuda Plugin Version 1.5

Or click on this link to see the code within this post.

> check_cuda

Usage

Usage: check_cuda host-ip community-string queue warning-threshold critical-threshold

Queue can be either in, out or bounce
Warning and Critical values should be positive integers

Note: Version 1.5 of the zip file includes check_cuda5, which is a version of the script that works under PHP5

Prerequisites

This plugin requires php_snmp support

Nagios Configuration

Commands

Define commands as shown below:

define command {
command_name Check Barracuda Inbound Mail Queue
command_line $USER1$/check_cuda $HOSTADDRESS$ public in 500 1000
}

define command {
command_name Check Barracuda Outbound Mail Queue
command_line $USER1$/check_cuda $HOSTADDRESS$ public out 500 1000
}

Obviously you will need to change the SNMP community string from public to match your community string. If you wish you could also add a check command to track the bounce queue. You may also want to use different warning and critical threshold than I did (500 and 1000 respectively). These numbers may not be right for your situation.

Contact Groups

Add a service group like the one below (customizing for your site of course):

# contactgroups Cuda Admins
define contactgroup {
contactgroup_name Cuda_Admins
alias Cuda_Admins
members joe,sally,fred
}

Service Templates

define service {
name Check Barracuda Mail Queue Template
use generic-service
contact_groups Cuda_Admins
register 0
}

Services

Add the service as needed to your hosts, sample shown below:

define service {
service_description Check Barracuda Inbound Mail Queue
use Check Barracuda Mail Queue Template
host_name yourcuda
check_command Check Barracuda Inbound Mail Queue
}

define service {
service_description Check Barracuda Outbound Mail Queue
use Check Barracuda Mail Queue Template
host_name yourcuda
check_command Check Barracuda Outbound Mail Queue
}

If you have any questions, comments or problems then just post a comment on this post and I’ll get back to you.

Update (January 2008)

There are now some additional plug-ins available to perform the same functions written in PERL and with hooks to graphing solutions. You can find them here.

Update (March 2010)

The new version (1.5) of the zip file contains check_cuda5, which has been updated to work with PHP5 (check_cuda was originally written under php4 and seemed to have an issue under php5 with the shebang line)

Forums and Comments

I moved comments from the forums to the appropriate pages (ADISS, etc) and updated pages to let people know to just leave comments on pages now. The forums were confusing and not adding any real value. For those of you who posted about ADISS, your comments and my replies can be found on the ADISS page. Once I moved the comments I also removed the forums since they were no longer needed.