service checks and timeperiods

Mascardo, Erwin Erwin.Mascardo at intelsat.com
Thu Jun 9 15:50:28 CEST 2005


>-----Original Message-----
>From: Lori Adams [mailto:ladams at cloudmark.com] 
>Sent: Wednesday, 08 June, 2005 15:27
>
>Below are my configurations, and the error I get when doing a verify.
>define service {
>        use                             generic-service-template
>	  host_name				    bar
>        service_description             doneQ
>	 #service_description		    doneQ-morn
>        check_command                   check_doneq!500
>        contact_groups                  r2-admins
>        check_period                    5am-to-10am
>        normal_check_interval           5
>        }
>
>define service {
>        use                             generic-service-template
>	  host_name				    bar
>        service_description             doneQ
>        check_command                   check_doneq!200
>        contact_groups                  r2-admins
>        check_period                    all-but-5am-to-10am
>        normal_check_interval           5
>        }
>
>Error: Service 'doneQ' on host 'bar' has already been defined
>
>Error: Could not register service (config file
>'/srv/http/nagios/etc/services.cfg', line 467)
>
>What I want is for in the UI, there should be one visible check.
>Currently in the UI, it says doneQ, and doneQ-morn (see 
>comment in first
>config), as I have to prepare two different checks because of the
>different thresholds.

Try a wrapper script which checks to see what time it is, and then
passes the appropriate argument to your actual check command based on
that.
############################################################

Intelsat is a global communications provider offering flexible and 
secure services to customers in over 220 countries and territories.  
Intelsat has maintained a leadership position for over 40 years by 
distributing video, voice, and data for television and content providers, 
government and military entities, major corporations, telecommunications carriers, 
and Internet service providers. Intelsat's reach, power and expanding solutions 
portfolio deliver information reliably and quickly to every corner of the globe.  

For more information, visit www.intelsat.com.

############################################################
This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by reply email and 
destroy all copies of the original message.  Any views 
expressed in this message are those of the individual 
sender, except where the sender specifically states them 
to be the views of Intelsat, Ltd. and its subsidiaries.
############################################################


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
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