Cut down notifications from Nagios

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring Cut down notifications from Nagios
# 1  
Old 01-07-2013
Thank you so much, it works perfectly! Smilie
You've saved me so many more hours searching around on how exactly it works!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Disabling New Badge Notifications

Finally got around to this. Have added a UserCP option to disable "new badge" alerts in the user profile "options" area so anyone who finds the alerts annoying, feel free to disable them (since the are primary designed for new users): https://www.unix.com/members/1-albums215-picture1219.png ... (0 Replies)
Discussion started by: Neo
0 Replies

2. UNIX for Beginners Questions & Answers

No SMS notifications once ppp up

Hi all, I have an Siemens IoT2020 with a Sim7000e cellular board that I connect via USB to the board and connect to Telstra Cat-M1 network. I can send and receive SMS and do so using Node-Red but can also do with Minicom etc. When connected I get : root@iot2000:~# dmesg | grep USB ACPI:... (0 Replies)
Discussion started by: antc
0 Replies

3. Infrastructure Monitoring

Notifications not coming through

Issue: I'm not receiving notifications I can succesfully receive an e-mail if I do this on the command line: /usr/bin/mail -s "NAGIOS HOST ALERT on $HOSTNAME$" rgouette@butlerbros.com but, my command.cfg configuration below, refuses to send an e-mail when I set a service to a critical... (3 Replies)
Discussion started by: rgouette
3 Replies

4. Infrastructure Monitoring

Nagios check dependent on second nagios server

We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side. I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies

5. Infrastructure Monitoring

How to limit the amout of Nagios SMS notifications?

Hi all, I have Nagios 3.3.1 setup on Ubuntu Desktop 11.04. I monitor approx. 50 hosts (mixture of Windows Servers, Switches, Firewalls) by PING only. Down hosts are notified to me via email and SMS at the moment. What I would like to so is limit the amount of SMS... (0 Replies)
Discussion started by: Yoshi17
0 Replies

6. Post Here to Contact Site Administrators and Moderators

Servers, email notifications

Hi. On 09-05-2007 Neo posted that new servers were on their way. 1) It would be nice to hear of occasional progress. As far as I can tell, there has not been much of a change. The notice that is posted every now and then talks about a new server "this week". (In fact as I was previewing... (1 Reply)
Discussion started by: drl
1 Replies

7. Solaris

Solaris E-Mail Notifications ?!

Hi , I need to have a monitoring system also I wanna have E-Mail Notification .or SMS notification to be on touch with my System : ) ... Regards Adel (1 Reply)
Discussion started by: ArabOracle.com
1 Replies

8. Post Here to Contact Site Administrators and Moderators

trying to turn email notifications off

I'm trying to disable the email notifications; despite going into my control panel and selecting NO next to Use 'Email Notification' by default? I keep getting email notifications anyway! And I know I've never selected the checkbox next to Email Notification: emails sent to you whenever someone... (2 Replies)
Discussion started by: oombera
2 Replies
Login or Register to Ask a Question
Monitoring::Availability(3pm)				User Contributed Perl Documentation			     Monitoring::Availability(3pm)

NAME
Monitoring::Availability - Calculate Availability Data from Nagios / Icinga and Shinken Logfiles. SYNOPSIS
use Monitoring::Availability; my $ma = Monitoring::Availability->new(); DESCRIPTION
This module calculates the availability for hosts/server from given logfiles. The Logfileformat is Nagios/Icinga only. REPOSITORY
Git: http://github.com/sni/Monitoring-Availability CONSTRUCTOR
new ( [ARGS] ) Creates an "Monitoring::Availability" object. "new" takes at least the logs parameter. Arguments are in key-value pairs. rpttimeperiod report timeperiod. defines a timeperiod for this report. Will use 24x7 if not specified. assumeinitialstates Assume the initial host/service state if none is found, default: yes assumestateretention Assume state retention, default: yes assumestatesduringnotrunning Assume state during times when the monitoring process is not running, default: yes includesoftstates Include soft states in the calculation. Only hard states are used otherwise, default: no initialassumedhoststate Assumed host state if none is found, default: unspecified valid options are: unspecified, current, up, down and unreachable initialassumedservicestate Assumed service state if none is found, default: unspecified valid options are: unspecified, current, ok, warning, unknown and critical backtrack Go back this amount of days to find initial states, default: 4 showscheduleddowntime Include downtimes in calculation, default: yes timeformat Time format for the log output, default: %s verbose verbose mode breakdown Breakdown availability into 'months', 'weeks', 'days', 'none' adds additional 'breakdown' hash to each result with broken down results METHODS
calculate calculate() Calculate the availability start Timestamp of start end Timestamp of end log_string String containing the logs log_file File containing the logs log_dir Directory containing *.log files log_livestatus Array with logs from a livestatus query a sample query could be: selectall_arrayref(GET logs... Columns: time type options, {Slice => 1}) log_iterator Iterator object for logentry objects. For example a L<MongoDB::Cursor> object. hosts array with hostnames for which the report should be generated services array with hashes of services for which the report should be generated. The array should look like this: [{host => 'hostname', service => 'description'}, ...] initial_states if you use the "current" option for initialassumedservicestate or initialassumedhoststate you have to provide the current states with a hash like this: { hosts => { 'hostname' => 'ok', ... }, services => { 'hostname' => { 'description' => 'warning', ... } } } valid values for hosts are: up, down and unreachable valid values for services are: ok, warning, unknown and critical get_condensed_logs get_condensed_logs() returns an array of hashes with the condensed log used for this report get_full_logs get_full_logs() returns an array of hashes with the full log used for this report BUGS
Please report any bugs or feature requests to http://github.com/sni/Monitoring-Availability/issues <http://github.com/sni/Monitoring- Availability/issues>. DEBUGING
You may enable the debug mode by setting MONITORING_AVAILABILITY_DEBUG environment variable. This will create a logfile: /tmp/Monitoring-Availability-Debug.log which gets overwritten with every calculation. You will need the Log4Perl module to create this logfile. SEE ALSO
You can also look for information at: o Search CPAN http://search.cpan.org/dist/Monitoring-Availability/ <http://search.cpan.org/dist/Monitoring-Availability/> o Github http://github.com/sni/Monitoring-Availability <http://github.com/sni/Monitoring-Availability> AUTHOR
Sven Nierlein, <nierlein@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2010 by Sven Nierlein This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-21 Monitoring::Availability(3pm)