Xymon Mailing List Archive search

Can hobbit server comprehense COMBO keywords like BB server

7 messages in this thread

list Myra [Ontario] Haubrich · Tue, 24 Jun 2008 17:01:42 -0400 ·
I am wondering if hobbit server can understand the keywork "combo" at
the beginning of a combo report file like bb server does?

Eg:

combo

status server1,xx,xx,xx,xx.cpu green Tue Jun 24 19:59:34 UTC 2008 up: 5
days, 2 users, 119 procs, load=17


LOAD AVG on server1,xx,xx,xx,xx is 17


status server1,xx,xx,xx,xx.disk green Tue Jun 24 19:59:34 UTC 2008 -
Disk partitions on server1,xx,xx,xx,xx  OK

/dev/cciss/c0d1p1    100790004   9644576  86025516  11% /home
/dev/cciss/c0d0p3      5036316     44476   4736008   1% /tmp
/dev/cciss/c0d0p1       101086     19502     76365  21% /boot
/dev/cciss/c0d0p6     40670524   2182592  36421976   6% /
/dev/cciss/c0d0p2     20161204    988424  18148640   6% /var


status server1,xx,xx,xx,xx .procs green Tue Jun 24 19:59:34 UTC 2008 All
processes are OK

&green cron >=1 - 1 instance running
&green bbrun >=1 - 2 instances running

...

Activity of Telvent HTTPIN Log @ 2008-06-24 19:59:36: GREEN
Log file last updated on 2008-06-24 19:55:03.

Contents of Telvent HTTPIN Log @ 2008-06-24 19:59:36: GREEN
No errors found.
list Henrik Størner · Tue, 24 Jun 2008 23:16:19 +0200 ·
quoted from Myra [Ontario] Haubrich
On Tue, Jun 24, 2008 at 05:01:42PM -0400, Haubrich,Myra [Ontario] wrote:
I am wondering if hobbit server can understand the keywork "combo" at
the beginning of a combo report file like bb server does?
You could try it - and you would find that it works just like the
Big Brother server.

It's purely for compatibility with Big Brother based clients, though.
The cpu-time needed to process a combo-message as opposed to multiple
individual status-messages is nearly identical.


Regards,
Henrik
list Myra [Ontario] Haubrich · Thu, 26 Jun 2008 09:42:19 -0400 ·
Thank you for your reply!

I've tried with 

# nc localhost 1984 < test.txt

Where test.txt contents:
quoted from Myra [Ontario] Haubrich
combo

status server1,xx,xx,xx,xx.cpu green Tue Jun 24 19:59:34 UTC 2008 up: 5
days, 2 users, 119 procs, load=17

LOAD AVG on server1,xx,xx,xx,xx is 17

status server1,xx,xx,xx,xx.disk green Tue Jun 24 19:59:34 UTC 2008 -
Disk partitions on server1,xx,xx,xx,xx  OK

/dev/cciss/c0d1p1    100790004   9644576  86025516  11% /home
/dev/cciss/c0d0p3      5036316     44476   4736008   1% /tmp
/dev/cciss/c0d0p1       101086     19502     76365  21% /boot
/dev/cciss/c0d0p6     40670524   2182592  36421976   6% /
/dev/cciss/c0d0p2     20161204    988424  18148640   6% /var

status server1,xx,xx,xx,xx .procs green Tue Jun 24 19:59:34 UTC 2008 All
processes are OK

&green cron >=1 - 1 instance running
&green bbrun >=1 - 2 instances running
...

Activity of Telvent HTTPIN Log @ 2008-06-24 19:59:36: GREEN
Log file last updated on 2008-06-24 19:55:03.

Contents of Telvent HTTPIN Log @ 2008-06-24 19:59:36: GREEN
No errors found.

I've checked that the nc command went through, but no update on hobbit
website, and no logs of anysort. However, it worked with BB server. Is
there any suggested way to feed hobbit server combo data?

Thank you very much in advance!

MH
quoted from Henrik Størner
===========

On Tue, Jun 24, 2008 at 05:01:42PM -0400, Haubrich,Myra [Ontario] wrote:
I am wondering if hobbit server can understand the keywork "combo" at
the beginning of a combo report file like bb server does?
You could try it - and you would find that it works just like the
Big Brother server.

It's purely for compatibility with Big Brother based clients, though.
The cpu-time needed to process a combo-message as opposed to multiple
individual status-messages is nearly identical.


Regards,
Henrik
list Henrik Størner · Thu, 26 Jun 2008 17:47:33 +0200 ·
quoted from Myra [Ontario] Haubrich
On Thu, Jun 26, 2008 at 09:42:19AM -0400, Haubrich,Myra [Ontario] wrote:
Thank you for your reply!

I've tried with 

# nc localhost 1984 < test.txt

Where test.txt contents:
combo

status server1,xx,xx,xx,xx.cpu green Tue Jun 24 19:59:34 UTC 2008 up: 5
days, 2 users, 119 procs, load=17

LOAD AVG on server1,xx,xx,xx,xx is 17

status server1,xx,xx,xx,xx.disk green Tue Jun 24 19:59:34 UTC 2008 -
Disk partitions on server1,xx,xx,xx,xx  OK

/dev/cciss/c0d1p1    100790004   9644576  86025516  11% /home
/dev/cciss/c0d0p3      5036316     44476   4736008   1% /tmp
/dev/cciss/c0d0p1       101086     19502     76365  21% /boot
/dev/cciss/c0d0p6     40670524   2182592  36421976   6% /
/dev/cciss/c0d0p2     20161204    988424  18148640   6% /var
You have some new-line problems there. The layout of a combo
message should be

   combo<newline>
   status ........
   <newline>
   <newline>
   status ......

So your first blank line between the "combo" and the "status" should
not be there. Not sure if this is what causes the problem, though...
It could also be that your "test.txt" file has DOS/Windows style
line termination (carriage-return + newline), this would also
cause problems.

Hobbit might be a bit more finicky about this than BB, but it
was tested with the Big Brother "bb" client. And Hobbit does use
combo messages internally, e.g. for all of the network test
status messages (try running "bbcmd bbtest-net --no-update" and
see the messages that get sent to the Hobbit server).

The data you're sending looks pretty much like a standard Unix client
report. Any particular reason why you're not just using the normal
Hobbit client and the "bb" utility to send the data ?


Regards,
Henrik
list Myra [Ontario] Haubrich · Thu, 26 Jun 2008 16:48:43 -0400 ·
quoted from Henrik Størner
=========

On Thu, Jun 26, 2008 at 09:42:19AM -0400, Haubrich,Myra [Ontario] wrote:
Thank you for your reply!

I've tried with 

# nc localhost 1984 < test.txt

Where test.txt contents:
combo

status server1,xx,xx,xx,xx.cpu green Tue Jun 24 19:59:34 UTC 2008 up:
5
days, 2 users, 119 procs, load=17

LOAD AVG on server1,xx,xx,xx,xx is 17

status server1,xx,xx,xx,xx.disk green Tue Jun 24 19:59:34 UTC 2008 -
Disk partitions on server1,xx,xx,xx,xx  OK

/dev/cciss/c0d1p1    100790004   9644576  86025516  11% /home
/dev/cciss/c0d0p3      5036316     44476   4736008   1% /tmp
/dev/cciss/c0d0p1       101086     19502     76365  21% /boot
/dev/cciss/c0d0p6     40670524   2182592  36421976   6% /
/dev/cciss/c0d0p2     20161204    988424  18148640   6% /var
You have some new-line problems there. The layout of a combo
message should be

   combo<newline>
   status ........
   <newline>
   <newline>
   status ......

So your first blank line between the "combo" and the "status" should
not be there. Not sure if this is what causes the problem, though...
It could also be that your "test.txt" file has DOS/Windows style
line termination (carriage-return + newline), this would also
cause problems.

Hobbit might be a bit more finicky about this than BB, but it
was tested with the Big Brother "bb" client. And Hobbit does use
combo messages internally, e.g. for all of the network test
status messages (try running "bbcmd bbtest-net --no-update" and
see the messages that get sent to the Hobbit server).

The data you're sending looks pretty much like a standard Unix client
report. Any particular reason why you're not just using the normal
Hobbit client and the "bb" utility to send the data ?


Regards,
Henrik

 ======

The client host (a RHEL server) is behind firewalls, and I tried with
hobbitfetch and msgcache, the normal hobbit way. I've checked with "lsof
-i:1984" to make sure that msgcache is running on the client and
hobbitfetch is running on hobbit server. It didn't work, most likely the
firewall blocked it. 

Below is the configurations that I learned from the forum. Any
suggestions?
===========

CLIENT SIDE

/etc/sysconfig/hobbit-cleint
Hobbitserver="xx.xx.xx.xx 127.0.0.1" <-- hobbit server IP

hobbitclient.cfg
  BBDISP="127.0.0.1"  <-- Changed from Hobbit server IP to localhost


clientlaunch.cfg
  [msgcache]
        # DISABLED  <-- Comment it
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/bin/msgcache --no-daemon 
--pidfile=$HOBBITCLIENTHOME/logs/msgcache.pid
        LOGFILE $HOBBITCLIENTHOME/logs/msgcache.log

 [client]
         ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
         CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local  <-- Add 
--local
         LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log
         INTERVAL 5m


SERVER SIDE

hobbitlaunch.cfg
  [hobbitfetch]
          # DISABLED  <-- Comment it
          ENVFILE
/home/users/hobbit/application/server/etc/hobbitserver.cfg
          CMD $BBHOME/bin/hobbitfetch --server=XX.XX.XX.XX --no-daemon
--pidfile=$BBSERVERLOGS/hobbitfetch.pid  <-- replace the IP by your 
Hobbit server one
                LOGFILE $BBSERVERLOGS/hobbitfetch.log

bb-hosts
zz.zz.zz.zz  fqdn  # conn hobbitfetch pulldata

==========

Anyhow, a perl script on client host sends status data as combo message
to hobbit server via ssh. The combo message is now working with hobbit
server. Thank you so much for your help!!!   

MH.
list Myra [Ontario] Haubrich · Thu, 26 Jun 2008 17:48:04 -0400 ·
ON the note, the problem using ssh to get data from client side is that,
server will not have any rrd data for graphs, right?
From: 	Haubrich,Myra [Ontario]  
Sent:	June 26, 2008 4:49 PM
To:	'user-ae9b8668bcde@xymon.invalid'
Subject:	Re: [hobbit] Can hobbit server comprehense COMBO
keywords like BB server
quoted from Myra [Ontario] Haubrich

=========

On Thu, Jun 26, 2008 at 09:42:19AM -0400, Haubrich,Myra [Ontario]
wrote:
Thank you for your reply!

I've tried with 

# nc localhost 1984 < test.txt

Where test.txt contents:
combo

status server1,xx,xx,xx,xx.cpu green Tue Jun 24 19:59:34 UTC 2008
up: 5
days, 2 users, 119 procs, load=17

LOAD AVG on server1,xx,xx,xx,xx is 17

status server1,xx,xx,xx,xx.disk green Tue Jun 24 19:59:34 UTC 2008 -
Disk partitions on server1,xx,xx,xx,xx  OK

/dev/cciss/c0d1p1    100790004   9644576  86025516  11% /home
/dev/cciss/c0d0p3      5036316     44476   4736008   1% /tmp
/dev/cciss/c0d0p1       101086     19502     76365  21% /boot
/dev/cciss/c0d0p6     40670524   2182592  36421976   6% /
/dev/cciss/c0d0p2     20161204    988424  18148640   6% /var
You have some new-line problems there. The layout of a combo
message should be

   combo<newline>
   status ........
   <newline>
   <newline>
   status ......

So your first blank line between the "combo" and the "status" should
not be there. Not sure if this is what causes the problem, though...
It could also be that your "test.txt" file has DOS/Windows style
line termination (carriage-return + newline), this would also
cause problems.

Hobbit might be a bit more finicky about this than BB, but it
was tested with the Big Brother "bb" client. And Hobbit does use
combo messages internally, e.g. for all of the network test
status messages (try running "bbcmd bbtest-net --no-update" and
see the messages that get sent to the Hobbit server).

The data you're sending looks pretty much like a standard Unix client
report. Any particular reason why you're not just using the normal
Hobbit client and the "bb" utility to send the data ?


Regards,
Henrik

 ======

The client host (a RHEL server) is behind firewalls, and I tried with
hobbitfetch and msgcache, the normal hobbit way. I've checked with
"lsof -i:1984" to make sure that msgcache is running on the client and
hobbitfetch is running on hobbit server. It didn't work, most likely
the firewall blocked it. 

Below is the configurations that I learned from the forum. Any
suggestions?
===========

CLIENT SIDE

/etc/sysconfig/hobbit-cleint
Hobbitserver="xx.xx.xx.xx 127.0.0.1" <-- hobbit server IP

hobbitclient.cfg
  BBDISP="127.0.0.1"  <-- Changed from Hobbit server IP to localhost


clientlaunch.cfg
  [msgcache]
        # DISABLED  <-- Comment it
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/bin/msgcache --no-daemon 
--pidfile=$HOBBITCLIENTHOME/logs/msgcache.pid
        LOGFILE $HOBBITCLIENTHOME/logs/msgcache.log

 [client]
         ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
         CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local  <-- Add 
--local
         LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log
         INTERVAL 5m


SERVER SIDE

hobbitlaunch.cfg
  [hobbitfetch]
          # DISABLED  <-- Comment it
          ENVFILE
/home/users/hobbit/application/server/etc/hobbitserver.cfg
          CMD $BBHOME/bin/hobbitfetch --server=XX.XX.XX.XX
--no-daemon 
--pidfile=$BBSERVERLOGS/hobbitfetch.pid  <-- replace the IP by your 
Hobbit server one
                LOGFILE $BBSERVERLOGS/hobbitfetch.log

bb-hosts
zz.zz.zz.zz  fqdn  # conn hobbitfetch pulldata

==========

Anyhow, a perl script on client host sends status data as combo
message to hobbit server via ssh. The combo message is now working
with hobbit server. Thank you so much for your help!!!   

MH.

list Heinelt Maik · Fri, 27 Jun 2008 14:35:10 +0900 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 At our Hobbit Server 4.2, I only get displayed,  include the colored icon, the uptime of our Windows Server.
For the Linux machines, I can see the uptime only at the client data, but it will not be displayed in Hobbit.

Here the entry at the client data:
......
[osversion]
[uptime]
~ 2:47pm up 369 days, 5:31, 0 users, load average: 0.00, 0.09, 0.29
[who]
......


What do I have to change, to get displayed the uptime include the colored icon in Hobbit?


Regards

Maik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 iD8DBQFIZHwOr4r+EhimPOURAkgBAJ4nQrSkAmMPiQ7R6pPO4EvTM33VMACfYiRA
a1sDd0q2TcjzxrYvaHUd1eY=
=XtcV
-----END PGP SIGNATURE-----