[hobbit] Server side EXT script not running or appearing on web page
mark at mark.com
Tue Jan 3 04:18:55 CET 2006
That file isn't mentioned anywhere in the source code:
host:/var/tmp/hobbit-4.1.2p1 root# find . -print | xargs grep -i bbexttab
Dan Vande More wrote:
> You shouldn't add external tests to bb-hosts. You add them to etc/bb-bbexttab.
> $ head -30 etc/bb-bbexttab
> # bb-bbexttab: configuration file for launching external scripts
> # Format:
> # host: misc settings : external scripts list
> # localhost: misc settings : external scripts list
> # : misc settings : external scripts list
> # host can be FQDN (fully qualified domain name) or
> # just a plain hostname but it is preferred that you
> # use a FQDN.
> # localhost: using this specifies that the scripts
> # specified on the line are to be launched on all clients
> # The same host can be specified on multiple lines to aid readability
> # Misc settings field is unimplemented ...
> # For future use...
> # You can override the default sleep between cycles
> # by addding a time qualifier to the script:
> # e.g.: localhost: script1;600
> # **NOTE** The sleep delimiter in BBEXT of bbdef.sh was
> # ':' (script1:600) but here it is ';'
> # in order to keep the same format as the
> # other bb-*tab files (the : is used to delimit
> # file entry fields in all bb-*tab files) .
> # The time qualifier is specified in SECONDS
> On 1/2/06, Mark Ashley <mark at mark.com> wrote:
>> I'm trying to replace the inbuilt SSH test with one that does something
>> intelligent and have put this into ~hobbit/server/ext:
>> hobbit% cat server/ext/NGssh
>> BBHTAG=NGssh # What we put in bb-hosts to trigger this test
>> COLUMN=NGssh # Name of the column, often same as tag in bb-hosts
>> $BBHOME/bin/bbhostgrep $BBHTAG | while read L
>> set $L # To get one line of output from bbhostgrep
>> MACHINE=`echo $2 | $SED -e's/\./,/g'`
>> MSG="$BBHTAG status for host $MACHINEDOTS"
>> reply = `ssh $MACHINE -l hobbit /usr/ucb/whoami`
>> if [ "$reply" = "hobbit" ]
>> $BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`
>> exit 0
>> Then the script is added to bb-hosts:
>> hobbit% grep NGssh ~hobbit/server/etc/bb-hosts
>> group-only conn|cpu|disk|info|memory|msgs|procs|NGssh|trends Campus
>> 18.104.22.168 hostert # noping NGssh
>> 22.214.171.124 hostick # noping NGssh
>> 126.96.36.199 hostker # noping NGssh
>> 188.8.131.52 hostel # noping NGssh
>> 184.108.40.206 hostay # noping NGssh
>> 220.127.116.11 hostmis # noping NGssh
>> 18.104.22.168 hosteus # noping NGssh
>> 22.214.171.124 hosty # noping NGssh
>> 126.96.36.199 hostger # noping NGssh
>> What else needs to be done to action this script?
>> The script doesn't seem to be running and nothing is appearing in a
>> column. Scripts from the deadcat site mention a BBEXT variable but
>> it's not in any of the hobbit config files.
>> mark at mark.com
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
More information about the Xymon