Xymon Mailing List Archive search

alternative to bb command

6 messages in this thread

list Jason Kincl · Thu, 2 Sep 2010 18:49:30 -0500 ·
Hello!

I am wondering if using netcat instead of bb to send status updates to a xymon server is a bad idea? The bb program seems to just be sending text through to the server and netcat can duplicate that functionality. 

So far, my testing has been good. The status updates work as expected however in trying to drop the test status using netcat from the xymon server did not seem to work and this has raised a small flag. 

For example:
echo "status machine,example,com.test clear TEST STATUS" | nc xymon.example.com 1984

Thanks,

Jason Kincl
list Buchan Milne · Fri, 3 Sep 2010 09:12:44 +0100 ·
quoted from Jason Kincl
On Friday, 3 September 2010 00:49:30 Jason Kincl wrote:
Hello!

I am wondering if using netcat instead of bb to send status updates to a
xymon server is a bad idea?
What prevents you from using bb?

In the cases where I can't install bb, I can't have netcat either, so I use 
perl.
quoted from Jason Kincl
The bb program seems to just be sending text
through to the server and netcat can duplicate that functionality.
It receives text as well, when using e.g. hobbitdboard, hobbitdlog etc.
quoted from Jason Kincl
So far, my testing has been good. The status updates work as expected
however in trying to drop the test status using netcat from the xymon
server did not seem to work and this has raised a small flag.

For example:
echo "status machine,example,com.test clear TEST STATUS" | nc
xymon.example.com 1984
Make a directory Xymon, place Client.pm in this directory, set the PERL5LIB 
environment variable to the parent directory of the Xymon directory you 
created, then run bb.pl as if it is bb.

http://staff.telkomsa.net/~bgmilne/xymon/Client.pm
http://staff.telkomsa.net/~bgmilne/xymon/bb.pl

We may start integrating some of the perl modules various people have been 
working on in future releases, see
http://sourceforge.net/apps/mediawiki/xymon/index.php?title=Perl_Library_Discussion


Regards,
Buchan
list Kolbjørn Barmen · Mon, 6 Sep 2010 12:59:32 +0200 (CEST) ·
quoted from Buchan Milne
On Fri, 3 Sep 2010, Buchan Milne wrote:
On Friday, 3 September 2010 00:49:30 Jason Kincl wrote:
Hello!

I am wondering if using netcat instead of bb to send status updates to a
xymon server is a bad idea?
What prevents you from using bb?

In the cases where I can't install bb, I can't have netcat either, so I use 
perl.
Sometimes, all you have is busybox and then nc is alot more likely to be
around than perl :)

Also, perl is a hige memory hog and slow (due to disk access) compared to
doing everything inside busybox sh - to I avoid perl on embedded systems
or other systems with limited memory resources.

-- 
Kolbjørn Barmen
UNINETT Driftsenter
list Jason Kincl · Tue, 7 Sep 2010 09:57:31 -0500 ·
quoted from Kolbjørn Barmen
On Sep 6, 2010, at 5:59 AM, Kolbjørn Barmen wrote:
On Fri, 3 Sep 2010, Buchan Milne wrote:
On Friday, 3 September 2010 00:49:30 Jason Kincl wrote:
Hello!

I am wondering if using netcat instead of bb to send status updates to a
xymon server is a bad idea?
What prevents you from using bb?

In the cases where I can't install bb, I can't have netcat either, so I use 
perl.
Sometimes, all you have is busybox and then nc is alot more likely to be
around than perl :)
This is basically what we have going on here, a box that we do not want to add extra software to if possible. Netcat is working nicely so far, thanks!
quoted from Kolbjørn Barmen
Also, perl is a hige memory hog and slow (due to disk access) compared to
doing everything inside busybox sh - to I avoid perl on embedded systems
or other systems with limited memory resources.

-- 
Kolbjørn Barmen
UNINETT Driftsenter
Jason Kincl
list Buchan Milne · Tue, 7 Sep 2010 17:33:38 +0100 ·
quoted from Kolbjørn Barmen
On Monday, 6 September 2010 11:59:32 Kolbjørn Barmen wrote:
On Fri, 3 Sep 2010, Buchan Milne wrote:
On Friday, 3 September 2010 00:49:30 Jason Kincl wrote:
Hello!
I am wondering if using netcat instead of bb to send status updates to
a xymon server is a bad idea?
What prevents you from using bb?
In the cases where I can't install bb, I can't have netcat either, so I
use perl.
Sometimes, all you have is busybox and then nc is alot more likely to be
around than perl :)

Also, perl is a hige memory hog and slow (due to disk access) compared to
doing everything inside busybox sh - to I avoid perl on embedded systems
or other systems with limited memory resources.
But, bb should compile on most embedded distros, and should be relatively small (depending on the c library being used).

In cases where you just want to monitor the device, snmp is another option. However, I was interested in building xymon on OpenWRT to be able to use it for remote network testing, for which nc won't do ...

The other option is to add a bb subcommand to busybox, which should be relatively easy.

Regards,
Buchan
list Mario Andre · Thu, 9 Sep 2010 15:53:03 -0300 ·
Hi Buchan,

I'm running 4.3.0 but I think my revision is different because I could not
patch do_devmon.c , I've searched the trunk and branch files but I haven't
found the revision 6330 described into the patch file
--- hobbitd/rrd/do_devmon.c     (revision 6330).
Can you help?


Thanks in advance,

Mario.
quoted from Buchan Milne


On Tue, Sep 7, 2010 at 1:33 PM, Buchan Milne <user-9b139aff4dec@xymon.invalid>wrote:
On Monday, 6 September 2010 11:59:32 Kolbjørn Barmen wrote:
On Fri, 3 Sep 2010, Buchan Milne wrote:
On Friday, 3 September 2010 00:49:30 Jason Kincl wrote:
Hello!

I am wondering if using netcat instead of bb to send status updates
to
a xymon server is a bad idea?
What prevents you from using bb?

In the cases where I can't install bb, I can't have netcat either, so I
use perl.
Sometimes, all you have is busybox and then nc is alot more likely to be
around than perl :)

Also, perl is a hige memory hog and slow (due to disk access) compared to
doing everything inside busybox sh - to I avoid perl on embedded systems
or other systems with limited memory resources.
But, bb should compile on most embedded distros, and should be relatively
small (depending on the c library being used).

In cases where you just want to monitor the device, snmp is another option.
However, I was interested in building xymon on OpenWRT to be able to use it
for remote network testing, for which nc won't do ...

The other option is to add a bb subcommand to busybox, which should be
relatively easy.

Regards,
Buchan