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
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 <dbourque at weatherdata.com> wrote:
Hi,
I've looked up the list archive and there doesn't seem to be anyanswer 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
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
Id like to view the temperature of my machines in Hobbit. I only found a temperature script on www.deadcat.net, but there wanst 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-----
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.
On 10/10/07, Maik Heinelt <maik at vegasystems.com> 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 wanst 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=yellowMSG="The Temperature is currently ${TMP}F, which is exceeds the Warning level (${YTMP}F)"
fi if [ ${TMP} -gt ${RTMP} ]; then COLOR=redMSG="The Temperature is currently ${TMP}F, which exceeds the Panic level (${RTMP}F!)"
firm ${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-----
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
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 <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
This would assume the environment is like this: (hobbitserver and foo) > router1 > vpnrouter > vpnrouter2 > bar
On 10/9/07, *Daniel Bourque* <dbourque at weatherdata.com <mailto:dbourque at weatherdata.com>> 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 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
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
From: Daniel Bourque [mailto:dbourque at weatherdata.com] Sent: Thursday, October 11, 2007 12:26 PM To: hobbit at hswn.dk 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 <dbourque at weatherdata.com> 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 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
participants (5)
-
dbourque@weatherdata.com
-
geoff.hallford@gmail.com
-
josh@imaginenetworksllc.com
-
maik@vegasystems.com
-
thansmann@directpointe.com