How to display only a section of clientlog ?
list T.J. Yang
as you can see the intent of showing only prtconf has failed in following command. bash-3.00$ bb 127.0.0.1 "clientlog test.test.com section=prtconf" |egrep '^\[.*' [date] [uname] [uptime] [who] [df] [mount] [prtconf] [memory] [swap] [ifconfig] [route] [netstat] [ports] [ifstat] [ps] [vmstat] [iostatcpu] [iostatdisk] [msgs:/var/adm/messages] [logfile:/var/adm/messages] [clientversion] [clock] bash-3.00$ bb -v Unknown option -v Hobbit version 4.2.0 Usage: bb [--debug] [--proxy=http://ip.of.the.proxy:port/] RECIPIENT DATA RECIPIENT: IP-address, hostname or URL DATA: Message to send, or "-" to read from stdin Add a Yahoo! contact to Windows Live Messenger for a chance to win a free trip! http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline
list Henrik Størner
▸
On Thu, Oct 19, 2006 at 07:26:40AM -0500, T.J. Yang wrote:
as you can see the intent of showing only prtconf has failed in following command. bash-3.00$ bb 127.0.0.1 "clientlog test.test.com section=prtconf"
Remove the extra space before the "section=prtconf".
Or apply this patch, run "make; make install" and restart Hobbit.
Henrik
-------------- next part --------------
--- hobbitd/hobbitd.c 2006/10/03 10:48:27 1.254
+++ hobbitd/hobbitd.c 2006/10/19 14:03:40
@@ -3277,6 +3277,7 @@
p = msg->buf + strlen("clientlog"); p += strspn(p, "\t ");
hostname = p; p += strcspn(p, "\t "); if (*p) { *p = '\0'; p++; }
+ p += strspn(p, "\t ");
hosthandle = rbtFind(rbhosts, hostname);
if (hosthandle != rbtEnd(rbhosts)) {
list Gary Ciampa
Henrik, I'm running hobbit on a linux system along with 8 clients, two linux andn 6 windows. The problem is that somehow I've deleted my "uptime" and "netstat" columns from the two linux systems and can't seem to get the columns back? I have page defined which contains two groups, linux and windows, here are column headers...I've played around with bb and bbgen w/out success.... I believe at some point I did a "bb drop" for the netstat and uptime to clear up errors....but, can't seem to get the columns back. Thanks, Gary Linux Servers bbd </hobbit-cgi/hobbitcolumn.sh?bbd> bbgen </hobbit-cgi/hobbitcolumn.sh?bbgen> bbtest </hobbit-cgi/hobbitcolumn.sh?bbtest> conn </hobbit-cgi/hobbitcolumn.sh?conn> cpu </hobbit-cgi/hobbitcolumn.sh?cpu> disk </hobbit-cgi/hobbitcolumn.sh?disk> files </hobbit-cgi/hobbitcolumn.sh?files> hobbitd </hobbit-cgi/hobbitcolumn.sh?hobbitd> http </hobbit-cgi/hobbitcolumn.sh?http> info </hobbit-cgi/hobbitcolumn.sh?info> memory </hobbit-cgi/hobbitcolumn.sh?memory> msgs </hobbit-cgi/hobbitcolumn.sh?msgs> ports </hobbit-cgi/hobbitcolumn.sh?ports> procs </hobbit-cgi/hobbitcolumn.sh?procs> trends </hobbit-cgi/hobbitcolumn.sh?trends> Windows Servers conn </hobbit-cgi/hobbitcolumn.sh?conn> cpu </hobbit-cgi/hobbitcolumn.sh?cpu> disk </hobbit-cgi/hobbitcolumn.sh?disk> info </hobbit-cgi/hobbitcolumn.sh?info> memory </hobbit-cgi/hobbitcolumn.sh?memory> msgs </hobbit-cgi/hobbitcolumn.sh?msgs> netstat </hobbit-cgi/hobbitcolumn.sh?netstat> procs </hobbit-cgi/hobbitcolumn.sh?procs> svcs </hobbit-cgi/hobbitcolumn.sh?svcs> trends </hobbit-cgi/hobbitcolumn.sh?trends> uptime </hobbit-cgi/hobbitcolumn.sh?uptime> EMIX64S01 EMIX64S02 EMIX64S05 EMIX64S06 RDCEWLMV2 - HPOVO Console EMIX64S08 - HPOVO Meta Windows Servers conn cpu disk info memory msgs netstat procs svcs trends uptime EMIX64S01 EMIX64S02 EMIX64S05 EMIX64S06 RDCEWLMV2 - HPOVO Console EMIX64S08 - HPOVO Meta Gary T. Ciampa Enterprise Management Integration Phone: (XXX) XXX-XXXX Fax: (XXX) XXX-XXXX SAS/C and SAS/C++ Compiler <http://www.sas.com/sasc> SAS... The Power to Know
list Thomas Pedersen
The columns should reapear at the next update. How is your bb-hosts file defined. Are you using group-compress or anything like this ? /Thomas
▸
Gary Ciampa wrote:Henrik, I'm running hobbit on a linux system along with 8 clients, two linux andn 6 windows. The problem is that somehow I've deleted my "uptime" and "netstat" columns from the two linux systems and can't seem to get the columns back? I have page defined which contains two groups, linux and windows, here are column headers...I've played around with bb and bbgen w/out success.... I believe at some point I did a "bb drop" for the netstat and uptime to clear up errors....but, can't seem to get the columns back. Thanks, Gary Linux Servers bbd </hobbit-cgi/hobbitcolumn.sh?bbd> bbgen </hobbit-cgi/hobbitcolumn.sh?bbgen> bbtest </hobbit-cgi/hobbitcolumn.sh?bbtest> conn </hobbit-cgi/hobbitcolumn.sh?conn> cpu </hobbit-cgi/hobbitcolumn.sh?cpu> disk </hobbit-cgi/hobbitcolumn.sh?disk> files </hobbit-cgi/hobbitcolumn.sh?files> hobbitd </hobbit-cgi/hobbitcolumn.sh?hobbitd> http </hobbit-cgi/hobbitcolumn.sh?http> info </hobbit-cgi/hobbitcolumn.sh?info> memory </hobbit-cgi/hobbitcolumn.sh?memory> msgs </hobbit-cgi/hobbitcolumn.sh?msgs> ports </hobbit-cgi/hobbitcolumn.sh?ports> procs </hobbit-cgi/hobbitcolumn.sh?procs> trends </hobbit-cgi/hobbitcolumn.sh?trends> Windows Servers conn </hobbit-cgi/hobbitcolumn.sh?conn> cpu </hobbit-cgi/hobbitcolumn.sh?cpu> disk </hobbit-cgi/hobbitcolumn.sh?disk> info </hobbit-cgi/hobbitcolumn.sh?info> memory </hobbit-cgi/hobbitcolumn.sh?memory> msgs </hobbit-cgi/hobbitcolumn.sh?msgs> netstat </hobbit-cgi/hobbitcolumn.sh?netstat> procs </hobbit-cgi/hobbitcolumn.sh?procs> svcs </hobbit-cgi/hobbitcolumn.sh?svcs> trends </hobbit-cgi/hobbitcolumn.sh?trends> uptime </hobbit-cgi/hobbitcolumn.sh?uptime> EMIX64S01 EMIX64S02 EMIX64S05 EMIX64S06 RDCEWLMV2 - HPOVO Console EMIX64S08 - HPOVO Meta Windows Servers conn cpu disk info memory msgs netstat procs svcs trends uptime EMIX64S01 EMIX64S02 EMIX64S05 EMIX64S06 RDCEWLMV2 - HPOVO Console EMIX64S08 - HPOVO Meta Gary T. Ciampa Enterprise Management Integration Phone: (XXX) XXX-XXXX Fax: (XXX) XXX-XXXX SAS/C and SAS/C++ Compiler <http://www.sas.com/sasc>; SAS... The Power to Know
list Tom Georgoulias
▸
Gary Ciampa wrote:
The problem is that somehow I've deleted my "uptime" and "netstat" columns from the two linux systems and can't seem to get the columns back? I have page defined which contains two groups, linux and windows, here are column headers...I've played around with bb and bbgen w/out success.... I believe at some point I did a "bb drop" for the netstat and uptime to clear up errors....but, can't seem to get the columns back.
Neither of those two columns are hobbit generated columns, they come from BB or other add on scripts. Check the clientlaunch.cfg file on your clients and make sure you have entries for both of the scripts that generate those columns.
Tom
--
Tom Georgoulias
Systems Engineer
McClatchy Interactive
user-6a0b8b0f0ae1@xymon.invalid
list Asif Iqbal
▸
On 10/19/06, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:
as you can see the intent of showing only prtconf has failed in following command. bash-3.00$ bb 127.0.0.1 "clientlog test.test.com section=prtconf" |egrep
You have one too many space infront of the `section'
try like this (copy n paste)
bb 127.0.0.1 "clientlog test.test.com section=prtconf"
▸
'^\[.*'[date] [uname] [uptime] [who] [df] [mount] [prtconf] [memory] [swap] [ifconfig] [route] [netstat] [ports] [ifstat] [ps] [vmstat] [iostatcpu] [iostatdisk] [msgs:/var/adm/messages] [logfile:/var/adm/messages] [clientversion] [clock] bash-3.00$ bb -v Unknown option -v Hobbit version 4.2.0 Usage: bb [--debug] [--proxy=http://ip.of.the.proxy:port/] RECIPIENT DATA RECIPIENT: IP-address, hostname or URL DATA: Message to send, or "-" to read from stdin Add a Yahoo! contact to Windows Live Messenger for a chance to win a free trip! http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Gary Ciampa
Thomas, Tom: My bb-hosts *does* have group-compress..... group-compress Linux Servers 10.12.10.73 emix64s0.unx.sas.com # NAME:"EMIX64S03 - Hobbit Server" bbd http://emix64s03.unx.sas.com/ 10.12.10.74 emix64s04.unx.sas.com # NAME:EMIX64S04 On the client, clientlaunch.sh looks like so... <snip> [client] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log INTERVAL 5m <snip> And hobbitclient.sh has "uptime" defined, but, not "netstat" <snip> # The following defines a bunch of commands that BB extensions expect to be present. # Hobbit does not use them, but they are provided here so if you use BB extension # scripts, then they will hopefully run without having to do a lot of tweaking. UPTIME="/usr/bin/uptime" <snip> A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear. Thx Re: [hobbit] Hobbit Mon 4.2 on RHEL * To: user-ae9b8668bcde@xymon.invalid * Subject: Re: [hobbit] Hobbit Mon 4.2 on RHEL * From: Tom Georgoulias <user-6a0b8b0f0ae1@xymon.invalid> * Date: Fri, 16 Feb 2007 07:48:51 -0500 * Organization: McClatchy Interactive * References: <user-8483f9c71ad2@xymon.invalid <http://www.hswn.dk/hobbiton/2007/02/msg00260.html>; > * User-agent: Thunderbird 1.5.0.9 (X11/20070212)
▸
Gary Ciampa wrote:
The problem is that somehow I've deleted my "uptime" and "netstat"
columns from the two linux systems and can't seem to get the columns
back? I have page defined which contains two groups, linux and
windows, here are column headers...I've played around with bb and
bbgen w/out success.... I believe at some point I did a "bb drop" for
the netstat and uptime to clear up errors....but, can't seem to get
the columns back.
Neither of those two columns are hobbit generated columns, they come from BB or other add on scripts. Check the clientlaunch.cfg file on your clients and make sure you have entries for both of the scripts that generate those columns.
Tom
--
Tom Georgoulias
Systems Engineer
McClatchy Interactive
user-6a0b8b0f0ae1@xymon.invalid
list Jerry Yu
On a stock Hobbit 4.2* installation, - uptime is reported under 'CPU' column, while test/alert can be done with 'UP' in hobbit-client.cfg - netstat is reported in the client data, while graphs under trend (more available than default selection under 'trend') . test can be done using PORT etc.
▸
On 2/21/07, Gary Ciampa <user-8e9d672aace1@xymon.invalid> wrote:Thomas, Tom: My bb-hosts *does* have group-compress..... group-compress Linux Servers 10.12.10.73 emix64s0.unx.sas.com # NAME:"EMIX64S03 - Hobbit Server" bbd http://emix64s03.unx.sas.com/ 10.12.10.74 emix64s04.unx.sas.com # NAME:EMIX64S04 On the client, clientlaunch.sh looks like so... <snip> [client] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log INTERVAL 5m <snip> And hobbitclient.sh has "uptime" defined, but, not "netstat" <snip> # The following defines a bunch of commands that BB extensions expect to be present. # Hobbit does not use them, but they are provided here so if you use BB extension # scripts, then they will hopefully run without having to do a lot of tweaking. UPTIME="/usr/bin/uptime" <snip> A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear. Thx Re: [hobbit] Hobbit Mon 4.2 on RHEL - *To*: user-ae9b8668bcde@xymon.invalid - *Subject*: Re: [hobbit] Hobbit Mon 4.2 on RHEL - *From*: Tom Georgoulias <user-6a0b8b0f0ae1@xymon.invalid> - *Date*: Fri, 16 Feb 2007 07:48:51 -0500 - *Organization*: McClatchy Interactive - *References*: <user-8483f9c71ad2@xymon.invalid <http://www.hswn.dk/hobbiton/2007/02/msg00260.html>>; - *User-agent*: Thunderbird 1.5.0.9 (X11/20070212) Gary Ciampa wrote: The problem is that somehow I've deleted my "uptime" and "netstat" columns from the two linux systems and can't seem to get the columns back? I have page defined which contains two groups, linux and windows, here are column headers...I've played around with bb and bbgen w/out success.... I believe at some point I did a "bb drop" for the netstat and uptime to clear up errors....but, can't seem to get the columns back. Neither of those two columns are hobbit generated columns, they come from BB or other add on scripts. Check the clientlaunch.cfg file on your clients and make sure you have entries for both of the scripts that generate those columns. Tom -- Tom Georgoulias Systems Engineer McClatchy Interactive
tomg (at)
mcclatchyinteractive.com
list Galen Johnson
▸
Gary Ciampa wrote: <snip>
A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear. Thx
This colleague sounds pretty sharp :-)...
list Gary Ciampa
Very funny..... <GGGGGGGGGGGGGGGGGGGGGGGGGGGGG> Yes he is!!!!!!!!!
▸
-----Original Message-----
From: Galen Johnson [mailto:user-d2ff723b6cb6@xymon.invalid] Sent: Thursday, February 22, 2007 4:35 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit Mon 4.2 on RHEL
Gary Ciampa wrote:
<snip>A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear. Thx --
This colleague sounds pretty sharp :-)...