Different alerts level for check_disk.

Mukarram Syed muksyed at yahoo.com
Mon Apr 4 21:45:23 CEST 2005


Thanks for those who responded to my previous email.

Also, I am trying to send alarms to my pager at the
critical limit and warning alarm to my email.
I tried to do the following but it does not work
because restarting nagios fails:
In the $NAGIOSHOME/etc/services.cfg:

for the warning I have it as (note
notification_options):

define service{
        use                            
generic-service         ; Name of service template to
use
        hostgroup_name                 
computer-distopias
        service_description             Disk
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  unix-team     

        notification_interval           240
        notification_period             24x7
        notification_options            w,r
        check_command                  
check_nrpe!check_disk

For critical I have it as (note notification_options):

define service{
        use                            
generic-service         ; Name of service template to
use
        hostgroup_name                 
computer-distopias
        service_description             Disk
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  unix-team     

        notification_interval           240
        notification_period             24x7
        notification_options            c,r
        check_command                  
check_nrpe!check_disk

But since the service description is the same, nagios
complains when startup.  
Do I have to have two service descriptions (one for
Disk Warn and other for Disk Critical) or is there
another elegant option?

Thanks for your help again.

-Mukarram.

> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list