<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>On 02.12.2011 09:14, Nick Price wrote:</tt>
<blockquote cite="mid:SNT123-DS18D011C81E99172B644437E3B60@phx.gbl"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);">Yes printf works<o:p></o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);">I had the same version of
Nagios with the same config files working OK with fedora
14<o:p></o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);">It is only when I
installed it on fedora 16 the notifications don’t work<o:p></o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);">I think it’s a bug within
Nagios</span></tt></p>
</div>
</blockquote>
<tt><br>
nagios just calls the command forking into a shell, so i'd rather
guess this will be affected by turned on selinux. provide the
output of <br>
<br>
# getenforce<br>
<br>
<br>
</tt>
<blockquote cite="mid:SNT123-DS18D011C81E99172B644437E3B60@phx.gbl"
type="cite">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);"><o:p></o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);"><o:p> </o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);"><o:p> </o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);"><o:p> </o:p></span></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt><span
style="color: rgb(31, 73, 125);">D</span>id you also do <br>
<br>
<span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">printf ‘this is a test’ | /bin/mail –s
test_email <a moz-do-not-send="true"
href="mailto:email@mydomain.com" target="_blank">email@mydomain.com</a></span><br>
<br>
?<o:p></o:p></tt></p>
<div>
<p class="MsoNormal"><tt>On Wed, Nov 30, 2011 at 9:09 PM, Nick
Price <<a moz-do-not-send="true"
href="mailto:np121@hotmail.com">np121@hotmail.com</a>>
wrote:<o:p></o:p></tt></p>
<div>
<div>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);">The defaults are there.</span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);">I did echo ‘this is a
test’ | /bin/mail –s test_email <a
moz-do-not-send="true"
href="mailto:email@mydomain.com" target="_blank">email@mydomain.com</a></span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);">That went out Ok</span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);">What to look at next</span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt><span style="font-size:
11pt; font-family:
"Calibri","sans-serif"; color:
rgb(31, 73, 125);"> </span><o:p></o:p></tt></p>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none;
border-color: rgb(181, 196, 223) -moz-use-text-color
-moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal" style=""><tt><b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";">
Claudio Kuenzler [mailto:<a moz-do-not-send="true"
href="mailto:ck@claudiokuenzler.com"
target="_blank">ck@claudiokuenzler.com</a>] <br>
<b>Sent:</b> Wednesday, November 30, 2011 12:37<br>
<b>To:</b> Nagios Users List<br>
<b>Subject:</b> Re: [Nagios-users] notification
emails</span><o:p></o:p></tt></p>
</div>
<div>
<div>
<p class="MsoNormal" style=""><tt> <o:p></o:p></tt></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><tt>Did
you check the command which is used to send
notifications in command.cfg or checkcommand.cfg ?<br>
Maybe you don't have the binary or you need to
rename the command.<br>
<br>
By default it uses /usr/bin/printf and
/usr/bin/mail if I'm not mistaken.<o:p></o:p></tt></p>
<div>
<p class="MsoNormal" style=""><tt>On Wed, Nov 30,
2011 at 9:23 AM, Nick Price <<a
moz-do-not-send="true"
href="mailto:np121@hotmail.com"
target="_blank">np121@hotmail.com</a>>
wrote:<o:p></o:p></tt></p>
<p class="MsoNormal" style=""><tt>Hello<br>
<br>
I am not sure if this is a bug or config issue.<br>
<br>
I have a clean install of fedora 16 32 bit with
a manual install of nagios<br>
3.3.1 and nagios plugins 1.4.15.<br>
<br>
I see in the debug log<br>
<br>
Notification viability test failed. No
notification will be sent out.<br>
<br>
I can send test emails from this server using
sendmail and that bit works<br>
<br>
<br>
Is there a solution for this.<br>
<br>
Regards<br>
<br>
Nick<br>
<br>
<br>
------------------------------------------------------------------------------<br>
All the data continuously generated in your IT
infrastructure<br>
contains a definitive record of customers,
application performance,<br>
security threats, fraudulent activity, and more.
Splunk takes this<br>
data and makes sense of it. IT sense. And common
sense.<br>
<a moz-do-not-send="true"
href="http://p.sf.net/sfu/splunk-novd2d"
target="_blank">http://p.sf.net/sfu/splunk-novd2d</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Nagios-users@lists.sourceforge.net"
target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a moz-do-not-send="true"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_blank">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<o:p></o:p></tt></p>
</div>
<p class="MsoNormal" style=""><tt> <o:p></o:p></tt></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><tt><br>
------------------------------------------------------------------------------<br>
All the data continuously generated in your IT
infrastructure<br>
contains a definitive record of customers, application
performance,<br>
security threats, fraudulent activity, and more. Splunk
takes this<br>
data and makes sense of it. IT sense. And common sense.<br>
<a moz-do-not-send="true"
href="http://p.sf.net/sfu/splunk-novd2d" target="_blank">http://p.sf.net/sfu/splunk-novd2d</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a moz-do-not-send="true"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_blank">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<o:p></o:p></tt></p>
</div>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
</div>
<pre wrap=""><tt>
</tt><fieldset class="mimeAttachmentHeader"></fieldset><tt>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/splunk-novd2d">http://p.sf.net/sfu/splunk-novd2d</a></tt></pre>
<pre wrap=""><tt>
</tt><fieldset class="mimeAttachmentHeader"></fieldset><tt>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</tt></pre>
</blockquote>
<tt><br>
<br>
</tt>
<pre class="moz-signature" cols="72"><tt>--
DI (FH) Michael Friedrich
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
email: <a class="moz-txt-link-abbreviated" href="mailto:michael.friedrich@univie.ac.at">michael.friedrich@univie.ac.at</a>
phone: +43 1 4277 14359
mobile: +43 664 60277 14359
fax: +43 1 4277 14338
web: <a class="moz-txt-link-freetext" href="http://www.univie.ac.at/zid">http://www.univie.ac.at/zid</a>
<a class="moz-txt-link-freetext" href="http://www.aco.net">http://www.aco.net</a>
Lead Icinga Core Developer
<a class="moz-txt-link-freetext" href="http://www.icinga.org">http://www.icinga.org</a>
</tt></pre>
</body>
</html>