Xymon Mailing List Archive search

to add custom script in hobbit & also drop undesirable column

11 messages in this thread

list Haresh Shah · Tue, 20 Nov 2007 01:21:26 -0500 ·
Hi,

can anyone tell me how to drop some of the default columns that
displayed on the web page against host name? ( I don't want to display
"SSH","ports","procs" columns).
I also want to monitor another functionality(client side) using the
ext script. can anyone please let me know step by step procedure. what
can i modify from client side and what should i modify from server
side? I tried to search a lot but could not get the desired answer
that can be worked out.. :(

Please help me!

--
Regards,
Haresh
list Martin Flemming · Tue, 20 Nov 2007 08:37:31 +0100 (CET) ·
Hi !

look at

http://www.hswn.dk/hobbiton/2007/05/msg00425.html

https://it-hobbit/hobbit/help/hobbit-tips.html#droptest

i think

NOCOLUMNS in bb-hosts could be the right way

and second ..

https://it-hobbit/hobbit/help/hobbit-tips.html#scripts

https://it-hobbit/hobbit/help/howtograph.html

http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/HOWTO/Custom_Monitoring_Scripts_for_Hobbit


cheers,

       martin
quoted from Haresh Shah

On Tue, 20 Nov 2007, Shah, Haresh K (GE, Corporate, consultant) wrote:
Hi,

can anyone tell me how to drop some of the default columns that
displayed on the web page against host name? ( I don't want to display
"SSH","ports","procs" columns).
I also want to monitor another functionality(client side) using the
ext script. can anyone please let me know step by step procedure. what
can i modify from client side and what should i modify from server
side? I tried to search a lot but could not get the desired answer
that can be worked out.. :(

Please help me!

--
Regards,
Haresh

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Sello Tlabela SD · Tue, 20 Nov 2007 09:41:33 +0200 ·

I accidentally added an 'ftp' check. Now I cannot get it off the
webpage!

Use the command


    ~/server/bin/bb 127.0.0.1 "drop HOSTNAME ftp"


to permanenly remove all traces of a test. Note that you need the quotes
around the "drop HOSTNAME ftp".


So how do I get rid of an entire host in Hobbit?

First, remove the host from the ~/server/etc/bb-hosts file. Then use the
command


    ~/server/bin/bb 127.0.0.1 "drop HOSTNAME"


to permanenly remove all traces of a host. Note that you need the quotes
around the "drop HOSTNAME".


Regards,
Sello Tlabela | Ops Specialist | ISS Infrastructure | Telkom 
E-Mail:  user-68d80b7df288@xymon.invalid | Office: +XX XX XXX XXXX | Fax: +XX XX
680 3299 | Cell:+XXXXXXXXXXX


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail is subject to the Telkom SA electronic communication legal notice, available at :
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Sigurður Guðbrandsson · Tue, 20 Nov 2007 07:56:04 -0000 ·
Hi.
 
I once made a big e-mail which resulted in a tutorial found in the shire.
http://www.trantor.org/theshire/doku.php/tutorials:customgraph
 
If you want to know how to make custom scripts, please look at that.
 
With regards,
 

Sigurður Guðbrandsson
Technician 
Medical Imaging Technology Consulting Group
Raforninn ehf
Email: user-f6f2e0690a1f@xymon.invalid
Phone: +XXX XXX XXXX
Mobile: +XXX XXX XXXX
Web: http://www.raforninn.is/
Mailing address:
    Street: Sudurhlid 35
    Postcode: IS-105
    City: Reykjavik
    Country: Iceland	 Sigurður Guðbrandsson
Tæknimaður
Þjónusta og ráðgjöf fyrir læknisfræðilega myndgreiningartækni
Raförninn ehf
Netfang: user-f6f2e0690a1f@xymon.invalid
Símanúmer: +XXX XXX XXXX
Farsími: +XXX XXX XXXX
Veffang: http://www.raforninn.is/
Póstfang:
    Suðurhlíð 35
    105 Reykjavík
quoted from Martin Flemming

	
From: Shah, Haresh K (GE, Corporate, consultant) [mailto:user-dbae57f8375d@xymon.invalid] 
Sent: 20. nóvember 2007 06:21
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] to add custom script in hobbit & also drop undesirable column


Hi,

can anyone tell me how to drop some of the default columns that
displayed on the web page against host name? ( I don't want to display
"SSH","ports","procs" columns).
I also want to monitor another functionality(client side) using the
ext script. can anyone please let me know step by step procedure. what
can i modify from client side and what should i modify from server
side? I tried to search a lot but could not get the desired answer
that can be worked out.. :(

Please help me!

--
Regards,
Haresh
list Josh Luthman · Tue, 20 Nov 2007 10:05:57 -0500 ·
Actually he's looking at the "SSH","ports","procs" columns.  SSH is not a
default column, so remove that from the end of the host's line in bb-hosts
and use the drop command to be rid of that.  As far as ports and procs I
believe he wants to disregard them from the WWW pages.  By default the
client will submit info but there is no default "check this port/proc" for
it to be green/red.  If I recall correctly, you can put a ! in front of it
to disable, though I'm not about that - can anyone confirm?
quoted from Martin Flemming

On 11/20/07, Martin Flemming <user-f286aaa49a76@xymon.invalid> wrote:

Hi !

look at

http://www.hswn.dk/hobbiton/2007/05/msg00425.html

https://it-hobbit/hobbit/help/hobbit-tips.html#droptest

i think

NOCOLUMNS in bb-hosts could be the right way

and second ..

https://it-hobbit/hobbit/help/hobbit-tips.html#scripts

https://it-hobbit/hobbit/help/howtograph.html


http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/HOWTO/Custom_Monitoring_Scripts_for_Hobbit


cheers,

       martin

On Tue, 20 Nov 2007, Shah, Haresh K (GE, Corporate, consultant) wrote:
Hi,

can anyone tell me how to drop some of the default columns that
displayed on the web page against host name? ( I don't want to display
"SSH","ports","procs" columns).
I also want to monitor another functionality(client side) using the
ext script. can anyone please let me know step by step procedure. what
can i modify from client side and what should i modify from server
side? I tried to search a lot but could not get the desired answer
that can be worked out.. :(

Please help me!

--
Regards,
Haresh

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Thomas Kern · Tue, 20 Nov 2007 10:15:55 -0500 ·
My understanding is that the ! means reverse the test. If serverA needs
FTP running then it is tested as ftp, but if serverB must not have FTP
running then use !ftp as the test. We use this reversed test for FTP and
TELNET on some of our servers. 
/Thomas Kern
/XXX-XXX-XXXX (O)
/XXX-XXX-XXXX (M)
quoted from Josh Luthman
 
-----Original Message-----
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Tuesday, November 20, 2007 10:06
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] to add custom script in hobbit & also drop undesirable column

Actually he's looking at the "SSH","ports","procs" columns.  SSH is not a default column, so remove that from the end of the host's line in bb-hosts and use the drop command to be rid of that.  As far as ports and procs I believe he wants to disregard them from the WWW pages.  By default the client will submit info but there is no default "check this port/proc" for it to be green/red.  If I recall correctly, you can put a ! in front of it to disable, though I'm not about that - can anyone confirm? 
list Josh Luthman · Tue, 20 Nov 2007 10:28:10 -0500 ·
Thomas,

So you're saying if I have

1.2.3.4 my.host.com # !ftp

Then that tells the client to check the server's FTP from the client's
perspective?
quoted from Thomas Kern

On 11/20/07, Kern, Thomas <user-f1ebafb19faf@xymon.invalid> wrote:
My understanding is that the ! means reverse the test. If serverA needs
FTP running then it is tested as ftp, but if serverB must not have FTP
running then use !ftp as the test. We use this reversed test for FTP and
TELNET on some of our servers.

/Thomas Kern
/XXX-XXX-XXXX (O)
/XXX-XXX-XXXX (M)

-----Original Message-----
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Tuesday, November 20, 2007 10:06
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] to add custom script in hobbit & also
drop undesirable column

Actually he's looking at the "SSH","ports","procs" columns.
SSH is not a default column, so remove that from the end of
the host's line in bb-hosts and use the drop command to be
rid of that.  As far as ports and procs I believe he wants to
disregard them from the WWW pages.  By default the client
will submit info but there is no default "check this
port/proc" for it to be green/red.  If I recall correctly,
you can put a ! in front of it to disable, though I'm not
about that - can anyone confirm?
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Stef Coene · Tue, 20 Nov 2007 16:40:25 +0100 ·
quoted from Josh Luthman
On Tuesday 20 November 2007, Josh Luthman wrote:
Thomas,

So you're saying if I have

1.2.3.4 my.host.com # !ftp

Then that tells the client to check the server's FTP from the client's
perspective?
No, it tells the server to check if the client is _not_ running a ftp server.  
If the client is running a ftp server, the check will be red.

We use this to make sure none of our servers are running the telnet server 
because we want our development team to use ssh.


Stef
list Josh Luthman · Tue, 20 Nov 2007 11:56:47 -0500 ·
Very neat!  Great tip to have!  This will become exceptionally useful for
mySQL!
quoted from Stef Coene

On 11/20/07, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Tuesday 20 November 2007, Josh Luthman wrote:
Thomas,

So you're saying if I have

1.2.3.4 my.host.com # !ftp

Then that tells the client to check the server's FTP from the client's
perspective?
No, it tells the server to check if the client is _not_ running a ftp
server.
If the client is running a ftp server, the check will be red.

We use this to make sure none of our servers are running the telnet server
because we want our development team to use ssh.


Stef

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Haresh Shah · Wed, 21 Nov 2007 01:28:46 -0500 ·
Hi Antonio,
 
I got your mail from mail archive list. could you plese go through the
below mail and if possible, could you plese help me on this.
I will really appreciate.
 
Thanks,
Haresh 

From: Shah, Haresh K (GE, Corporate, consultant) 
Sent: Wednesday, November 21, 2007 10:06 AM
To: 'user-f6f2e0690a1f@xymon.invalid'; 'user-f286aaa49a76@xymon.invalid';
'user-4c45a83f15cb@xymon.invalid'; 'user-f1ebafb19faf@xymon.invalid'
quoted from Josh Luthman
Subject: RE: [hobbit] to add custom script in hobbit & also drop
undesirable column


Hi All,
 
Thanks for your reply.
 
Actually my first problem (to drop some of the tests) got resolved. But
my second question is still unresolved. I want to add one test and thus
the column in sucah a way that i am able to see it on the web page with
the output.
 
I go through the following link :
http://www.hobbitmon.com/hobbit/help/hobbit-tips.html#scripts
I implemented it but it didn't work.
 
couple of questions :
 
1) It describes how to do it from client side but from server side
configuration it didn't tell clearly that whether we need to add such
type of para in the server's hobbitlaunch.cfg file or not. If yes, then
instead of client home path i need to put server's path?
 
[myscript]
     ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
           CMD $HOBBITCLIENTHOME/ext/myscript.sh
    LOGFILE $HOBBITCLIENTHOME/logs/myscript.log
     INTERVAL 5m
2) let's say i have 2 server - server1 & server2. Now if i want to have
soome data to be generated through ext script from client side(server2)
then how hobbit server which is on server1 comes to know about the
collection of data from server2.
 
3) In the above link one example script provided from server side and
client side. acording to it do we need to put some entry in the bb-hosts
file to trigger the test for particular host?
 
4) Please help me to make the script (i.e. shown in the above link)
running for my hobbit. Please provide me step by step guide or small
how-to.
 
NOTE: currently I am using only one server for hobbit client as well as
server. but once I will get an idea about the ext scripts then i need to
put ext scripts and make it run from different server.
 
Thanks,
Haresh
list Sello Tlabela SD · Wed, 21 Nov 2007 13:58:45 +0200 ·
Hi,

 
Please check your logs in /var/log/hobbit/myscript.log it could be not
running or it could be that hobbit doesn't have the right to execute
the file myscripts,

 
Let me know what the logs say

 
Regards,

 
Sello Tlabela | Ops Specialist | ISS Infrastructure | Telkom
E-Mail:  user-68d80b7df288@xymon.invalid <mailto:user-68d80b7df288@xymon.invalid>  |
Office: +XX XX XXX XXXX | Fax: +XX XX XXX XXXX | Cell: +XX XX XXX XXXX


From: Shah, Haresh K (GE, Corporate, consultant)
[mailto:user-dbae57f8375d@xymon.invalid] 
Sent: 21 November 2007 08:29
To: user-3a0747675512@xymon.invalid
Cc: user-ae9b8668bcde@xymon.invalid
Subject: FW: RE: [hobbit] to add custom script in hobbit & also drop
quoted from Haresh Shah
undesirable column

 
Hi Antonio,

 
I got your mail from mail archive list. could you plese go through the
below mail and if possible, could you plese help me on this.

I will really appreciate.

 
Thanks,

Haresh 


From: Shah, Haresh K (GE, Corporate, consultant) 
Sent: Wednesday, November 21, 2007 10:06 AM
To: 'user-f6f2e0690a1f@xymon.invalid'; 'user-f286aaa49a76@xymon.invalid';
'user-4c45a83f15cb@xymon.invalid'; 'user-f1ebafb19faf@xymon.invalid'
Subject: RE: [hobbit] to add custom script in hobbit & also drop
undesirable column

Hi All,

 
Thanks for your reply.

 
Actually my first problem (to drop some of the tests) got resolved.
But my second question is still unresolved. I want to add one test and
thus the column in sucah a way that i am able to see it on the web
page with the output.

 
I go through the following link :

http://www.hobbitmon.com/hobbit/help/hobbit-tips.html#scripts

I implemented it but it didn't work.

 
couple of questions :

 
1) It describes how to do it from client side but from server side
configuration it didn't tell clearly that whether we need to add such
type of para in the server's hobbitlaunch.cfg file or not. If yes,
then instead of client home path i need to put server's path?

 
[myscript]
     ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
           CMD $HOBBITCLIENTHOME/ext/myscript.sh
    LOGFILE $HOBBITCLIENTHOME/logs/myscript.log
     INTERVAL 5m
2) let's say i have 2 server - server1 & server2. Now if i want to
have soome data to be generated through ext script from client
side(server2) then how hobbit server which is on server1 comes to know
about the collection of data from server2.

 
3) In the above link one example script provided from server side and
client side. acording to it do we need to put some entry in the
bb-hosts file to trigger the test for particular host?

 
4) Please help me to make the script (i.e. shown in the above link)
running for my hobbit. Please provide me step by step guide or small
how-to.

 
NOTE: currently I am using only one server for hobbit client as well
as server. but once I will get an idea about the ext scripts then i
need to put ext scripts and make it run from different server.

 
Thanks,

Haresh


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail is subject to the Telkom SA electronic communication legal notice, available at :
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~