Discussion:
[Nagios-users] OnCall
Kaushal Shriyan
2013-08-21 07:15:12 UTC
Permalink
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
Kaushal Shriyan
2013-08-25 17:46:09 UTC
Permalink
On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan
Post by Kaushal Shriyan
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
Sunil Sankar
2013-08-26 02:43:02 UTC
Permalink
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
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
$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 <
On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan <
Post by Kaushal Shriyan
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
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
Sunil Sankar
2013-08-26 02:27:26 UTC
Permalink
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
On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan <
Post by Kaushal Shriyan
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
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
Loading...