<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[Nagios-users] Null mailer - no notifications for contacts that want to view CGIs only (maybe notif to an ML)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=905162318-17062004><FONT face=Arial
color=#0000ff size=2>I you do not need any form of notification at all for a
user that can 'view' nagios, it is as simple as creating a user (by
whatever authentication mean you use, I authenticate to active Directory
in my environment) and then define in the cgi.cfg what the user can
see. There is no need to create a contact for that user for them to view
the cgi's.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=905162318-17062004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Stanley Hopcroft
[mailto:Stanley.Hopcroft@IPAustralia.Gov.AU] <BR><B>Sent:</B> Sunday, June 13,
2004 7:46 PM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Null
mailer - no notifications for contacts that want to view CGIs only (maybe
notif to an ML)<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Dear Ladies and Gentlemen,<BR><BR>Does anyone else have a
situation where contacts (ie those who want to<BR>view the Nag CGIs) do _not_
want individual notifications - perhaps<BR>because one of the other contacts
is a non personal contact that<BR>corresponds to a mailing list and those
responsible for the host/service<BR>read this mailing list
?<BR><BR>Alternatively, a site may require that instead of personal
notification,<BR>all host and service faults are entered into a 'request
tracking' or<BR>'service desk' system but authenticated access to the CGIs is
still<BR>required for the host/service administrators.<BR><BR>I have dealt
with this by defining a null notification command ('test 1<BR>-eq 1' but maybe
the Bourne shell ':' ['A null command that returns a 0<BR>(true) exit value.']
is better) but Nag must still fork a shell to run<BR>this.<BR><BR>Is a better
way simply to<BR><BR>- not define notification commands - leave them out
- in the contact<BR>template<BR><BR>- individually define notification
commands for each contact that<BR>requires notification ?<BR><BR>If that is
the case, some of the benefit of the contacts template is<BR>lost since most
contacts will require notification. OTOH it seems quite<BR>sensible and
feasable to do this.<BR><BR>Is it possible to define a notification command
that does _not_ oblige<BR>Nagios to fork /bin/sh ?<BR><BR>What do others do
about this ?<BR><BR>Is there any interest in hacking the 1.x notification code
to simply<BR>skip further processing ('No-op, no-op the angel did say) for a
token<BR>representing a 'null mailer' ?<BR><BR>Perhaps a better way of dealing
with this and other related problems is<BR>by having more than one level of
inheritance from templates - many<BR>templates can be constructed that inherit
attributes from any parent<BR>template and its parents. This may in fact be
how it is done in Nag 2.x.<BR><BR>Yours
sincerely.<BR><BR>--<BR>------------------------------------------------------------------------<BR>Stanley
Hopcroft<BR>------------------------------------------------------------------------<BR><BR>'...No
man is an island, entire of itself; every man is a piece of the<BR>continent,
a part of the main. If a clod be washed away by the sea,<BR>Europe is the
less, as well as if a promontory were, as well as if a<BR>manor of thy
friend's or of thine own were. Any man's death diminishes<BR>me, because I am
involved in mankind; and therefore never send to know<BR>for whom the bell
tolls; it tolls for thee...'<BR><BR>from Meditation 17, J
Donne.<BR><BR><BR>-------------------------------------------------------<BR>This
SF.Net email is sponsored by the new InstallShield X.<BR>From Windows to
Linux, servers to mobile, InstallShield X is the<BR>one installation-authoring
solution that does it all. Learn more and<BR>evaluate today! <A
href="http://www.installshield.com/Dev2Dev/0504">http://www.installshield.com/Dev2Dev/0504</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null<BR></FONT></P></BLOCKQUOTE></BODY></HTML>