How to modify the notifications report?

Thomas Guyot-Sionnest Thomas at zango.com
Thu Oct 11 18:37:53 CEST 2007


> -----Original Message-----
> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
> bounces at lists.sourceforge.net] On Behalf Of Dirk De Coninck
> Sent: Monday, October 08, 2007 18:08
> To: nagios-devel at lists.sourceforge.net
> Subject: [Nagios-devel] How to modify the notifications report?
> 
> Hi all,
> 
> What would be the recommended approach to add a feature to the
> notifications report?
> What we want to achieve is to be able to generate a report listing the
> total number of alerts that were sent between 6:01 PM and 7:59 AM Monday
> through Saturday morning and all day on Saturdays and Sundays. In other
> words, the total number of alerts sent to our on-call pager during
> non-business hours.
> The reason for this is to be able to generate weekly reports of the
> total number of support calls after hours so we can report this to our
> management and be able to ask for additional resources (staffing
> increase) when the workload increases over time.
> 
> Any help to point us in the proper direction how to modify the CGI would
> be greatly appreciated.

1. Create host/service notification command definitions that write the data
into a file.
2. Create a new contact with proper timeperiod (You might gave to define the
timeperiod definition as well), and use the above notification commands.
3. Write a weekly crontab script that reads the file, mail the report and
clear it for the next week.

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3076 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20071011/f6d70ace/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list