check-packeteer.pl 0.2

check-packeteer.pl is a Nagios plugin for network statistics.
check-packeteer.pl is a Nagios plugin for network statistics.

Requirements:

Perl v5 (developed in Perl v5.8.0, tested on perl 5.8.8)
Digest::MD5 Perl module to calculate md5 hash of credentials
LWP::UserAgent for HTTP communication

Installation:

Copy the script to your favourite nagios-plugin location i.e. /usr/lib/nagios/plugins/ and make sure it is read/executable by the nagios daemon (chmod 755).
Life gets a lot easier if you add a section to your /etc/nagios/checkcommands.cfg file:

define command{
command_name check-packeteer
command_line $USER1$/check_packeteer.pl -host 10.11.12.13 -hash 893c830ea67a0ad636c81f8f93d99002 -target $ARG1$ -variable $ARG2$ -period $ARG3$ -warn $ARG4$ -crit $ARG5$
}

Where the value after '-hash' is a md5 hash in hex format, calculated from the concatenated Packeteer password and serial number.

For details on command line options just call check-packeteer.pl without any arguments.

To add a sensor to your Nagios environment just a a section to your /etc/nagios/services.cfg containing something like:

define service {
use generic-packeteer
service_description TCP connection inits out 10min
check_command check-packeteer!/Outbound!tcp-conn-inits!600!1000!1500
}

Let Nagios reload its configuration ('service nagios reload' on RedHat) and off you go ...

What's New in This Release:

A bug in the documentation where the order of 'password' and 'serial' for the '-auth' parameter was wrong was fixed.
A '-number' command line argument was added for beautifying large numbers according to English or German style (1,234 or 1.234).

last updated on:
May 23rd, 2007, 14:35 GMT
price:
FREE!
developed by:
Goesta Smekal
homepage:
www.smekal.at
license type:
GPL (GNU General Public License) 
category:
ROOT \ System \ Monitoring

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!
1 Screenshot
check-packeteer.pl

Add your review!

SUBMIT