<br><div class="gmail_quote">On Wed, Jan 27, 2010 at 10:39 AM, Asrai khn <span dir="ltr"><<a href="mailto:asraikhn@gmail.com">asraikhn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="im">On Wed, Jan 27, 2010 at 12:54 PM, Martin Melin <span dir="ltr"><<a href="mailto:martinm@op5.org" target="_blank">martinm@op5.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div>On Wed, Jan 27, 2010 at 8:30 AM, Sunny Soung <span dir="ltr"><<a href="mailto:loesprite@gmail.com" target="_blank">loesprite@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Hi everyone,<br><br>I'm using Nagios to monitor some servers. All the things are good. But these days I'm thinking about one question - What if Nagios went down??<br>If my Nagios went down, I would never get any notification. That would be really bad.  <br>


</blockquote></div><div><br>I agree, that is a very bad thing :-)<br> </div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<i><b>So is there a good solution to monitor the Nagios service??</b></i><br></blockquote></div><div><br>It depends on how much effort you want to spend and how critical Nagios is for your organization. If you just want to know if Nagios goes down, you can simply set up a second machine to monitor your Nagios host and notify you when it goes down or stops working. However this means that your other machines are unmonitored for the time it takes you to get your Nagios machine back online - and in case of hardware failure that could take a while.<br>


<br>Most people for whom Nagios is a critical tool implement some sort of redundancy instead, where Nagios continues to monitor your network even if an individual Nagios host goes down. There is a good overview of your options in the documentation: <a href="http://nagios.sourceforge.net/docs/3_0/redundancy.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/redundancy.html</a><br>


<br>Also, the smartass answer to "is there a good solution to monitor the Nagios service" is <a href="http://nagiosplugins.org/man/check_nagios" target="_blank">http://nagiosplugins.org/man/check_nagios</a><br>

 </div></div></blockquote></div><div><br><br>In check_nagios example they have given nagios.log but I thinks it should be 'status.dat', for example in my case when nagios is installed from binary package..<br><br>
/usr/lib/nagios/plugins/check_nagios -e 5 -F /var/nagios/status.dat -C /usr/bin/nagios<br>
NAGIOS OK: 1 process, status log updated 9 seconds ago<br><br>I am interesting in implementing this check, any other example will be greatly appreciated.<br></div></div></blockquote><div><br>check_nagios is not very complicated. Per the manpage, it wants to be pointed to status.log, not nagios.log or status.dat. The reason for that is simply that it checks that the last entry in the log is within N minutes of the current time (set by -e 5 to 5 minutes). It also checks that a Nagios process is present in ps. What kind of examples are you looking for?<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br>Thanks.<br><br> </div><div><div></div><div class="h5">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
Advise will be appreciated. <br><br>Thanks and regards,<br><font color="#888888">Sunny,<br>
</font><br></div>------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a 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<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Martin Melin<br>____________________________<br>op5 AB<br><a href="http://www.op5.com" target="_blank">http://www.op5.com</a><br>


<br><a href="http://www.op5.org/" target="_blank">http://www.op5.org/</a><br><a href="http://www.op5.com/op5/products/network-monitor/nagios/" target="_blank">http://www.op5.com/op5/products/network-monitor/nagios/</a> <br>


</font><br>------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a 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<br></blockquote></div></div></div><br>
<br>------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a 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<br></blockquote></div><br><br clear="all"><br>-- <br>Martin Melin<br>____________________________<br>op5 AB<br><a href="http://www.op5.com">http://www.op5.com</a><br>
<br><a href="http://www.op5.org/">http://www.op5.org/</a><br><a href="http://www.op5.com/op5/products/network-monitor/nagios/">http://www.op5.com/op5/products/network-monitor/nagios/</a> <br>