Re: [Nagios-users] Changing the emails alerts interval????

2010-03-23 Thread Jorge Gil
Hi everyone,

I copy one of my service definitions, where I repeated the
notification_interval line, so I hope it helps
ravishankarravishankar.gundlap...@wipro.com
:

define service{
use generic-service
host_name [names_of_my_hosts]
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 2
check_command check_ping!200.0,20%!600.0,60%
normal_check_interval 5
retry_check_interval 5
contacts nagiosadmin
notification_interval 60
notification_period 24x7
notification_options c,r,w,u,f
notifications_enabled 1

I am not sure how efficient it is but it works fine for us..

Kind regards,
Jorge

On 3/23/10, Jatin Davey jasho...@cisco.com wrote:

  Notification interval is different for hosts and services. You need to set
 it for both so that you get the notifications as you want. If you want
 notifications for the host then modify only the host template. By doing so
 you will receive host related notifications once in 4 hours (or whatever you
 configured) , If you want your services to notify you every 4 hours (or
 whatever you configured in the notification interval) then you must add this
 information in the services template for the notification interval
 parameter.

 Thanks
 Jatin


 On 3/23/2010 4:10 AM, ravishankar.gundlap...@wipro.com wrote:

  Hi,



 If I change the time in service definition will this get affected to all
 the devices in Nagios?



 Please let me know if I want to change for a particular host group??



 Thanks  Regards,

 *Ravi G*



 *From:* Jorge Gil [mailto:georgy...@gmail.com georgy...@gmail.com]
 *Sent:* Tuesday, March 23, 2010 4:06 AM
 *To:* Ravishankar Gundlapali (WT01 - ENERGY  UTILITIES)
 *Subject:* Re: [Nagios-users] Changing the emails alerts interval



 Hi,

 just a quick idea.. did you try to set that time on the service definition?
 till tomorrow in the office i can't have a look at my cfg files..

 jorge

 On 3/22/10, *ravishankar.gundlap...@wipro.com* 
 ravishankar.gundlap...@wipro.com wrote:

 Hi,



 I am using Nagios 3.2.4 with Nagios plugins 1.4.14 on Linux with Fedora

 10.1.



 I want nagios to send the notification email every 4 hours.



 Currently it is sending the emails every 30 minutes.



 I tried to edit the Templates.cfg file by changing notification_interval to
 240.But still I am receiving the emails every 30 minutes.







 define host{

 namestw_app_server  ; The name of this host
 template

 #use generic-host; Inherit default values
 from the generic-host template

 check_period24x7; By default, Windows
 servers are monitored round the clock

 check_interval  5   ; Actively check the server
 every 5 minutes

 retry_interval  1   ; Schedule host check
 retries at 1 minute intervals

 max_check_attempts  2  ; Check each server 10 times
 (max)

 check_command   check-host-alive; Default command
 to check if servers are alive

 notification_period 24x7; Send notification out at
 any time - day or night

 *notification_interval   240*  ; Resend notifications
 every 30 minutes

 notification_optionsd,r ; Only send notifications
 for specific host states

 #contact_groups  stw_app_server ; Notifications get
 sent to the admins by default

 hostgroups  stw_app_server ; Host groups that Windows
 servers should be a member of

 register0   ; DONT REGISTER THIS - ITS
 JUST A TEMPLATE

 }



 Please someone help me to resolve this.



 Thanks a lot in advance.







 Thanks  Regards,

 *Ravi G*



 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev


 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https

Re: [Nagios-users] Changing the emails alerts interval????

2010-03-22 Thread ravishankar.gundlapali
Hi,

 

If I change the time in service definition will this get affected to all
the devices in Nagios?

 

Please let me know if I want to change for a particular host group??

 

Thanks  Regards,

Ravi G

 

From: Jorge Gil [mailto:georgy...@gmail.com] 
Sent: Tuesday, March 23, 2010 4:06 AM
To: Ravishankar Gundlapali (WT01 - ENERGY  UTILITIES)
Subject: Re: [Nagios-users] Changing the emails alerts interval

 

Hi,

just a quick idea.. did you try to set that time on the service
definition? till tomorrow in the office i can't have a look at my cfg
files..

jorge

On 3/22/10, ravishankar.gundlap...@wipro.com
ravishankar.gundlap...@wipro.com wrote:

Hi,

 

I am using Nagios 3.2.4 with Nagios plugins 1.4.14 on Linux with Fedora

10.1.

 

I want nagios to send the notification email every 4 hours.

 

Currently it is sending the emails every 30 minutes.

 

I tried to edit the Templates.cfg file by changing notification_interval
to 240.But still I am receiving the emails every 30 minutes.

 

 

 

define host{

namestw_app_server  ; The name of this host
template

#use generic-host; Inherit default
values from the generic-host template

check_period24x7; By default, Windows
servers are monitored round the clock

check_interval  5   ; Actively check the
server every 5 minutes

retry_interval  1   ; Schedule host check
retries at 1 minute intervals

max_check_attempts  2  ; Check each server 10
times (max)

check_command   check-host-alive; Default
command to check if servers are alive

notification_period 24x7; Send notification out
at any time - day or night

notification_interval   240  ; Resend notifications
every 30 minutes

notification_optionsd,r ; Only send
notifications for specific host states

#contact_groups  stw_app_server ; Notifications
get sent to the admins by default

hostgroups  stw_app_server ; Host groups that
Windows servers should be a member of

register0   ; DONT REGISTER THIS -
ITS JUST A TEMPLATE

}

 

Please someone help me to resolve this.

 

Thanks a lot in advance.

 

 

 

Thanks  Regards,

Ravi G



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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

 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Changing the emails alerts interval????

2010-03-22 Thread Jatin Davey
Notification interval is different for hosts and services. You need to 
set it for both so that you get the notifications as you want. If you 
want notifications for the host then modify only the host template. By 
doing so you will receive host related notifications once in 4 hours (or 
whatever you configured) , If you want your services to notify you every 
4 hours (or whatever you configured in the notification interval) then 
you must add this information in the services template for the 
notification interval parameter.


Thanks
Jatin

On 3/23/2010 4:10 AM, ravishankar.gundlap...@wipro.com wrote:


Hi,

If I change the time in service definition will this get affected to 
all the devices in Nagios?


Please let me know if I want to change for a particular host group??

Thanks  Regards,

*Ravi G*

*From:* Jorge Gil [mailto:georgy...@gmail.com]
*Sent:* Tuesday, March 23, 2010 4:06 AM
*To:* Ravishankar Gundlapali (WT01 - ENERGY  UTILITIES)
*Subject:* Re: [Nagios-users] Changing the emails alerts interval

Hi,

just a quick idea.. did you try to set that time on the service 
definition? till tomorrow in the office i can't have a look at my cfg 
files..


jorge

On 3/22/10, *ravishankar.gundlap...@wipro.com 
mailto:ravishankar.gundlap...@wipro.com* 
ravishankar.gundlap...@wipro.com 
mailto:ravishankar.gundlap...@wipro.com wrote:


Hi,

I am using Nagios 3.2.4 with Nagios plugins 1.4.14 on Linux with Fedora

10.1.

I want nagios to send the notification email every 4 hours.

Currently it is sending the emails every 30 minutes.

I tried to edit the Templates.cfg file by changing 
notification_interval to 240.But still I am receiving the emails every 
30 minutes.


define host{

namestw_app_server  ; The name of this 
host template


#use generic-host; Inherit default 
values from the generic-host template


check_period24x7; By default, Windows 
servers are monitored round the clock


check_interval  5   ; Actively check the 
server every 5 minutes


retry_interval  1   ; Schedule host check 
retries at 1 minute intervals


max_check_attempts  2  ; Check each server 10 
times (max)


check_command   check-host-alive; Default 
command to check if servers are alive


notification_period 24x7; Send notification 
out at any time - day or night


*notification_interval   240*  ; Resend notifications 
every 30 minutes


notification_optionsd,r ; Only send 
notifications for specific host states


#contact_groups  stw_app_server ; 
Notifications get sent to the admins by default


hostgroups  stw_app_server ; Host groups that 
Windows servers should be a member of


register0   ; DONT REGISTER THIS - 
ITS JUST A TEMPLATE


}

Please someone help me to resolve this.

Thanks a lot in advance.

Thanks  Regards,

*Ravi G*


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
mailto: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


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev


___
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
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists