[hobbit] Is there an equivalent dumphostsvc
Henrik Stoerner
henrik at hswn.dk
Wed May 9 18:19:19 CEST 2007
On Wed, May 09, 2007 at 10:43:15AM -0400, Sean R. Clark wrote:
> Is there an equivalent dumphostsvc (from bb 1.9/bbgen 3.5)?
>
> I have a script right now that looks at the output of
> $bbhome/bin/dumphostsvc $HOSTSVC hostsvc
Not directly, but you can get the same data by running
REQUEST_METHOD=GET \
SCRIPT_NAME="" \
QUERY_STRING="HOSTSVC=$HOSTSVC" \
/usr/lib/hobbit/cgi-bin/bb-hostsvc.sh | tail -n +3
What exactly are you doing since you need to look at the HTML
version of the status log ? If all you want is the current color
and perhaps the detailed status, it would be much easier to run
bb 127.0.0.1 "hobbitdlog $HOSTSVC"
The first line of the output contains the status, and the rest is the
status details. Like this:
$ bb 127.0.0.1 "hobbitdlog www,sslug,dk.disk"
www.sslug.dk|disk|yellow||1178725468|1178727277|1178729077|0|0|130.228.2.150|790830|||Y
yellow Wed May 9 18:14:31 CEST 2007 - Filesystems NOT ok
&yellow /var (90% used) has reached the WARNING level (90%)
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/sda1 579598 226866 321809 42% /
/dev/mapper/vg_sslug1-lv_usr 2568144 677744 1759944 28% /usr
/dev/mapper/vg_sslug1-lv_var 1048540 933484 115056 90% /var
Regards,
Henrik
More information about the Xymon
mailing list