Re: [Nagios-users] Elevated alerts

2009-01-12 Thread Grant Lowe
Hi James,

One question/problem with this.  I'm not getting any pages or email on when 
services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of 
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Sunday, January 11, 2009 5:38:33 PM
Subject: Re: [Nagios-users] Elevated alerts

You've got it backwards below.  In the original email, you wanted only
warnings to go to email and warnings and critical alerts to go the 'pager'
address.  Remove the 'c' from the service notification options for the
email config and add a 'w' for the paging config.


James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/11/2009 06:21   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  




Hi James,

I think I understand it a little bit better.  As far as numerical users, do
you mean when a page is sent to a paging service, somehow, the user name is
converted to, a numerical user that the paging service uses?  That makes
sense I guess because you have to have a phone number to call for the page.

As far as the notification tags, do these look correct, with what I'm
trying to do?

define contact{
# Email config
...
host_notification_options d,u,r,f,s
service_notification_options  w,c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
...
}

And the other:

define contact{
# Paging config
...
host_notification_options d,u,r,f,s
service_notification_options  c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
# host_notification_commandsnotify-host-by-pager
# service_notification_commands notify-service-by-pager
...
}



Thanks for hanging in there with me!



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Saturday, January 10, 2009 5:18:29 PM
Subject: Re: [Nagios-users] Elevated alerts

In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pagergl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro

Re: [Nagios-users] Elevated alerts

2009-01-12 Thread jmoseley




Grant Lowe gl...@sbcglobal.net wrote:

Hi James,

One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James




--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-12 Thread jmoseley
Also, do you have any escalations or service dependencies that could be
blocking the notification?


James Moseley




   
 James 
 Moseley/BTV/PEGAS 
 US To 
   Grant Lowe gl...@sbcglobal.net
 01/12/2009 10:06   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   (Document link: James Moseley)  
   
   
   
   
   
   







Grant Lowe gl...@sbcglobal.net wrote:

Hi James,

One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James





--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Elevated alerts

2009-01-12 Thread Grant Lowe
James,

I thought I was trying to make this config as simple as possible.  I'm only 
monitoring five UNIX boxes right now.  Hopefully going to expand that soon with 
Nagios :-


The hosts I'm monitoring didn't have any notification options, but they do now. 
 All six.  This is what I have for the zombie processes:

define service{
host_name   blarney,frogmore,katz,dunvegan,redfort
hostgroup_name  solaris-servers
service_description Check Remote Zombie Processes
check_command   check_nrpe!check_zombie_procs
max_check_attempts  5
notification_interval   60
check_period24x7
notification_optionsw,u,c,r,f,s
}

I don't have services disabled or enabled right now in any of the related 
service definitions (like the one above).  Do I need to explicitly turn them 
on?  I thought they were already on, considering I'm getting notifications 
already through email.  Please advise.  Thanks.


- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Monday, January 12, 2009 8:06:00 AM
Subject: Re: [Nagios-users] Elevated alerts





Grant Lowe gl...@sbcglobal.net wrote:

Hi James,

One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Elevated alerts

2009-01-12 Thread Grant Lowe
Hi James,

Good news. I followed your advice and read some more about the definitions.  
But the thing that really helped was twofold:  One was there was no reference 
to a global service template.  The other thing was adding the contact for the 
service definition.  There's a lot to this thing!

Many thanks for staying the course!



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Monday, January 12, 2009 9:21:03 AM
Subject: Re: [Nagios-users] Elevated alerts

Grant, you've got me really confused now.  For starters, I would strongly
encourage you to go back and read the documentation on object defitions.
It may be that by default notifications are enabled and that notification
options are also set to something as default.

With that said, since it appears the service definition below doesn't
contain a reference to a global service template,  I don't see where you
have told the 'check remote zombie processes' service who to send alerts
to.  You either need a contacts or contacts_group argument to define who
the service should send alerts to, something like:

contactsglowe1

How are your other service definitions setup?  If somehow email is working
for the 'email' contact, but not for the 'paging' contact, then the contact
macro you have set up as definied by the contact-by-pager definition is
most likely the culprit.  You're going to have to start with a known
working contact macro and edit it until you get it working.  Start by
sending both critical and warning alerts to the working contact., then
create new contacts with different alert options making sure you add those
contacts to the contacts definition of the service definition.

Lastly, have you verified your config?

nagios -v /path/to/nagios.cfg

This will tell you if your config is generally OK.



James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/12/2009 10:55   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  




James,

I thought I was trying to make this config as simple as possible.  I'm only
monitoring five UNIX boxes right now.  Hopefully going to expand that soon
with Nagios :-


The hosts I'm monitoring didn't have any notification options, but they do
now.  All six.  This is what I have for the zombie processes:

define service{
host_name   blarney,frogmore,katz,dunvegan,redfort
hostgroup_name  solaris-servers
service_description Check Remote Zombie Processes
check_command   check_nrpe!check_zombie_procs
max_check_attempts  5
notification_interval   60
check_period24x7
notification_optionsw,u,c,r,f,s
}

I don't have services disabled or enabled right now in any of the related
service definitions (like the one above).  Do I need to explicitly turn
them on?  I thought they were already on, considering I'm getting
notifications already through email.  Please advise.  Thanks.

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Elevated alerts

2009-01-11 Thread Grant Lowe
Hi James,

I think I understand it a little bit better.  As far as numerical users, do you 
mean when a page is sent to a paging service, somehow, the user name is 
converted to, a numerical user that the paging service uses?  That makes sense 
I guess because you have to have a phone number to call for the page.

As far as the notification tags, do these look correct, with what I'm trying to 
do?

define contact{
# Email config
...
host_notification_options d,u,r,f,s
service_notification_options  w,c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
...
}

And the other:

define contact{
# Paging config
...
host_notification_options d,u,r,f,s
service_notification_options  c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
# host_notification_commandsnotify-host-by-pager
# service_notification_commands notify-service-by-pager
...
}



Thanks for hanging in there with me!



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Saturday, January 10, 2009 5:18:29 PM
Subject: Re: [Nagios-users] Elevated alerts

In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pagergl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro,
the notification is not sent.


James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/10/2009 03:01   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  






define contact{
contact_name  glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
host_notification_options d,u,r,f,s,
service_notification_options  w,u,r,f,s,
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
emailgl...@pager.company.com
can_submit_commands   1
retain_status_information 0
retain_nonstatus_information  0
# Added pager line 01/09/2009
pagergl...@pager.company.com
}

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users

Re: [Nagios-users] Elevated alerts

2009-01-11 Thread Grant Lowe
Hi Marc,

Thanks.  Yes, I'm trying to setup a service critical.  I hope I've got it.  In 
the email I sent to James, I think I got it right, but it never hurts to have a 
second set of eyes, does it? :-




- Original Message 
From: Marc Powell m...@ena.com
To: nagios-users Mailinglist nagios-users@lists.sourceforge.net
Sent: Saturday, January 10, 2009 4:55:54 PM
Subject: Re: [Nagios-users] Elevated alerts


On Jan 10, 2009, at 3:01 PM, Grant Lowe wrote:

 James,

 I've got the changes input as we've talked about.  But I'm not  
 getting pages.  I searched the Nagios log and no pages.  Any ideas?  
 I'm at a loss to why.  For what it's worth, here's my contact  
 definitions:

 define contact{

 host_notification_options d,u,r
 service_notification_options  w,u,r

What kind of notification are you expecting, a service critical? You  
might need to determine the meaning of these two directives from the  
documentation.

--
Marc


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-11 Thread jmoseley
You've got it backwards below.  In the original email, you wanted only
warnings to go to email and warnings and critical alerts to go the 'pager'
address.  Remove the 'c' from the service notification options for the
email config and add a 'w' for the paging config.


James Moseley




   
 Grant Lowe
 gl...@sbcglobal. 
 net   To 
   jmose...@corp.xanadoo.com   
 01/11/2009 06:21   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




Hi James,

I think I understand it a little bit better.  As far as numerical users, do
you mean when a page is sent to a paging service, somehow, the user name is
converted to, a numerical user that the paging service uses?  That makes
sense I guess because you have to have a phone number to call for the page.

As far as the notification tags, do these look correct, with what I'm
trying to do?

define contact{
# Email config
...
host_notification_options d,u,r,f,s
service_notification_options  w,c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
...
}

And the other:

define contact{
# Paging config
...
host_notification_options d,u,r,f,s
service_notification_options  c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
# host_notification_commandsnotify-host-by-pager
# service_notification_commands notify-service-by-pager
...
}



Thanks for hanging in there with me!



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Saturday, January 10, 2009 5:18:29 PM
Subject: Re: [Nagios-users] Elevated alerts

In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pagergl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro,
the notification is not sent.


James Moseley





 Grant Lowe
 gl...@sbcglobal.
 net   To
  jmose...@corp.xanadoo.com
 01/10/2009 03:01   cc
 PMnagios-users@lists.sourceforge.net
   Subject
   Re: [Nagios-users] Elevated alerts












define contact{
contact_name  glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
host_notification_options d,u,r,f,s,
service_notification_options  w,u,r,f,s,
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service

Re: [Nagios-users] Elevated alerts

2009-01-10 Thread Grant Lowe
James,

I've got the changes input as we've talked about.  But I'm not getting pages.  
I searched the Nagios log and no pages.  Any ideas?  I'm at a loss to why.  For 
what it's worth, here's my contact definitions:

define contact{
contact_name  glowe
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
# Original line: host_notification_options d,u,r,f,s,
host_notification_options d,u,r
service_notification_options  w,u,r
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
email gl...@company.com
can_submit_commands   1
retain_status_information 0
retain_nonstatus_information  0
}

define contact{
contact_name  glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
host_notification_options d,u,r,f,s,
service_notification_options  w,u,r,f,s,
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
email gl...@pager.company.com
can_submit_commands   1
retain_status_information 0
retain_nonstatus_information  0
# Added pager line 01/09/2009
pager gl...@pager.company.com
}




- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Friday, January 9, 2009 9:46:03 AM
Subject: Re: [Nagios-users] Elevated alerts

If the email address begins with a number, then use $CONTACTPAGER$ string.
I don't know exactly where those variables are defined, but when sending
email to an address that begins with a number (or perhaps contains an
all-numeric string before the @), I've found that the notification is not
sent if using a command definition that uses CONTACTEMAIL.

In the contacts config, use command definitions that have CONTACTEMAIL when
emailing a 'normal' email address.  Use CONTACTPAGER when emailing a phone
or pager email address where the user string is numeric.

I'm sure the difference is explained in the documentation or mailling list
archives.


James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/09/2009 11:30   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  




Ok.  That helps.  I'll replace the @MAIL_PROG@ with /bin/mail.  Then where
is $CONTACTEMAIL$ defined, so I can add a new variable which I think will
be $CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command
definitions?

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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

Re: [Nagios-users] Elevated alerts

2009-01-10 Thread Marc Powell

On Jan 10, 2009, at 3:01 PM, Grant Lowe wrote:

 James,

 I've got the changes input as we've talked about.  But I'm not  
 getting pages.  I searched the Nagios log and no pages.  Any ideas?   
 I'm at a loss to why.  For what it's worth, here's my contact  
 definitions:

 define contact{

 host_notification_options d,u,r
 service_notification_options  w,u,r

What kind of notification are you expecting, a service critical? You  
might need to determine the meaning of these two directives from the  
documentation.

--
Marc


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-10 Thread jmoseley
In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pager gl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro,
the notification is not sent.


James Moseley




   
 Grant Lowe
 gl...@sbcglobal. 
 net   To 
   jmose...@corp.xanadoo.com   
 01/10/2009 03:01   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   






define contact{
contact_name  glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled1
service_notifications_enabled 1
host_notification_period  24x7
service_notification_period   24x7
host_notification_options d,u,r,f,s,
service_notification_options  w,u,r,f,s,
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
email gl...@pager.company.com
can_submit_commands   1
retain_status_information 0
retain_nonstatus_information  0
# Added pager line 01/09/2009
pager gl...@pager.company.com
}






--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-09 Thread Grant Lowe
Thank you for the response.  I like your idea.  I think I need to embellish it 
some.  A couple of questions about it.

In our environment, I think I only have to make one change.  Here's what 
currently happens.  A regular email goes to u...@company.com, but pages go to 
u...@pager.company.com.  So I thought I would setup the paging like this (at 
least for starters):

The notify-by-email works just fine.  Don't want to mess with this one.

# 'notify-by-email' command definition
define command{
   command_namenotify-by-email
   command_line/usr/bin/printf %b * Nagios @VERSION@ 
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: 
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | @MAIL_PROG@ -s ** 
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** 
$CONTACTEMAIL$
}

Here's a notfiy-by-pager that I would like to use.  Just a clone of the 
notify-by-email, but modified for pages.

# 'notify-by-pager' command definition
define command{
   command_namenotify-by-pager
   command_line/usr/bin/printf %b * Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | @MAIL_PROG@ -s ** $NOTIFICATIONTYPE$ alert
- $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}

How would I modify notify-by-pager to send to the u...@pager.company.com we 
use?  I'm
asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in
the notify-host-by-email and notify-service-by-email definitions.  I think I 
would then use the two different contacts for the same person as you said in 
your email.

Does this sound like reasonable?

- Original Message 

From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Thursday, January 8, 2009 4:33:30 PM
Subject: Re: [Nagios-users] Elevated alerts





Grant Lowe gl...@sbcglobal.net wrote:

Hi All,

I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
gets elevated, from a WARNING alert to a CRITICAL alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something like:

service_notification_optionsw,u,,r
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

In the *critical* contact entry, you'd have:

service_notification_optionsu,c,r
host_notification_options   d,u,r
service_notification_commands   notify-by-epager
host_notification_commands  host-notify-by-epager
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

Then you'd make both contacts the member of the same contact group.  In the
above example, when a service goes to warning state, the contact would be
sent an email only.  When the service goes to critical, the contact would
get both an email and a pager/phone alert.  In the above scenario, the
contact would get duplicate emails for unreachable and recovery states, so
you may want to adjust that to your needs.

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-09 Thread jmoseley
You wouldn't need to modify the notify-by-pager command you already have
setup.  After all, you are still sending mail to an email address.  I don't
know why your command definitions have @mail_p...@.  That must be defined
someplace else in another config file if it's working.  If that command
isn't working, simply replace that variable string with /bin/mail.


James Moseley




   
 Grant Lowe
 gl...@sbcglobal. 
 net   To 
   jmose...@corp.xanadoo.com   
 01/09/2009 10:52   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




Thank you for the response.  I like your idea.  I think I need to embellish
it some.  A couple of questions about it.

In our environment, I think I only have to make one change.  Here's what
currently happens.  A regular email goes to u...@company.com, but pages go
to u...@pager.company.com.  So I thought I would setup the paging like this
(at least for starters):

The notify-by-email works just fine.  Don't want to mess with this one.

# 'notify-by-email' command definition
define command{
   command_namenotify-by-email
   command_line/usr/bin/printf %b * Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | @MAIL_PROG@ -s ** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}

Here's a notfiy-by-pager that I would like to use.  Just a clone of the
notify-by-email, but modified for pages.

# 'notify-by-pager' command definition
define command{
   command_namenotify-by-pager
   command_line/usr/bin/printf %b * Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | @MAIL_PROG@ -s ** $NOTIFICATIONTYPE$ alert
- $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}

How would I modify notify-by-pager to send to the u...@pager.company.com
we use?  I'm
asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in
the notify-host-by-email and notify-service-by-email definitions.  I think
I would then use the two different contacts for the same person as you said
in your email.

Does this sound like reasonable?

- Original Message 

From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Thursday, January 8, 2009 4:33:30 PM
Subject: Re: [Nagios-users] Elevated alerts





Grant Lowe gl...@sbcglobal.net wrote:

Hi All,

I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
gets elevated, from a WARNING alert to a CRITICAL alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something like:

service_notification_optionsw,u,,r
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

In the *critical* contact entry, you'd have:

service_notification_optionsu,c,r
host_notification_options   d,u,r
service_notification_commands   notify-by-epager
host_notification_commands  host-notify

Re: [Nagios-users] Elevated alerts

2009-01-09 Thread Grant Lowe
Ok.  That helps.  I'll replace the @MAIL_PROG@ with /bin/mail.  Then where is 
$CONTACTEMAIL$ defined, so I can add a new variable which I think will be 
$CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command definitions?



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Friday, January 9, 2009 9:18:43 AM
Subject: Re: [Nagios-users] Elevated alerts

You wouldn't need to modify the notify-by-pager command you already have
setup.  After all, you are still sending mail to an email address.  I don't
know why your command definitions have @mail_p...@.  That must be defined
someplace else in another config file if it's working.  If that command
isn't working, simply replace that variable string with /bin/mail.


James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/09/2009 10:52   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  




Thank you for the response.  I like your idea.  I think I need to embellish
it some.  A couple of questions about it.

In our environment, I think I only have to make one change.  Here's what
currently happens.  A regular email goes to u...@company.com, but pages go
to u...@pager.company.com.  So I thought I would setup the paging like this
(at least for starters):

The notify-by-email works just fine.  Don't want to mess with this one.

# 'notify-by-email' command definition
define command{
   command_namenotify-by-email
   command_line/usr/bin/printf %b * Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | @MAIL_PROG@ -s ** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}

Here's a notfiy-by-pager that I would like to use.  Just a clone of the
notify-by-email, but modified for pages.

# 'notify-by-pager' command definition
define command{
   command_namenotify-by-pager
   command_line/usr/bin/printf %b * Nagios @VERSION@
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | @MAIL_PROG@ -s ** $NOTIFICATIONTYPE$ alert
- $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}

How would I modify notify-by-pager to send to the u...@pager.company.com
we use?  I'm
asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in
the notify-host-by-email and notify-service-by-email definitions.  I think
I would then use the two different contacts for the same person as you said
in your email.

Does this sound like reasonable?

- Original Message 

From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Thursday, January 8, 2009 4:33:30 PM
Subject: Re: [Nagios-users] Elevated alerts





Grant Lowe gl...@sbcglobal.net wrote:

Hi All,

I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
gets elevated, from a WARNING alert to a CRITICAL alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something

Re: [Nagios-users] Elevated alerts

2009-01-09 Thread jmoseley
If the email address begins with a number, then use $CONTACTPAGER$ string.
I don't know exactly where those variables are defined, but when sending
email to an address that begins with a number (or perhaps contains an
all-numeric string before the @), I've found that the notification is not
sent if using a command definition that uses CONTACTEMAIL.

In the contacts config, use command definitions that have CONTACTEMAIL when
emailing a 'normal' email address.  Use CONTACTPAGER when emailing a phone
or pager email address where the user string is numeric.

I'm sure the difference is explained in the documentation or mailling list
archives.


James Moseley




   
 Grant Lowe
 gl...@sbcglobal. 
 net   To 
   jmose...@corp.xanadoo.com   
 01/09/2009 11:30   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   
   
   
   
   
   




Ok.  That helps.  I'll replace the @MAIL_PROG@ with /bin/mail.  Then where
is $CONTACTEMAIL$ defined, so I can add a new variable which I think will
be $CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command
definitions?



--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-08 Thread jmoseley




Grant Lowe gl...@sbcglobal.net wrote:

Hi All,

I'm trying to figure out how an elevated alert would work.  This one isn't
exactly clear to me from the documentation.  So say, I have an alert that
gets elevated, from a WARNING alert to a CRITICAL alert, how can you
get Nagios to send off something say to a pager as well as email?  I think
I have my setups good now, and I'm seeing states of WARNING, CRITICAL, and
RECOVERY in email, but I'm not sure how to implement these changes.
Thanks!

The easiest thing to do is just to send all alerts to both an email and
pager/phone.  If you want to send warnings to just email addresses, and
then send critical alerts to both the email and pager address for a
particular contact, then one way to do that would be to create two contacts
for the same person.  In the first contact (for warnings) entry, you'd have
something like:

service_notification_optionsw,u,,r
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

In the *critical* contact entry, you'd have:

service_notification_optionsu,c,r
host_notification_options   d,u,r
service_notification_commands   notify-by-epager
host_notification_commands  host-notify-by-epager
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email

Then you'd make both contacts the member of the same contact group.  In the
above example, when a service goes to warning state, the contact would be
sent an email only.  When the service goes to critical, the contact would
get both an email and a pager/phone alert.  In the above scenario, the
contact would get duplicate emails for unreachable and recovery states, so
you may want to adjust that to your needs.


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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