timeperiod not behaving as expected

Assaf Flatto nagios at flatto.net
Wed Jul 28 17:21:53 CEST 2010


> how does this look:
>
> /usr/local/nagios/etc/objects$ grep servicetemplates ../nagios.cfg
> cfg_file=/usr/local/nagios/etc/objects/servicetemplates.cfg
>
> /usr/local/nagios/etc/objects$ cat servicetemplates.cfg
> # servicetemplates.cfg
> define service{
>         name                    credit-card-box-service
>         use                     local-service         ; Inherit from that
>         notification_period     credit_card_hours
>         check_period            credit_card_hours
>         register                0
>         }
>
> $vim linuxserver.cfg...
>
> define service{
>         use                     credit-card-box-service
>         host_name               mcve.cteusa.com
>         service_description     SMTP
>         check_command           check_smtp!-t 5
>         }
>
>   

Looks good .

should make your nights quieter and stop working on the box for both the 
server checks and service checks.

-- 
Never,Ever Cut A Deal With a Dragon 


Next year I will be doing the London to Paris bike ride to 
raise money for the DogTrust (www.dogtrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
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