Yes, that's correct - there will be no soft state, the first state will be hard and mail will be sent imaediately.
On Fri, 18 Mar 2011, Michael DiMartino wrote: > so if i set max_check_attempts to 1 I will get an immediate email alert on > soft states > because the soft-state will time out and turn to a hard starte. Correct? > > define host{ > use generic-switch ; Inherit default values > from a template > host_name Trafficbuyer ; The name we're giving > to this switch > alias Trafficbuyer ; A longer name associated with > the switch > address 10.10.10.10 ; IP address of the switch > max_check_attempts 1 > hostgroups switches ; Host groups this switch is > associated with > contact_groups FT > } > > > On Fri, Mar 18, 2011 at 10:09 AM, Tomas Macek <ma...@fortech.cz> wrote: > >> When you need to set up the Icinga's behaviour on down states, you need to >> configure the host definition. So >> >> host { >> use generic-host >> host_name sw.lit5 >> ... >> max_check_attempts 3 >> ... >> } >> >> If you still want to try to setup what I've told to you, you must setup >> the "max_check_attempts" (see above) to "1". >> >> But maybe I misunderstood what you want to achieve... >> >> Tomas >> >> >> On Fri, 18 Mar 2011, Michael DiMartino wrote: >> >>> Tomas, >>> This is what i have have i my switch.cfg file >>> >>> define service{ >>> use generic-service ; Inherit values from a >>> template >>> host_name Synergy-DSL ; The name of the host >>> the service is associated with >>> contact_groups FT >>> service_description PING ; The service description >>> check_command check_ping!200.0,20%!600.0,60% ; The >>> command used to monitor the service >>> normal_check_interval 1 ; Check the service every >> 5 >>> minutes under normal conditions >>> retry_check_interval 1 ; Re-check the service >> every >>> minute until its final/hard state is determined >>> notification_options w,u,c,r >>> } >>> >>> >>> On Fri, Mar 18, 2011 at 9:43 AM, Tomas Macek <ma...@fortech.cz> wrote: >>> >>>> What about to set up number of retries on host check to 1? Everything >> will >>>> be hard state, so everything will be reported... >>>> >>>> Tomas >>>> >>>> On Fri, 18 Mar 2011, Michael DiMartino wrote: >>>> >>>>> How do configure Icinga to send email alerts on a down;soft state? >>>>> >>>>> Mar 18 09:15:18 li284-114 icinga: HOST ALERT: >>>> Synergy-DSL;DOWN;SOFT;1;(Host >>>>> Check Timed Out) >>>>> >>>>> >>>>> -- >>>>> -- >>>>> Regards, >>>>> Michael Di Martino >>>>> Hudson Street Technology Group >>>>> >>>>> m: +1631.988.6060 >>>>> mich...@hudsonstreet.us >>>>> http://hudsonstreet.us >>>>> >>>> >>>> >>>> >> >> ------------------------------------------------------------------------------ >>>> Colocation vs. Managed Hosting >>>> A question and answer guide to determining the best fit >>>> for your organization - today and in the future. >>>> http://p.sf.net/sfu/internap-sfd2d >>>> _______________________________________________ >>>> icinga-users mailing list >>>> icinga-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/icinga-users >>>> >>> >>> >>> >>> -- >>> -- >>> Regards, >>> Michael Di Martino >>> Hudson Street Technology Group >>> >>> m: +1631.988.6060 >>> mich...@hudsonstreet.us >>> http://hudsonstreet.us >>> >> >> >> >> ------------------------------------------------------------------------------ >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> icinga-users mailing list >> icinga-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/icinga-users >> > > > > -- > -- > Regards, > Michael Di Martino > Hudson Street Technology Group > > m: +1631.988.6060 > mich...@hudsonstreet.us > http://hudsonstreet.us > ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users