Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-15-2011, 09:20 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Nagios - Can I configure Nagios to do this?

So we monitor all of our disk space, but only get pages for critical. What we would like to do is have one email sent to our team every month with all the "Warnings" for our disk. I have been searching and haven't found a way to do this. Any suggestions?
Old 07-15-2011, 11:52 AM   #2
never say never
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
I don't think there is a way to do that monthly from within Nagios. You would need to write a script to scrape that info and send it out.

However, from within Nagios you certainly could set up weekly notifications. Just set a Timeperiod that is something like:

define timeperiod{
        timeperiod_name Week
        alias           Once a Week Notifications
        sunday          00:00-01:00
        monday          00:00-00:00
        tuesday         00:00-00:00
        wednesday       00:00-00:00
        thursday        00:00-00:00
        friday          00:00-00:00
        saturday        00:00-00:00
Next set up a special contact group:

define contact{
        contact_name                    Weekly
        alias                           Weekly Notify
        service_notification_period     Week
        host_notification_period        Week
        service_notification_options    w
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
Notice I chose only to be notified of warnings.

Finally add the contact group to the services you wish to monitor

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       server1.yourcompany
        service_description             DRIVESPACE
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           2
        retry_check_interval            1
        contact_groups                  admins, Week
        notification_interval           120
        notification_period             extended
        notification_options            w,u,c,r
        check_command                   check_ping!100.0,20%!500.0,60%
Notice I added the contact group week.

You might have to mess with the times so that you get a notification only once, but that would depend on how you have notifications set up now.

Anyway, I think this gives you what you want on a weekly basis. If you really wanted to be super fancy I guess you could create a script to restart nagios using different config files for one day a month or something.

Hope this helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 08:26 AM
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 13 08-04-2015 03:25 AM
ould not create external command file '/usr/local/nagios/var/rw/nagios.cmd gerard.zapata Linux - Newbie 2 09-14-2012 02:57 PM
LXer: April Nagios Training Dates Include Advanced Nagios Class LXer Syndicated Linux News 0 03-18-2011 10:30 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 06:33 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration