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
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_Moni...
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 : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
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?
On 11/20/07, Martin Flemming <martin.flemming at desy.de> 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_Moni...
cheers,
martinOn 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 : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
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 /301-903-2211 (O) /301-905-6427 (M)
-----Original Message----- From: Josh Luthman [mailto:josh at imaginenetworksllc.com] Sent: Tuesday, November 20, 2007 10:06 To: hobbit at hswn.dk 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?
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?
On 11/20/07, Kern, Thomas <Thomas.Kern at hq.doe.gov> 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 /301-903-2211 (O) /301-905-6427 (M)
-----Original Message----- From: Josh Luthman [mailto:josh at imaginenetworksllc.com] Sent: Tuesday, November 20, 2007 10:06 To: hobbit at hswn.dk 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?
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
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
Very neat! Great tip to have! This will become exceptionally useful for mySQL!
On 11/20/07, Stef Coene <stef.coene at docum.org> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
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: tlabelsd at telkom.co.za | Office: +27 12 680 3176 | Fax: +27 12 680 3299 | Cell:+27795175706
This e-mail is subject to the Telkom SA electronic communication legal notice, available at :
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
participants (6)
-
haresh.k.shah@ge.com
-
josh@imaginenetworksllc.com
-
martin.flemming@desy.de
-
stef.coene@docum.org
-
Thomas.Kern@hq.doe.gov
-
TlabelSD@telkom.co.za