Home Directory Plugins Security check_prelude

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_prelude

Rating
1 vote
Favoured:
0
Hits
97024
Files:
FileDescription
check_prelude.plPrelude Check Plugin v1.0
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This plugin gets the events logged by Prelude to a MySQL database in the last 5 Minutes and returns a status based on the specified limits.
About
=====

The Check Plugin counts events with severities medium and high during
the last 5 minutes.
It then produces a WARNING or an CRITICAL based on the limits given

The Program uses Perl DBI for database access.

Usage
=====

check_prelude.pl max count severity high max count severity medium
check_prelude.pl --help gives help



The database accessdata and the timeoffset are hardcoded at the moment.
They could be made parameters if it becomes necessary. The time bet-
ween checks must be the same as the timeoffset used by the plugin for now.

Too many events with severity high produce a CRITICAL
Too many events with severity medium produce a WARNING
The conditions are evaluated in this order.
All other results produce a OK

You are welcome to ask questions, give feedback and improve
this plugin.

Author
======

Andre Lammel


License Information
===================

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Reviews (1)
bybenar, August 4, 2015
You'll need to operate some changes on this script if you have latest Prelude version:

* Replace:
use constant SEV_00 => "high";
use constant SEV_01 => "high";
with:
use constant SEV_00 => "4";
use constant SEV_01 => "3";

* Replace the query with:
my $QUERY = {severity}
with
$ref->{severity}
in conditions after 'RESULT:'.

Regards,
Ben