<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#000000 size=2>The problem described does not have a
work-around listed on any of those pages -- they are general references for
basic configuration and information on how nagios works. What the original post
stated and what I obliviously missed as well, was the fact that they wanted
different rules to govern the pager notification than the email notification.
Nagios' host and service notification_options filters globally for both email
and pager notifications.</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>The only true workaround would be to
build a more advanced add-on to Nagios to handle notifications based on
additional filters. I've seen talk of other notification apps around
here...</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>-Jason</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=brianj@nvc.net href="mailto:brianj@nvc.net">Brian Johnson</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagios-users@lists.sourceforge.net
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 22, 2003 1:41</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Nagios-users] Any way to
have Nagios send epages only when host or service is critical (not for
warnings?)</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>OK...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I just started using Nagios last week and find it
to be FANTASTIC. Even I know the answer to this one.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>RTFM!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Services - <A
href="http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service">http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hosts - <A
href="http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host">http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Notifications - <A
href="http://nagios.sourceforge.net/docs/1_0/notifications.html">http://nagios.sourceforge.net/docs/1_0/notifications.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This information is in the referenced
documentation. Please read it before just bailing out to the
list.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=sobrien@ci.bend.or.us
href="mailto:sobrien@ci.bend.or.us">sobrien@ci.bend.or.us</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagios-users@lists.sourceforge.net
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 21, 2003 2:23
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Fw: [Nagios-users] Any way to
have Nagios send epages only when host or service is critical (not for
warnings?)</DIV>
<DIV><BR></DIV><BR><FONT face=sans-serif size=2>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?</FONT> <BR><FONT face=sans-serif
size=2><BR>Steve O'Brien<BR>City of Bend<BR>Network Administrator<BR><A
href="mailto:sobrien@ci.bend.or.us">sobrien@ci.bend.or.us</A><BR>541-322-6393<BR></FONT><BR><FONT
face=sans-serif color=#800080 size=1>----- Forwarded by Steve OBrien/Bend on
07/21/2003 12:20 PM -----</FONT> <BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>"Jason Lancaster"
<<A
href="mailto:jlancaster@affinity.com">jlancaster@affinity.com</A>></B>
</FONT>
<P><FONT face=sans-serif size=1>07/21/2003 09:50 AM</FONT> </P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR>
<TD>
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD vAlign=top><FONT face=sans-serif
size=1><sobrien@ci.bend.or.us></FONT>
<TR>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD vAlign=top>
<TR>
<TD>
<DIV align=right><FONT face=sans-serif
size=1>Subject</FONT></DIV>
<TD vAlign=top><FONT face=sans-serif size=1>Re: [Nagios-users]
Any way to have Nagios send epages only when host or service is
critical (not for warnings?)</FONT></TD></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></TABLE><BR><BR><BR><FONT
size=2><TT>Hmm, you've stumped me. I can think of work-arounds but I cannot
think of a<BR>direct way to do this within Nagios.<BR><BR>-You could add
another contact and into contacts.cfg.<BR>Contact1: jlancaster<BR>Contact2:
jlancaster-pager<BR>I would then define different host and service
notification options for<BR>each. Personally, I never envisioned needing
this but it's a major<BR>limitation on Nagios templates and in my current
database implementation.<BR>Doh.<BR><BR>-You could also write a wrapper for
the pager notification command and<BR>search the $HOSTSTATE$ variable for
critical notifications.<BR><BR>-Additionally, you could take the second
workaround a step further and<BR>create a more advanced contact notification
module. I know I have seen<BR>discussions with regards to the development
and use of more advanced<BR>notification systems before on this
list.<BR><BR>You might want to post a followup to your first post
reiterating what you<BR>said to me below. (You're welcome to post what I
wrote too)<BR><BR>Let me know what you come up with.<BR><BR>Jason
Lancaster<BR>Intranet Administrator, Affinity
Internet<BR>http://www.affinity.com<BR><BR>----- Original Message -----
<BR>From: sobrien@ci.bend.or.us<BR>To: Jason Lancaster<BR>Sent: Monday, July
21, 2003 12:21<BR>Subject: Re: [Nagios-users] Any way to have Nagios send
epages only when<BR>host or service is critical (not for
warnings?)<BR><BR><BR><BR>That appears to be a setting for notifying only
when host is in a particular<BR>state. I want to know when the warning
states occur but I only want them<BR>emailed, I do not want to be paged.
I only want to be paged when it is<BR>critical.<BR><BR>Steve
O'Brien<BR>City of Bend<BR>Network
Administrator<BR>sobrien@ci.bend.or.us<BR>541-322-6393<BR><BR><BR>"Jason
Lancaster" <jlancaster@affinity.com><BR>07/21/2003 09:21 AM
To<nagios-users@lists.sourceforge.net>,<BR><sobrien@ci.bend.or.us><BR>cc<BR>SubjectRe:
[Nagios-users] Any way to have Nagios send epages only when host<BR>or
service is critical (not for warnings?)<BR><BR><BR><BR><BR><BR><BR><BR>Yes,
this type of functionality defined in the
contacts.cfg<BR>service_notification_options and host_notification_options.
Read<BR>http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact<BR>-----
Original Message ----- <BR>From: sobrien@ci.bend.or.us<BR>To:
nagios-users@lists.sourceforge.net<BR>Sent: Monday, July 21, 2003
11:35<BR>Subject: [Nagios-users] Any way to have Nagios send epages only
when host or<BR>service is critical (not for warnings?)<BR><BR><BR>I want to
have nagios only page people when services or hosts are critical,<BR>I only
want email when they are in a warning state.<BR><BR>TIA<BR><BR>Steve
O'Brien<BR><BR></BLOCKQUOTE></BLOCKQUOTE></TT></FONT></BODY></HTML>