Re: [Nagios-users] OnCall

2013-08-25 Thread Kaushal Shriyan
On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan
kaushalshri...@gmail.comwrote:

 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=48897511iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] OnCall

2013-08-25 Thread Sunil Sankar
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 su...@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_nameservice-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_namejohn
 host_notification_period   john-oncall
 service_notification_periodjohn-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 
 kaushalshri...@gmail.com wrote:




 On Wed, Aug 21, 2013 at 12:45 PM, Kaushal Shriyan 
 kaushalshri...@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=48897511iu=/4140/ostg.clktrk
 ___
 Nagios-users mailing list
 Nagios-users@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
--
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=48897511iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@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