OnCall

Sunil Sankar sunil at sunil.cc
Mon Aug 26 04:43:02 CEST 2013


Note I have not included all the mandatory objects in the object definition
.So please refer to this and include them

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html


On Sun, Aug 25, 2013 at 7:27 PM, Sunil Sankar <sunil at sunil.cc> wrote:

> 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 <
> kaushalshriyan at gmail.com> wrote:
>
>>
>>
>>
>> On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan <
>> kaushalshriyan at gmail.com> 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
>> 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
>>
>
>
>
> --
> Regards
> Sunil Sankar
>



-- 
Regards
Sunil Sankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130825/bcf80e7d/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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