Xymon Mailing List Archive search

depends & conn test

8 messages in this thread

list Daniel Bourque · Tue, 09 Oct 2007 16:52:13 -0500 ·
Hi,

    I've looked up the list archive and there doesn't seem to be any answer to this problem, the "depends" doesn't work with the "conn" test.

    I have a bunch of remote kiosks connected via vpn and other means. Some I can ping and some I can't. I can always ssh to them, therefore ssh is the main connectivity test for all them.

    I'm trying make those test dependent on our internet connection.

   In my bb-hosts file, I've added www.yahoo.com as a host and added  depends=(ssh:www.yahoo.com/conn)  to the kiosk machine definition in the bb-hosts file.

   In order to test that, I setup hosts foo and bar in my lab, defined the,as follow:

x.x.x.x foo
x.x.x.x bar # ssh noconn depends=(ssh:foor/conn)


I unplug foo and bar's network cable, and sometimes later I get a page regarding the ssh on bar

interestingly, bar's ssh test history shows this:

Tue Oct 09 16:43:25 2007 red <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:43:25_2007>0:00:43 
Tue Oct 09 16:43:15 2007 clear <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:43:15_2007>0:00:10 
Tue Oct 09 16:38:20 2007 red <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:38:20_2007>0:04:55 
Tue Oct 09 16:38:15 2007 clear <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:38:15_2007>0:00:05 
Tue Oct 09 16:34:16 2007 red <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:34:16_2007>0:03:59 
Tue Oct 09 16:33:15 2007 clear <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:33:15_2007>0:01:01 
Tue Oct 09 16:29:07 2007 red <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:29:07_2007>0:04:08 
Tue Oct 09 16:28:12 2007 clear <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:28:12_2007>0:00:55
Tue Oct 09 15:55:20 2007 green <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_15:55:20_2007>0:32:52


Anyone using the conn test as a dependency out there ? Can anyone confirm that is does or does NOT work ?

Thanks

-Dan
list Geoff Hallford · Tue, 9 Oct 2007 22:24:41 -0400 ·
I have never been able to get depends to work. You should use the 'route'
tag on the host to have a dependency, such as:

1.1.1.1 foo
2.2.2.2 bar # ssh noconn route:foo

or more hops:

1.1.1.1 foo
2.2.2.2 bar # ssh noconn route:router1,vpnrouter,vpnrouter2
3.3.3.3 router1
4.4.4.4 vpnrouter
5.5.5.5 vpnrouter2

This would assume the environment is like this: (hobbitserver and foo) >
router1 > vpnrouter > vpnrouter2 > bar
quoted from Daniel Bourque


On 10/9/07, Daniel Bourque <user-a141068964db@xymon.invalid> wrote:
Hi,

    I've looked up the list archive and there doesn't seem to be any
answer to this problem, the "depends" doesn't work with the "conn" test.

    I have a bunch of remote kiosks connected via vpn and other means.
Some I can ping and some I can't. I can always ssh to them, therefore ssh is
the main connectivity test for all them.

    I'm trying make those test dependent on our internet connection.

   In my bb-hosts file, I've added www.yahoo.com as a host and added
depends=(ssh:www.yahoo.com/conn)  to the kiosk machine definition in the
bb-hosts file.

   In order to test that, I setup hosts foo and bar in my lab, defined
the,as follow:

x.x.x.x foo
x.x.x.x bar # ssh noconn depends=(ssh:foor/conn)


I unplug foo and bar's network cable, and sometimes later I get a page
regarding the ssh on bar

interestingly, bar's ssh test history shows this:

Tue Oct 09 16:43:25 2007 [image: red]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:43:25_2007>0:00:43

Tue Oct 09 16:43:15 2007 [image: clear]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:43:15_2007>0:00:10

Tue Oct 09 16:38:20 2007 [image: red]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:38:20_2007>0:04:55

Tue Oct 09 16:38:15 2007 [image: clear]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:38:15_2007>0:00:05

Tue Oct 09 16:34:16 2007 [image: red]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:34:16_2007>0:03:59

Tue Oct 09 16:33:15 2007 [image: clear]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:33:15_2007>0:01:01

Tue Oct 09 16:29:07 2007 [image: red]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:29:07_2007>0:04:08

Tue Oct 09 16:28:12 2007 [image: clear]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:28:12_2007>;
0:00:55
Tue Oct 09 15:55:20 2007 [image: green]<http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_15:55:20_2007>;
0:32:52
quoted from Daniel Bourque


Anyone using the conn test as a dependency out there ? Can anyone confirm
that is does or does NOT work ?

Thanks

-Dan

-- 

'If my answers frighten you then you should cease asking scary questions.'
--Sam Jackson
list Maik Heinelt · Wed, 10 Oct 2007 13:54:17 +0900 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I`d like to view the temperature of my machines in Hobbit.
I only found a temperature script on www.deadcat.net, but there wans`t a
manual how to use it.
I also found the following script, but it doesn`t work on my linux machines.

#!/bin/sh

# THRESHOLD VALUES FOR TEMPERATURE
YTMP=72
RTMP=80
#
SENSORS="/usr/bin/sensors -f"
STMP=${BBTMP}/SENSE.$$
COLOR=green
MSG=default
#
${SENSORS} > ${STMP}
# PARSE TEMPERATURE INFORMATION.

TMP=`${GREP} -i temp ${STMP}|cut -d"(" -f1|cut -d"?" -f1|cut -d"+"
- -f2|cut -d"." -f1`

    if [ ${TMP} -lt ${YTMP} ];
    then
        COLOR=green

MSG="The Temperature is currently ${TMP}F, which does not exceed the
Warning level (${YTMP}F)"

    fi
    if [ ${TMP} -gt ${YTMP} ] && [ ${TMP} -lt ${RTMP} ];
    then
        COLOR=yellow

MSG="The Temperature is currently ${TMP}F, which is exceeds the Warning
level (${YTMP}F)"

    fi
    if [ ${TMP} -gt ${RTMP} ];
    then
        COLOR=red

MSG="The Temperature is currently ${TMP}F, which exceeds the Panic level
(${RTMP}F!)"

    fi
rm ${STMP}

$BB $BBDISP "status $MACHINE.temp $COLOR `date`
$MSG
temp : $TMP
"

LM_sensors is installed and working well.

Can somebody give me an advise, please?

Maik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDFr5r4r+EhimPOURAp6DAKDVMyyX1Nbf47G6+PkVI+lJV54JowCcDVdP
XtuvQadl6KSlyMkqNeZ/91s=
=1FAV
-----END PGP SIGNATURE-----
list Josh Luthman · Wed, 10 Oct 2007 10:09:20 -0400 ·
I'm sure that the script you found on deadcat was unique to a certain system
build.  The first thing I would check is `which /usr/bin/sensors` to see if
you had that utility.
quoted from Maik Heinelt

On 10/10/07, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I`d like to view the temperature of my machines in Hobbit.
I only found a temperature script on www.deadcat.net, but there wans`t a
manual how to use it.
I also found the following script, but it doesn`t work on my linux
machines.

#!/bin/sh

# THRESHOLD VALUES FOR TEMPERATURE
YTMP=72
RTMP=80
#
SENSORS="/usr/bin/sensors -f"
STMP=${BBTMP}/SENSE.$$
COLOR=green
MSG=default
#
${SENSORS} > ${STMP}
# PARSE TEMPERATURE INFORMATION.

TMP=`${GREP} -i temp ${STMP}|cut -d"(" -f1|cut -d"?" -f1|cut -d"+"
- -f2|cut -d"." -f1`

    if [ ${TMP} -lt ${YTMP} ];
    then
        COLOR=green

MSG="The Temperature is currently ${TMP}F, which does not exceed the
Warning level (${YTMP}F)"

    fi
    if [ ${TMP} -gt ${YTMP} ] && [ ${TMP} -lt ${RTMP} ];
    then
        COLOR=yellow

MSG="The Temperature is currently ${TMP}F, which is exceeds the Warning
level (${YTMP}F)"

    fi
    if [ ${TMP} -gt ${RTMP} ];
    then
        COLOR=red

MSG="The Temperature is currently ${TMP}F, which exceeds the Panic level
(${RTMP}F!)"

    fi
rm ${STMP}

$BB $BBDISP "status $MACHINE.temp $COLOR `date`
$MSG
temp : $TMP
"

LM_sensors is installed and working well.

Can somebody give me an advise, please?

Maik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDFr5r4r+EhimPOURAp6DAKDVMyyX1Nbf47G6+PkVI+lJV54JowCcDVdP
XtuvQadl6KSlyMkqNeZ/91s=
=1FAV
-----END PGP SIGNATURE-----

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Sigurður Guðbrandsson · Wed, 10 Oct 2007 14:23:10 -0000 ·
Hi.

I professionally use digitemp to monitor various temperatures in all my server rooms and other.
But if you use lmsensors, please read the script. As far as I can see, it is only for one sensor and one temperature.
You may have to rewrite the script or even just write a new one.

If you wish to see what the script outputs, just comment the line 'rm $(STMP)' with a hash sign (#).

Then run the script and read the file that it outputs.

With regards,


Sigurður Guðbrandsson

Raförninn ehf.

Suðurhlíð 35

105 Reykjavik | Iceland

user-f6f2e0690a1f@xymon.invalid | www.raforninn.is

Office: +(XXX) XXX XXXX

Mobile: +(XXX) XXX XXXX
quoted from Maik Heinelt


-----Original Message-----
From: Maik Heinelt [mailto:user-4ab5eb34adb2@xymon.invalid] 
Sent: 10. október 2007 04:54
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Hobbit viewing temperature in Hobbit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I`d like to view the temperature of my machines in Hobbit.
I only found a temperature script on www.deadcat.net, but there wans`t a manual how to use it.
I also found the following script, but it doesn`t work on my linux machines.

#!/bin/sh

# THRESHOLD VALUES FOR TEMPERATURE
YTMP=72
RTMP=80
#
SENSORS="/usr/bin/sensors -f"
STMP=${BBTMP}/SENSE.$$
COLOR=green
MSG=default
#
${SENSORS} > ${STMP}
# PARSE TEMPERATURE INFORMATION.

TMP=`${GREP} -i temp ${STMP}|cut -d"(" -f1|cut -d"?" -f1|cut -d"+"
- -f2|cut -d"." -f1`

    if [ ${TMP} -lt ${YTMP} ];
    then
        COLOR=green

MSG="The Temperature is currently ${TMP}F, which does not exceed the Warning level (${YTMP}F)"

    fi
    if [ ${TMP} -gt ${YTMP} ] && [ ${TMP} -lt ${RTMP} ];
    then
        COLOR=yellow

MSG="The Temperature is currently ${TMP}F, which is exceeds the Warning level (${YTMP}F)"

    fi
    if [ ${TMP} -gt ${RTMP} ];
    then
        COLOR=red

MSG="The Temperature is currently ${TMP}F, which exceeds the Panic level (${RTMP}F!)"

    fi
rm ${STMP}

$BB $BBDISP "status $MACHINE.temp $COLOR `date` $MSG temp : $TMP "

LM_sensors is installed and working well.

Can somebody give me an advise, please?

Maik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDFr5r4r+EhimPOURAp6DAKDVMyyX1Nbf47G6+PkVI+lJV54JowCcDVdP
XtuvQadl6KSlyMkqNeZ/91s=
=1FAV
-----END PGP SIGNATURE-----
list Leen Smit · Wed, 10 Oct 2007 19:15:11 +0200 ·
I have been struggling with this as well. Basicly, you have make sure your
output of the output script looks like


Device        Temp(°C)  Temp(°F)
[image: green] Cpu1           33  91
[image: green] Mainboard      35  95


I've ended up with the following, using lm_sensors input.
#!/bin/sh

   COLUMN=temperature  # Name of the column
   TEST=temperature

echo " $BBTMP/$MACHINE.temperature.$$"

   # Do whatever you need to test for something
   # As an example, go red if /tmp/badstuff exists.

ENV_CELSIUS=$(sensors |grep 'CPU Temp'|awk '{print $3}'|sed -e 's/+//' -e
's/°C//' -e 's/..$//')
ENV_CELSIUSMAINB=$(sensors |grep 'M/B' |awk '{print $3}'|sed -e 's/+//' -e
's/°C//')
ENV_HIGHWARN=38
ENV_HIGHPANIC=42
ENV_CPU="Cpu1"
ENV_MAINB="Mainboard"
$AWK -v CELSIUS=$ENV_CELSIUS -v HIGHWARN=$ENV_HIGHWARN -v
HIGHPANIC=$ENV_HIGHPANIC -v CPU=$ENV_CPU  \
        -v CELSIUSMAINB=$ENV_CELSIUSMAINB -v MAINB=$ENV_MAINB \
    'BEGIN {
        print "Device        Temp(°C)  Temp(°F)";
        print "------------------------------";
        COLOR="green";
                if (CELSIUS >= HIGHPANIC) {
                        COLOR="red";
                        printf("&red %-12s  %3d
%3d\n",CPU,CELSIUS,CELSIUS*9/5+32);
                        printf("&green %-12s  %3d
%3d\n",MAINB,CELSIUSMAINB,CELSIUSMAINB*9/5+32);

                } else if (CELSIUS >= HIGHWARN) {
                        if (COLOR != "red")
                                COLOR = "yellow";
                        printf("&yellow %-12s  %3d
%3d\n",CPU,CELSIUS,CELSIUS*9/5+32);
                        printf("&green %-12s  %3d
%3d\n",MAINB,CELSIUSMAINB,CELSIUSMAINB*9/5+32);
                } else {
                        printf("&green %-12s  %3d
%3d\n",CPU,CELSIUS,CELSIUS*9/5+32);
                        printf("&green %-12s  %3d
%3d\n",MAINB,CELSIUSMAINB,CELSIUSMAINB*9/5+32);
                }
        }
        END {
            print "-------------------------------------------------";
                if (COLOR == "green") {
                         print "Status green: All devices look okay";
                          exit 0
                } else if (COLOR == "yellow") {
                         print "Status yellow: Some devices are nearing
their operational limits";
                         exit 1
                } else if (COLOR =="red") {
                         print "Status red : SYSTEM NEAR THERMAL
SHUTDOWN!!!";
                         exit 2
                } else {
                         print "Status purple : Unknown status";
                         exit -1
                }
         }' > $BBTMP/$MACHINE.temperature.$$


COLOR=`$GREP Status $BBTMP/$MACHINE.temperature.$$| $SED 's/Status //'|$SED
's/:.*$//'`

#create log if NOT green
if [ $COLOR != "green" ]
        then
                TEMP=`$GREP $ENV_CPU $BBTMP/$MACHINE.temperature.$$| awk
'{print $3}'`
                echo "$COLOR : `date '+%a %d %b %Y   %H:%M:%S'`
Temperature: $TEMP" >> $HOBBITCLIENTHOME/logs/temp_alerts.log
fi

DATA="Temperature status:
`$CAT $BBTMP/$MACHINE.temperature.$$`

Last 10 Alerts:
`$TAIL $HOBBITCLIENTHOME/logs/temp_alerts.log`
"

LINE="status $MACHINE.$TEST $COLOR `date` $DATA"


 Clean up our mess....
$RM -f $BBTMP/$MACHINE.temperature.$$


# Tell Hobbit about it
 $BB $BBDISP "$LINE"
list Daniel Bourque · Thu, 11 Oct 2007 13:25:48 -0500 ·
Thanks for the reply ,

    Unfortunately for me, it appears that "route" only affects ping ( 
"conn" ) tests. So, I can't use route for the ssh checks, and I can't 
make the ssh test depend on another host's conn test.  I could setup a 
yahoo www test, and try to use that as a dependency, hopefully that works.

thanks

-Dan
quoted from Geoff Hallford


Geoff Hallford wrote:
I have never been able to get depends to work. You should use the 
'route' tag on the host to have a dependency, such as:
 

1.1.1.1 <http://1.1.1.1>; foo
2.2.2.2 <http://2.2.2.2>; bar # ssh noconn route:foo
 
or more hops:
 
1.1.1.1 <http://1.1.1.1>; foo
2.2.2.2 <http://2.2.2.2>; bar # ssh noconn 
route:router1,vpnrouter,vpnrouter2
3.3.3.3 <http://3.3.3.3>; router1
4.4.4.4 <http://4.4.4.4>; vpnrouter
5.5.5.5 <http://5.5.5.5>; vpnrouter2
quoted from Geoff Hallford
 
This would assume the environment is like this: (hobbitserver and 
foo) > router1 > vpnrouter > vpnrouter2 > bar
 
 
On 10/9/07, *Daniel Bourque* <user-a141068964db@xymon.invalid 
<mailto:user-a141068964db@xymon.invalid>> wrote:

    Hi,

        I've looked up the list archive and there doesn't seem to be
    any answer to this problem, the "depends" doesn't work with the
    "conn" test.

        I have a bunch of remote kiosks connected via vpn and other
    means. Some I can ping and some I can't. I can always ssh to them,
    therefore ssh is the main connectivity test for all them.

        I'm trying make those test dependent on our internet connection.

       In my bb-hosts file, I've added www.yahoo.com

    <http://www.yahoo.com/>; as a host and added  depends=(ssh:
    www.yahoo.com/conn <http://www.yahoo.com/conn>;)  to the kiosk
quoted from Geoff Hallford
    machine definition in the bb-hosts file.

       In order to test that, I setup hosts foo and bar in my lab,
    defined the,as follow:

    x.x.x.x foo
    x.x.x.x bar # ssh noconn depends=(ssh:foor/conn)


    I unplug foo and bar's network cable, and sometimes later I get a
    page regarding the ssh on bar

    interestingly, bar's ssh test history shows this:

    Tue Oct 09 16:43:25 2007 red
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:43:25_2007>0:00:43

    Tue Oct 09 16:43:15 2007 clear
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:43:15_2007>0:00:10

    Tue Oct 09 16:38:20 2007 red
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:38:20_2007>0:04:55

    Tue Oct 09 16:38:15 2007 clear
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:38:15_2007>0:00:05

    Tue Oct 09 16:34:16 2007 red
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:34:16_2007>0:03:59

    Tue Oct 09 16:33:15 2007 clear
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:33:15_2007>0:01:01

    Tue Oct 09 16:29:07 2007 red
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:29:07_2007>0:04:08

    Tue Oct 09 16:28:12 2007 clear
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_16:28:12_2007>0:00:55
    Tue Oct 09 15:55:20 2007 green
    <http://lisa.wdi-net.com/hobbit-cgi/bb-histlog.sh?HOST=daim01&SERVICE=ssh&TIMEBUF=Tue_Oct_9_15:55:20_2007>0:32:52


    Anyone using the conn test as a dependency out there ? Can anyone
    confirm that is does or does NOT work ?

    Thanks

    -Dan


-- 
'If my answers frighten you then you should cease asking scary 
questions.' --Sam Jackson
list Tod Hansmann · Thu, 11 Oct 2007 13:38:45 -0600 ·
Works for us.  We use something along these lines:

depends=(ssh:router1/conn,vpnrouter/conn,vpnrouter2/conn)

I see that you had something similar originally, however, note that the test will STILL be run on the ssh and give you the history results you see. This only effects the color it gets if it actually fails.  
Tod Hansmann
Network Engineer
quoted from Daniel Bourque

 
From: Daniel Bourque [mailto:user-a141068964db@xymon.invalid] Sent: Thursday, October 11, 2007 12:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] depends & conn test

Thanks for the reply ,

    Unfortunately for me, it appears that "route" only affects ping ( "conn" ) tests. So, I can't use route for the ssh checks, and I can't make the ssh test depend on another host's conn test.  I could setup a yahoo www test, and try to use that as a dependency, hopefully that works. 
thanks


-Dan


Geoff Hallford wrote: I have never been able to get depends to work. You should use the 'route' tag on the host to have a dependency, such as:
 
1.1.1.1 foo
2.2.2.2 bar # ssh noconn route:foo
 
or more hops:
 
1.1.1.1 foo
2.2.2.2 bar # ssh noconn route:router1,vpnrouter,vpnrouter2
3.3.3.3 router1
4.4.4.4 vpnrouter
5.5.5.5 vpnrouter2
 
This would assume the environment is like this: (hobbitserver and foo) > router1 > vpnrouter > vpnrouter2 > bar
 
 
On 10/9/07, Daniel Bourque <user-a141068964db@xymon.invalid> wrote: Hi, 
    I've looked up the list archive and there doesn't seem to be any answer to this problem, the "depends" doesn't work with the "conn" test. 
    I have a bunch of remote kiosks connected via vpn and other means. Some I can ping and some I can't. I can always ssh to them, therefore ssh is the main connectivity test for all them.

    I'm trying make those test dependent on our internet connection. 
   In my bb-hosts file, I've added www.yahoo.com as a host and added  depends=(ssh: www.yahoo.com/conn)  to the kiosk machine definition in the bb-hosts file.

   In order to test that, I setup hosts foo and bar in my lab, defined the,as follow:

x.x.x.x foo
x.x.x.x bar # ssh noconn depends=(ssh:foor/conn) 

I unplug foo and bar's network cable, and sometimes later I get a page regarding the ssh on bar 
interestingly, bar's ssh test history shows this:

Tue Oct 09 16:43:25 2007 0:00:43 Tue Oct 09 16:43:15 2007 0:00:10 Tue Oct 09 16:38:20 2007 0:04:55 Tue Oct 09 16:38:15 2007 0:00:05 Tue Oct 09 16:34:16 2007 0:03:59 Tue Oct 09 16:33:15 2007 0:01:01 Tue Oct 09 16:29:07 2007 0:04:08 Tue Oct 09 16:28:12 2007 0:00:55
quoted from Daniel Bourque
Tue Oct 09 15:55:20 2007 0:32:52


Anyone using the conn test as a dependency out there ? Can anyone confirm that is does or does NOT work ?

Thanks

-Dan 


-- 
'If my answers frighten you then you should cease asking scary questions.' --Sam Jackson