Service records not getting stale ??

Sumit Malhotra smalhotra at dataarmor.net
Tue Jul 12 13:15:22 CEST 2005


Hello,
 
I am planning to use Nagios in distributed environment. The Server side
settings are given below.   
 
Host and service records are not getting stale even though I have
configured them to.
 
The script "service-is-stale" makes the results stale if executed
manually. 
Permissions are also OK. If active_checks_enabled are enabled then it
makes Service s stale (As it should). 
 
I am using  nagios-2.0-0.b3.1.1.fc1.test  form diag-weers.
 
Any ideas???
 
 
########################################################################
########
# SERVICE DEFINITIONS
########################################################################
########
 
# Generic service definition template
define service{
        name                            generic-service ; The 'name' of
this service template, referenced in other service definitions
        active_checks_enabled           0       ; Active service checks
are enabled
        passive_checks_enabled          1       ; Passive service checks
are enabled/accepted
        parallelize_check               0       ; Active service checks
should be parallelized (disabling this can lead to major performance
problems)
        obsess_over_service             1       ; We should obsess over
this service (if necessary)
        check_freshness                 1       ; Default is to NOT
check service 'freshness'
        notifications_enabled           1       ; Service notifications
are enabled
        event_handler_enabled           1       ; Service event handler
is enabled
        flap_detection_enabled          1       ; Flap detection is
enabled
        process_perf_data               1       ; Process performance
data
        retain_status_information       1       ; Retain status
information across program restarts
        retain_nonstatus_information    1       ; Retain non-status
information across program restarts
        freshness_threshold            200      ;
        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }
 
 
 
# Service definition
define service{
        use                             generic-service         ; Name
of service template to use
 
        host_name                       test
        service_description             Disk Space
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            5
        contact_groups                  admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   service-is-stale
        }
 
 
 
 
 
Thanks,
Sumit Malhotra
 
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050712/56aa4f29/attachment.html>


More information about the Users mailing list