BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Disable external tests



On Thu, 28 Oct 2004, Andreas Kunberger wrote:

Has anyone a code snippet to stop external tests from running if they
are disabled for some hosts?

Depends on where the external tests are running.
Disabling a test sends a message to the BBDISPLAY and BBPAGER servers. They then ignore any future status messages regarding that host(s) and test(s).


If the external test is running on the BBDISPLAY or BBRELAY server (not BBPAGER or BBNET if separate) then it can check the first line of the BBVAR/logs/host.test log file, specifically the first word to see if it is "blue".

If the external test is running on the client system, BBNET or BBPAGER (if separate from BBDISPLAY) then it would need access to the log files (NFS, AFS, Coda, rsync, ftp, sftp, scp, rsh, rcp, whatever) to check the status of the host.test.

Nothing gets communicated to the client when a host/test is disabled/enabled. Since status messages of disabled test are ignored, the really is little reason to do something like this unless you have some kind of dependency chain among your tests.

Alternatively, I wrote a CGI script for similar situations. You can query the BBDISPLAY server, via http GET, to find the status of a host. It returns a single line of parsable data that can be used to determine if a host is configured, the overall status of the host or a list of all tests and their color. You can find it on www.deadcat.net as host_status_1.0.tgz - it may be of help. You can integrate it into an external test to check a host's status (via wget, curl, links, lynx, etc.) and determine where to go from there.

--Jeff

"My modem is faster than your modem!"
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index