<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=FR-CH link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi all,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>I have simples questions.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Is it possible <b>not</b> to execute host checks
but execute services checks ? <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Is it possible to send services notifications
when the host is not checked ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Because I don't understand, I'm not
notified of services changes.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>here are parts of my conf files (They come
from my old nagios 2.9 configuration, I'm actualy moving from 2.9 to 3.2) :<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>##### static definitions<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>## notifications
commands<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>define command{<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'> </span><span
lang=EN-US style='font-family:"Courier New"'>command_name notify-by-mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_line /opt/nagios/libexec/notify_manager mail $CONTACTNAME$
"$CONTACTALIAS$" $CONTACTEMAIL$ $HOSTADDRESS$ "$HOSTALIAS$"
"$SERVICEDESC$" $SERVICESTATE$ "$SERVICEOUTPUT$" $DATE$
$TIME$ $LASTSERVICESTATECHANGE$<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
command{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_name notify-by-sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_line /opt/nagios/libexec/notify_manager sms $CONTACTNAME$ "$CONTACTALIAS$"
$CONTACTEMAIL$ $HOSTADDRESS$ "$HOSTALIAS$" "$SERVICEDESC$"
$SERVICESTATE$ "$SERVICEOUTPUT$" $DATE$ $TIME$
$LASTSERVICESTATECHANGE$<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
command{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_name host-notify-by-mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_line /opt/nagios/libexec/dummy<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
command{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_name host-notify-by-sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
command_line /opt/nagios/libexec/dummy <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>## contacts
templates<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
contact{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
name generic-contact-mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_notification_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_notification_options d,r<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_notification_commands host-notify-by-mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_notification_options w,u,c,r<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_notification_commands notify-by-mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
register 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
contact{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
name generic-contact-sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_notification_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_notification_options d,r<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_notification_commands host-notify-by-sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_notification_options c<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_notification_commands notify-by-sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
register 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>## host
template<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
host{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
name generic-host ; The name of this host template<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notifications_enabled 1 ; Host notifications are enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
event_handler_enabled 1 ; Host event handler is enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
flap_detection_enabled 1 ; Flap detection is enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
failure_prediction_enabled 1 ; Failure prediction is enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
process_perf_data 1 ; Process performance data<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
retain_status_information 1 ; Retain status information across program restarts<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
retain_nonstatus_information 1 ; Retain non-status information across program
restarts<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
check_interval 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
max_check_attempts 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notification_interval 120<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notification_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notification_options d,r<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A
TEMPLATE!<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>##
service template<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
service{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
name generic-service ; The 'name' of this service template<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
active_checks_enabled 1 ; Active service checks are enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
passive_checks_enabled 1 ; Passive service checks are enabled/accepted<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
parallelize_check 1 ; Active service checks should be parallelized (disabling
this can lead to major performance problems)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
obsess_over_service 1 ; We should obsess over this service (if necessary)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
check_freshness 0 ; Default is to NOT check service 'freshness'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notifications_enabled 1 ; Service notifications are enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
event_handler_enabled 1 ; Service event handler is enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
flap_detection_enabled 1 ; Flap detection is enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
failure_prediction_enabled 1 ; Failure prediction is enabled<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> process_perf_data
1 ; Process performance data<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
retain_status_information 1 ; Retain status information across program restarts<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
retain_nonstatus_information 1 ; Retain non-status information across program
restarts<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
is_volatile 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
check_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notification_interval 2880<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notification_options w,u,c,r,f<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
notification_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A
TEMPLATE!<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>##### dynamic definitions</span><span
lang=EN-US style='font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>##
contacts definition<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
contact{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
use
generic-contact-mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
contact_name contact_4_2_mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
alias
Clair Johnson<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
email
clair@practeo.ch<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_notification_period timeperiod_4_2_mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
timeperiod{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
timeperiod_name
timeperiod_4_2_mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
alias
timeperiod_4_2_mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
monday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
tuesday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
wednesday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
thursday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
friday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
sunday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
saturday
07:00-22:00<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
contact{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
use
generic-contact-sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
contact_name
contact_4_2_sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
alias
Clair Johnson<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
email
null<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_notification_period timeperiod_4_2_sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
timeperiod{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
timeperiod_name
timeperiod_4_2_sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
alias
timeperiod_4_2_sms<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>## host
definition<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
host{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
use
generic-host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_name
localhost<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
alias
supervision<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
address
localhost<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
contact_groups
contactgroup_2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>##
service definition<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>define
service{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
use
generic-service<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
host_name
localhost<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
service_description
http<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
contact_groups
contactgroup_2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
check_command
check_http!"80"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
normal_check_interval 20<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
retry_check_interval
20<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>
max_check_attempts
3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>A run a complete custom interface but everything
else seems working normally, except that the transition between state changes in
only 1 check attempt and not what is specified in the service description.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Dose some one has any idea why I don't get
notifications from services checks and why the max_check_attempts is not working
normaly ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thx a lot for the help<br>
Clair Johnson<o:p></o:p></span></p>
</div>
</body>
</html>