<!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 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>Hmm.  Alright, my response:</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>- if I were to install netsaint_statd, that would a) increase the 
complexity of the installations, b) check for the existence of the NRPE daemon 
without validating whether the daemon is even listening to the 
port</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>- increasing complexity where we don't have root on a number of our 
hosts, as well as requiring yet another firewall rule to be pushed... I'm not 
too keen on that</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>- I'm a big fan of the KISS principle</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>- assuming I stick with the KISS principle, then sticking with the NRPE 
paradigm across all platforms (which includes NSClient for Windows) will improve 
the happiness quotient at the end of the day</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>But you're making some good arguments in favour of sticking with one NRPE 
as the 'master' service for that host.  I don't mind using check_tcp, 
because it at least validates that *something* is listening on the desired 
port.  I was just now thinking about creating a dummy test which always 
returns 0 (eg, /bin/true), but then again, it's a bit silly to repeatedly test 
for that.  (Or is it?)  Now I just need to decide which of the many 
monitored NRPE services should be The One.</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>Perhaps the better solution is to make a request that a future release of 
NRPE allow for a rudimentary handshake verification, a built-in test, if you 
will...?  The test could be called check_null.</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>After some more pondering,  a variation on this theme would involve 
/bin/echo, thusly (in nrpe.cfg):</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>command[check_serial]=/bin/echo "42"</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>This could serve the function of 'master'.  It could also serve as a 
way of tracking which version (or date-last-modified) of nrpe.cfg that you have 
on that host.</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>Food for thought.  Don't mind me, I'm just thinking out loud.  
:)</FONT></SPAN></DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269174418-16102002><FONT face="Comic Sans MS" color=#000080 
size=2>jc</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Paulo Pinto 
  [mailto:japh@ip.pt]<BR><B>Sent:</B> Wednesday, October 16, 2002 1:06 
  PM<BR><B>To:</B> Carroll, Jim P [Contractor]; 
  nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] 
  Service Dependencies "wildcarding" error ?<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Ok, my mistake.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>I've just upgraded from 1.0b5 to 1.0b6 and the 
  wildcards on service dependencies work as expected.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>To Jim Carroll:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>If you want to be ... hmm .. a bit paranoid about 
  the tests, I'd suggest you to run something like NSClient (windows) or 
  netsaint_statd (*nix) on the client machines and then check for the 
  availability of your NRPE daemon (using check_named_proc or 
  similar).</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>On the other hand, to make things a *LOT* easier, 
  just choose one of your NRPE checked services, nominate it as your 'master' 
  service and make all the other NRPE checked services dependent of it. At 
  least, if the daemon fails, you'll get only one notification.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>I wouldn't go for check_tcp ... I personally 
  don't like the idea :) (sometimes, a returned banner isn't a proof that the 
  service is healthy ... )</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Hugz all.</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=jcarro10@sprintspectrum.com 
    href="mailto:jcarro10@sprintspectrum.com">Carroll, Jim P [Contractor]</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=japh@ip.pt 
    href="mailto:japh@ip.pt">'Paulo Pinto'</A> ; <A 
    title=lists.scott@themagicbox.net 
    href="mailto:lists.scott@themagicbox.net">Scott</A> ; <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> Wednesday, October 16, 2002 4:26 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] Service 
    Dependencies "wildcarding" error ?</DIV>
    <DIV><BR></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>Paulo, that looks like an excellent scenario to 
    streamline!</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>At some point I'll be trying my hand at service dependencies.  
    Here's the scenario I hope to streamline:</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>- host1 is running NRPE</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>     - nrpe.cfg has several tests 
    configured</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>- most other hosts will be similarly configured with 
    NRPE</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>- some hosts will be running a superset of the NRPE 
    definitions</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>Risk in this scenario:  if the NRPE daemon is down and Nagios 
    starts checking those services, naturally it will fail for each and every 
    NRPE service test defined.</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>Goal:  If NRPE is down, be notified that NRPE is down.  
    Silence on all the NRPE tests.</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>Actually, I wouldn't mind some input on one aspect of setting this 
    up.  I'm torn between making one of the NRPE tests the service depended 
    on by the other NRPE tests (for a given host), versus just using check_tcp 
    to verify that the NRPE daemon is up and listening.  Thoughts 
    anyone?</FONT></SPAN></DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=621041815-16102002><FONT face="Comic Sans MS" color=#000080 
    size=2>jc</FONT></SPAN></DIV>
    <BLOCKQUOTE dir=ltr 
    style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
      <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
      size=2>-----Original Message-----<BR><B>From:</B> Paulo Pinto 
      [mailto:japh@ip.pt]<BR><B>Sent:</B> Wednesday, October 16, 2002 7:07 
      AM<BR><B>To:</B> Scott; 
      nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] 
      Service Dependencies "wildcarding" error ?<BR><BR></FONT></DIV>
      <DIV><FONT face=Arial size=2>Hi.</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Imagine the following scenario:</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>- 2 web servers, with 50 Vhosts 
      each.</FONT></DIV>
      <DIV><FONT face=Arial size=2>- 1 Alteon webswitch, virtualizing the 50 
      Vhosts</FONT></DIV>
      <DIV><FONT face=Arial size=2>- Nagios is monitoring the 150 webservices. A 
      failed service gets notified by SMS. </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Now, w<FONT face=Arial size=2>ithout service 
      dependencies, if a webserver goes down, you get 50 SMS. If BOTH webservers 
      go down, you get 150SMS. </FONT></FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>WITH service dependencies, you can make your 
      webtests depend on the RealServers status on the Alteon... if 1 
      webserver goes down, you get 1 SMS, if both go down you got 2 
      sms.</FONT></DIV>
      <DIV><FONT face=Arial size=2>That's why :-)</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Anyway, I've already seen in the changelog 
      that wildcarding was addedd on 1.0b6 (I'm running beta5) ... I'll upgrade 
      it and see if it works :-)</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Hugz all.</FONT></DIV>
      <DIV><FONT face=Arial size=2></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=lists.scott@themagicbox.net 
        href="mailto:lists.scott@themagicbox.net">Scott</A> </DIV>
        <DIV style="FONT: 10pt arial"><B>To:</B> <A title=japh@ip.pt 
        href="mailto:japh@ip.pt">Paulo Pinto</A> ; <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> Wednesday, October 16, 2002 
        11:32 AM</DIV>
        <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Nagios-users] Service 
        Dependencies "wildcarding" error ?</DIV>
        <DIV><BR></DIV>
        <DIV><FONT face=Arial size=2>how canb a service be dependant on all 
        services like this? wouldnt you just have a host dependancy and be done 
        with it?</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=japh@ip.pt href="mailto:japh@ip.pt">Paulo Pinto</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, October 15, 2002 
          11:00 AM</DIV>
          <DIV style="FONT: 10pt arial"><B>Subject:</B> [Nagios-users] Service 
          Dependencies "wildcarding" error ?</DIV>
          <DIV><BR></DIV>
          <DIV><FONT face=Arial size=2>Hi all.</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>I'm trying to setup service 
          dependencies.</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>In my case, I want ALL services in host A 
          to be dependent of service SERVICE on host B.</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>So, I've configured dependencies.cfg like 
          this:</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>define 
          servicedependency{<BR>        
          host_name                       HOST-B<BR>        
          service_description             SERVICE<BR>        
          dependent_host_name             HOST-A<BR>        
          dependent_service_description   
          *<BR>        
          execution_failure_criteria      
          n<BR>        
          notification_failure_criteria   
          u,c<BR>        }<BR></FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Guess what:</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>$ /path/to/nagios/bin/nagios -v 
          /path/to/nagios/etc/nagios.cfg</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>(...)</FONT></DIV>
          <DIV><FONT face=Arial size=2>Error: Dependent service specified in 
          service dependency for service '*' on host 'HOST-A' is not defined 
          anywhere!<BR>Error: Dependent service specified in service dependency 
          for service '*' on host 'HOST-A' is not defined anywhere!</FONT></DIV>
          <DIV><FONT face=Arial size=2>(...)</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>I'm using Nagios 1.0b5, btw</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Any hints ?</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Hugz,</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Japh</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2> </DIV>
          <DIV><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>