to add custom script in hobbit & also drop undesirable column
list Haresh Shah
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
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
list Sello Tlabela SD
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
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
▸
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
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 <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, HareshGruss 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
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?
list Josh Luthman
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 <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
▸
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
Very neat! Great tip to have! This will become exceptionally useful for mySQL!
▸
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
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
list Sello Tlabela SD
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
▸
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~