<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<pre><code>From the plugin page: "This plugin checks the status of the Nagios process on the local machine"
If you want to check a remote machine, I'm guessing you will have to run this via ssh, nrpe, or
some such mechanism.</code></pre>
<br>
<br>
<div class="moz-cite-prefix">On 12/18/2014 11:06 AM, Ditmar Tavares
wrote:<br>
</div>
<blockquote
cite="mid:74330B175FD6254C89275B3880BB0CDC7E6395@EXMB1.Clearwater.ca"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@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">I’m new to Linux and also to Nagios
monitoring, so it may be something that I’m missing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I setup a second Nagios server so I can
monitor my primary Nagios server, basically if the primary
Nagios stop monitoring I would like to know via the secondary
Nagios.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Issue is that I setup the check_nagios
plugin and its giving me the status of the Nagios process of
the primary server, but when I shutoff the Nagios process on
the primary server (for testing), I am NOT getting any
notification from the secondary server that something is wrong
with the primary, and its also keeps telling me the process on
the primary servers is OK.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please assist ? thank you in
advance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">See my host service definition below.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">define service {<o:p></o:p></p>
<p class="MsoNormal"> use
generic-service<o:p></o:p></p>
<p class="MsoNormal"> host_name
ClearMon02<o:p></o:p></p>
<p class="MsoNormal"> service_description
Nagios<o:p></o:p></p>
<p class="MsoNormal"> check_command
check_nagios<o:p></o:p></p>
<p class="MsoNormal"> notifications_enabled 1<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My command definition is below<o:p></o:p></p>
<p class="MsoNormal">define command{<o:p></o:p></p>
<p class="MsoNormal"> command_name check_nagios<o:p></o:p></p>
<p class="MsoNormal"> command_line
$USER1$/check_nagios -F /usr/local/nagios/var/status.dat -e 1
-t 15 -C /usr/local/nagios/bin/nagios<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear="all">
______________________________________________________________________<br>
This email has been scanned by the Symantec Email Security.cloud
service.<br>
</blockquote>
<br>
</body>
</html>