Home Directory Addons Reporting Nagios Email Reporter

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
Don't miss your chance to attend the 2014 Nagios World conference!

Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.


Nagios Email Reporter

Bookmark and Share

Rating
8 votes
Favoured:
0
Hits
85579
Files:
FileDescription
nagios-reporter.v131.plNagios Reporter v1.3.1
This perl script can request an overnight, daily, weekly or monthly report from the Nagios server using the standard CGIs, it then parses the output (formats CSS for Web and Lotus Notes), then emails as an Inline HTML email to a supplied email address.
This was written to accomplish a task for the company I am working for.
We use Lotus Notes 6 for Email, and the CSS code needed to be modified.

This is supplied as-is, so some knoweledge of Perl may be required.

There are some values in the script such as the SMTP server and Nagios URL that need to be edited before it will run properly.

The reports are defined as:
Overnight; from 17h the previous WORKING day to 9am of the current day
Daily; from 7am of the previous WORKING day to 7am of the current day
Weekly; from 9am 7 days before to 9am of the current day.
Monthly; from 00:00h of the 1st of the month to 00:00h of the 1st day of the current month

These values can easily be modified by changing the values in the perl script for each report.

All of these scripts are protected by the GNU GPLv2

This script requires Perl 5 and Bundle::LWP
Reviews (5)
bye314, November 29, 2010
1 of 1 people found this review helpful
Very useful script, I'm not familiar with perl but it's well written and easy to understand. Thanks.
byechi24, May 28, 2013
Very helpful script. I have added the "cc" because this script only allow me to send to only one email address. With the CC I can send more email group address.
Its works as described, BUT the whole css is a bit of a puzzle... What do I do with it?.. How do I embed it??.. I'm using Thunderbird and the layout looks a bit washed out without the css...

On a side Note: If your system uses sendmail, you can set the $mailhost to 'localhost' and get it to work.. Our email server is configured to Deny direct Relaying of messages - hence the 'localhost'
byakmarwang, November 19, 2012
Embeded css doesnot work.
Can someone help??
bycorcoran, April 30, 2012
This just chucks the last couple hundred alerts out - will need a bit of jigging to do anything more specific (like specify host).

Had some problems with the file
1) Ubuntu's shebang line is different (line 1)
2) PHP needed CPAN install Date::Manip with PHP 5.10.0 to do the date stuff correctly..

It's a good starting point though so will put in extra variables to get it to report on specifics!

cheers