Re: OnCall

Sunil Sankar <[email protected]> Sun, 25 Aug 2013 19:27:26 -0700
Newsgroups gmane.network.nagios.user
Message-ID <CAPqUM3UiVJXpvB9hrf6T+YSr8V0FyMN_m+0D7+n0zg8K8jVHUw@mail.gmail.com>
--===============1001605563426752641==
Content-Type: multipart/alternative; boundary=047d7bea35984150c104e4d07f3f

--047d7bea35984150c104e4d07f3f
Content-Type: text/plain; charset=ISO-8859-1

For your case you may have to have a custom notify script .Somethis like
this and then you may have to include this

define command{
    command_name    service-notify-oncall
    command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:
$SERVICEOUTPUT$\n\n" | /bin/mail -s "On Call Person $CONTACTNAME$
$NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$ **" $CONTACTEMAIL$
    }

And then define
define contact{
    contact_name            john
    host_notification_period       john-oncall
    service_notification_period    john-oncall
    host_notification_options      d,u,r
    service_notification_options   c,w,r
    host_notification_commands     host-notify-oncall
    service_notification_commands  service-notify-oncall
    register                       0
    }

like this .

Regards
Sunil



On Sun, Aug 25, 2013 at 10:46 AM, Kaushal Shriyan
<[email protected]>wrote:

>
>
>
> On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan <
> [email protected]> wrote:
>
>> Hi,
>>
>> We have a OnCall system in place starting Monday to Sunday. So what i do
>> is send out email to the stakeholders keeping subject matter For example
>> "Systems OnCall Person - > Mr John (Start Date and End Date)" is there a
>> way to automate this as per
>> http://nagios.sourceforge.net/docs/3_0/oncallrotation.html meaning send
>> out emails automatically instead of composing and sending manually. Please
>> suggest.
>>
>> Regards,
>>
>> Kaushal
>>
>>
> Hi
>
> Checking in again for my earlier post to this mailing list. Please suggest
>
> Regards
>
> Kaushal
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> 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
>



-- 
Regards
Sunil Sankar

--047d7bea35984150c104e4d07f3f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>For your case you may have to have a custom=
 notify script .Somethis like this and then you may have to include this <b=
r><br>define command{<br>=A0=A0=A0 command_name=A0=A0=A0 service-notify-onc=
all<br>=A0=A0=A0 command_line=A0=A0=A0 /usr/bin/printf &quot;%b&quot; &quot=
;***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $S=
ERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTAT=
E$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info: $SERVICEOUTPUT$\n\n&quo=
t; | /bin/mail -s &quot;On Call Person $CONTACTNAME$ $NOTIFICATIONTYPE$ Ser=
vice Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **&quot; $CONTACTEM=
AIL$ <br>
=A0=A0=A0 }<br><br></div>And then define<br>define contact{<br>=A0=A0=A0 co=
ntact_name=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 john<br>=A0=A0=A0 host_notification=
_period=A0=A0=A0=A0=A0=A0 john-oncall<br>=A0=A0=A0 service_notification_per=
iod=A0=A0=A0 john-oncall<br>=A0=A0=A0 host_notification_options=A0=A0=A0=A0=
=A0 d,u,r<br>
=A0=A0=A0 service_notification_options=A0=A0 c,w,r<br>=A0=A0=A0 host_notifi=
cation_commands=A0=A0=A0=A0 host-notify-oncall<br>=A0=A0=A0 service_notific=
ation_commands=A0 service-notify-oncall<br>=A0=A0=A0 register=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0<br>=A0=A0=A0 }=A0=
=A0=A0 <br><br></div>
like this .<br><br></div>Regards<br>Sunil<br><div><div><div><br></div></div=
></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">=
On Sun, Aug 25, 2013 at 10:46 AM, Kaushal Shriyan <span dir=3D"ltr">&lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">kaushalshriyan@g=
mail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_ext=
ra"><br><br><div class=3D"gmail_quote"><div><div class=3D"h5">On Wed, Aug 2=
1, 2013 at 12:45 PM, Kaushal Shriyan <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&=
gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div>Hi,<br><br>We hav=
e a OnCall system in place starting Monday to Sunday. So what i do is send =
out email to the stakeholders keeping subject matter For example &quot;Syst=
ems OnCall Person - &gt; Mr John (Start Date and End Date)&quot; is there a=
 way to automate this as per <a href=3D"http://nagios.sourceforge.net/docs/=
3_0/oncallrotation.html" target=3D"_blank">http://nagios.sourceforge.net/do=
cs/3_0/oncallrotation.html</a> meaning send out emails automatically instea=
d of composing and sending manually. Please suggest.<br>



<br></div>Regards,<br><br></div>Kaushal<br><div><div><br></div></div></div>=
</blockquote><div><br></div></div></div><div>Hi</div><div><br></div><div>Ch=
ecking in again for my earlier post to this mailing list. Please suggest</d=
iv>
<div>

<br></div><div>Regards</div><span class=3D"HOEnZb"><font color=3D"#888888">=
<div><br></div><div>Kaushal=A0</div></font></span></div><br></div></div>
<br>-----------------------------------------------------------------------=
-------<br>
Introducing Performance Central, a new site from SourceForge and<br>
AppDynamics. Performance Central is your source for news, insights,<br>
analysis and resources for efficient Application Performance Management.<br=
>
Visit us today!<br>
<a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D48897511&amp;iu=
=3D/4140/ostg.clktrk" target=3D"_blank">http://pubads.g.doubleclick.net/gam=
pad/clk?id=3D48897511&amp;iu=3D/4140/ostg.clktrk</a><br>___________________=
____________________________<br>

Nagios-users mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
urceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/nagios-users" targe=
t=3D"_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><=
br>
::: Please include Nagios version, plugin version (-v) and OS when reportin=
g any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br><=
/blockquote></div><br><br clear=3D"all"><br>-- <br>Regards<br>Sunil Sankar
</div>

--047d7bea35984150c104e4d07f3f--


--===============1001605563426752641==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
--===============1001605563426752641==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Nagios-users mailing list
[email protected]
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
--===============1001605563426752641==--