Fw: Any way to have Nagios send epages only when host or service is critical (not for warnings?)
sobrien at ci.bend.or.us
sobrien at ci.bend.or.us
Mon Jul 21 21:23:31 CEST 2003
Anyone have a solution for the issue of wanting to be notified of warnings
but only wanting to paged when the service/host goes critical?
Steve O'Brien
City of Bend
Network Administrator
sobrien at ci.bend.or.us
541-322-6393
----- Forwarded by Steve OBrien/Bend on 07/21/2003 12:20 PM -----
"Jason Lancaster" <jlancaster at affinity.com>
07/21/2003 09:50 AM
To
<sobrien at ci.bend.or.us>
cc
Subject
Re: [Nagios-users] Any way to have Nagios send epages only when host or
service is critical (not for warnings?)
Hmm, you've stumped me. I can think of work-arounds but I cannot think of
a
direct way to do this within Nagios.
-You could add another contact and into contacts.cfg.
Contact1: jlancaster
Contact2: jlancaster-pager
I would then define different host and service notification options for
each. Personally, I never envisioned needing this but it's a major
limitation on Nagios templates and in my current database implementation.
Doh.
-You could also write a wrapper for the pager notification command and
search the $HOSTSTATE$ variable for critical notifications.
-Additionally, you could take the second workaround a step further and
create a more advanced contact notification module. I know I have seen
discussions with regards to the development and use of more advanced
notification systems before on this list.
You might want to post a followup to your first post reiterating what you
said to me below. (You're welcome to post what I wrote too)
Let me know what you come up with.
Jason Lancaster
Intranet Administrator, Affinity Internet
http://www.affinity.com
----- Original Message -----
From: sobrien at ci.bend.or.us
To: Jason Lancaster
Sent: Monday, July 21, 2003 12:21
Subject: Re: [Nagios-users] Any way to have Nagios send epages only when
host or service is critical (not for warnings?)
That appears to be a setting for notifying only when host is in a
particular
state. I want to know when the warning states occur but I only want them
emailed, I do not want to be paged. I only want to be paged when it is
critical.
Steve O'Brien
City of Bend
Network Administrator
sobrien at ci.bend.or.us
541-322-6393
"Jason Lancaster" <jlancaster at affinity.com>
07/21/2003 09:21 AM To<nagios-users at lists.sourceforge.net>,
<sobrien at ci.bend.or.us>
cc
SubjectRe: [Nagios-users] Any way to have Nagios send epages only when
host
or service is critical (not for warnings?)
Yes, this type of functionality defined in the contacts.cfg
service_notification_options and host_notification_options. Read
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact
----- Original Message -----
From: sobrien at ci.bend.or.us
To: nagios-users at lists.sourceforge.net
Sent: Monday, July 21, 2003 11:35
Subject: [Nagios-users] Any way to have Nagios send epages only when host
or
service is critical (not for warnings?)
I want to have nagios only page people when services or hosts are
critical,
I only want email when they are in a warning state.
TIA
Steve O'Brien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030721/0e63a725/attachment.html>
More information about the Users
mailing list