Elevated alerts
Grant Lowe
glowe at sbcglobal.net
Mon Jan 12 16:44:44 CET 2009
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: "jmoseley at corp.xanadoo.com" <jmoseley at corp.xanadoo.com>
To: Grant Lowe <glowe at sbcglobal.net>
Cc: nagios-users at 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
<glowe at sbcglobal.
net> To
jmoseley at corp.xanadoo.com
01/11/2009 06:21 cc
PM nagios-users at 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_commands notify-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_commands notify-host-by-email
service_notification_commands notify-service-by-email
# host_notification_commands notify-host-by-pager
# service_notification_commands notify-service-by-pager
...
}
Thanks for hanging in there with me!
----- Original Message ----
From: "jmoseley at corp.xanadoo.com" <jmoseley at corp.xanadoo.com>
To: Grant Lowe <glowe at sbcglobal.net>
Cc: nagios-users at 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_commands notify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pager glowe at 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
<glowe at sbcglobal.
net> To
jmoseley at corp.xanadoo.com
01/10/2009 03:01 cc
PM nagios-users at lists.sourceforge.net
Subject
Re: [Nagios-users] Elevated alerts
define contact{
contact_name glowe1
alias Grant
contactgroups solaris-admins
host_notifications_enabled 1
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_commands notify-host-by-email
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-pager
service_notification_commands notify-service-by-pager
email glowe at pager.company.com
can_submit_commands 1
retain_status_information 0
retain_nonstatus_information 0
# Added pager line 01/09/2009
pager glowe at 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 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