Nagios

Plugins

check_apachestatus_auto.pl

A Nagios plugin that parses the status page of an apache server, the plugin returns the response time, the amount of idle, busy, open and total slots. The perfdata returns the status of all slots including Requests/sec, Bytes/Request and Bytes/sec. Optionally you can specify how much slots should be available. Use http(s) and basic user authentication with non standard server-status urls. This is an enhanced version of an enhanced version of Lieven De Bodt’s check_apachestatus.pl.

Why an extra plugin?
First it uses the ?auto parameter instead of parsing the human readable status output – this reduces possible parsing errors. Then it uses a different syntax of the url parameter. And notably most of all it recalculates the Request/sec and the other values by itself instead of using the given apache server-status values.

Why recalculating the Request/sec vaules?
The Requests/sec and the other values given by the apache server status are calculated by the overall accesses since the uptime of the server, thus reflecting the average values since the server start. Normally a server has a very long uptime and so any access peaks aren’t noted by the given average values. The plugin compares the actual uptime and the access values every time it is called by the previous stored values (/tmp/ folder, change the appropriate value in the script if you need another path) . This returns more precise and actual data.

Examples:

nagios_mdaemon_stats.exe (win32 NRPE)

A Nagios NRPE plugin that parses the status page of a MDaemon server, the plugin returns the SMTP, POP, Spam, virus, SPF, DK cache, IP cache, LDAP cache and tarpit statistics of the MDaemon mail server.

Download recent version

nagios_mdaemon_check.exe (win32 NRPE)

A Nagios NRPE plugin that checks the active connections to and from a MDaemon server,
the plugin checks and returns the SMTP, POP, IMAP, WorldClient and Webadmin connections.
WorldClient and Webadmin connection detection is limited because of the stateless
connections to the server.

Example 1:

Warns if total connections exceed 30 and returns critical if >=50

Example 2:

Warms if total connections exceed 30 or SMTPout connections are greater or equal than 20
and returns critical if total connections are greater or equal to 50 or SMPTin connections
are greater or equal than 30.

Download recent version

About Dennis D. Spreen

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.

Search

QR Code

Categories