Xymon Mailing List Archive search

Getting a list of all tests

3 messages in this thread

list Trent Melcher · Thu, 25 Oct 2007 10:39:32 -0500 ·
Ok, Im re-writing a Bigbrother script for Hobbit.  I need a little help.
The current script gets a list of all currents tests performed by doing
an ls on the %BBVAR/log directory and using sed to pull the test from
each file.

Example:

ls -1 $BB_LOGS_DIR | awk -F. '{print $2}' | sort -u

results in 

conn
cpu
disk
dns
errpt
ftp
http
memory
msgs
procs
ssh
svcs
telnet


Is there a way to do this in hobbit using hobbitd_channel or some other
prog?

Thanks
Trent
list Henrik Størner · Thu, 25 Oct 2007 18:00:36 +0200 ·
quoted from Trent Melcher
On Thu, Oct 25, 2007 at 10:39:32AM -0500, Trent Melcher wrote:
Ok, Im re-writing a Bigbrother script for Hobbit.  I need a little help.
The current script gets a list of all currents tests performed by doing
an ls on the %BBVAR/log directory and using sed to pull the test from
each file.

Is there a way to do this in hobbit using hobbitd_channel or some other
prog?
bb 127.0.0.1 "hobbitdboard fields=testname" | sort | uniq


Regards,
Henrik
list Trent Melcher · Thu, 25 Oct 2007 11:15:13 -0500 ·
quoted from Henrik Størner
On Thu, 2007-10-25 at 18:00 +0200, Henrik Stoerner wrote:
On Thu, Oct 25, 2007 at 10:39:32AM -0500, Trent Melcher wrote:
Ok, Im re-writing a Bigbrother script for Hobbit.  I need a little help.
The current script gets a list of all currents tests performed by doing
an ls on the %BBVAR/log directory and using sed to pull the test from
each file.
Is there a way to do this in hobbit using hobbitd_channel or some other
prog?
bb 127.0.0.1 "hobbitdboard fields=testname" | sort | uniq
Thank You Henrik,  you rock!

Trent
Regards,
Henrik