I am a newbie to Hobbit, and this is probably a simple question to answer. Here is what I'm trying to do:
I have custom scripts I need to incorporate to Hobbit. I saw the page http://hobbitmon.sourceforge.net/docs/hobbit-tips.html#scripts but I still don't completely understand it. If I could get 1 of my scripts set up, then I can probably figure out how to do the rest.
I have 2 types of custom scripts: client and server. Here is an example of each. I just need to know exactly how the script would be set up. Note, I had these running on Nagios before:
- (server) this is the custom script we ran on our old monitoring (nagios): #!/bin/sh
WEB_CHECK=curl http://www.example.com | grep value | wc -l
if [ $WEB_CHECK -eq 1 ] then echo "Result OK" else echo "Failed" exit 2 fi
Question: Need to know how to incorporate this on the hobbit server, and where it would show on the GUI?
- (client) this is custom script that used "NRPE" on nagios:
- I have a script that runs on 3 clients, let's call it /usr/local/sbin/script.pl
- this script returns an output of a number
- on the hobbit server, I want to be get the result of this script for each client, add them together, then alert based on the number. So here is the script I had on the Nagios server: #!/bin/sh
Script to check transactions on ecom-1/2
THRESHOLD=1
SERVER1=ssh server1 /usr/local/nrpe/script.pl
SERVER2=ssh server2 /usr/local/nrpe/script.pl
SERVER3=ssh server3 /usr/local/nrpe/script.pl
TOTAL=expr $SERVER1 + $SERVER2 + $SERVER3
if [ $TOTAL -lt $THRESHOLD ] ; then echo "Number ($TOTAL) Failed" exit 2 else echo "Number ($TOTAL) Success" exit 0 fi
Question: How would I incorporate that in Hobbit?
Thanks! Payam
- Look at http://xymon.com/hobbit-cgi/viewconf.sh 172.16.10.5 miro.hswn.dk # ssh http://miro.hswn.dk/
Then look at the miro.hswn.dk server under the http column here: http://xymon.com/hobbit/servers/servers.html
Just put your information in. No custom script needed.
- I can't help with custom scripts but the document expressed you need to...
Tell Hobbit about it
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR date
and you have not done that in your script - that's definitely a concern. Perhaps looking at other scripts will help you - these are on the Deadcat and Xymonton here: http://www.deadcat.net/ http://xymonton.trantor.org/doku.php
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth." --- Sir Arthur Conan Doyle
On Mon, Nov 2, 2009 at 3:40 PM, Payam Jahromi <pjahromi at checkpoint.com>wrote:
I am a newbie to Hobbit, and this is probably a simple question to answer. Here is what I’m trying to do:
I have custom scripts I need to incorporate to Hobbit. I saw the page http://hobbitmon.sourceforge.net/docs/hobbit-tips.html#scripts but I still don’t completely understand it. If I could get 1 of my scripts set up, then I can probably figure out how to do the rest.
I have 2 types of custom scripts: client and server. Here is an example of each. I just need to know exactly how the script would be set up. Note, I had these running on Nagios before:
- (server) this is the custom script we ran on our old monitoring (nagios):
#!/bin/sh
WEB_CHECK=
curl http://www.example.com | grep value | wc -lif [ $WEB_CHECK -eq 1 ]
then
echo "Result OK"else
echo "Failed" exit 2fi
Question: Need to know how to incorporate this on the hobbit server, and where it would show on the GUI?
- (client) this is custom script that used “NRPE” on nagios:
I have a script that runs on 3 clients, let’s call it /usr/local/sbin/ script.pl
this script returns an output of a number
on the hobbit server, I want to be get the result of this script for each client, add them together, then alert based on the number. So here is the script I had on the Nagios server:
#!/bin/sh
Script to check transactions on ecom-1/2
THRESHOLD=1
SERVER1=
ssh server1 /usr/local/nrpe/script.plSERVER2=
ssh server2 /usr/local/nrpe/script.plSERVER3=
ssh server3 /usr/local/nrpe/script.plTOTAL=
expr $SERVER1 + $SERVER2 + $SERVER3if [ $TOTAL -lt $THRESHOLD ] ; then
echo "Number ($TOTAL) Failed" exit 2else
echo "Number ($TOTAL) Success" exit 0fi
Question: How would I incorporate that in Hobbit?
Thanks!
Payam
There is a nice write-up about incorporating custom scripts into hobbit (xymon) on the help menu @ help->.Tips and Tricks.
The status "dot" will appear by whatever you tell hobbit to place it at in your "bb" status message. So the command that Josh put in point #2:
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR date
Actually expands to something like:
/hobbit/client/bin/bb 10.1.1.25 "status myserver.dns.domain Custom_Test green Wed Nov 4 08:19:23 CST 2009"
So on your web page a server named myserver.dns.domain with a test column of Custom_Test with a green status.
........Bruce
Bruce White Senior Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | bewhite at fellowes.com | http://www.fellowes.com/
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
From: Josh Luthman [mailto:josh at imaginenetworksllc.com] Sent: Monday, November 02, 2009 5:54 PM To: hobbit at hswn.dk Subject: Re: [hobbit] custom scripts
- Look at http://xymon.com/hobbit-cgi/viewconf.sh 172.16.10.5 miro.hswn.dk # ssh http://miro.hswn.dk/
Then look at the miro.hswn.dk server under the http column here: http://xymon.com/hobbit/servers/servers.html
Just put your information in. No custom script needed.
- I can't help with custom scripts but the document expressed you need to...
Tell Hobbit about it
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR date
and you have not done that in your script - that's definitely a concern. Perhaps looking at other scripts will help you - these are on the Deadcat and Xymonton here: http://www.deadcat.net/ http://xymonton.trantor.org/doku.php
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth." --- Sir Arthur Conan Doyle
On Mon, Nov 2, 2009 at 3:40 PM, Payam Jahromi <pjahromi at checkpoint.com> wrote:
I am a newbie to Hobbit, and this is probably a simple question
to answer. Here is what I'm trying to do:
I have custom scripts I need to incorporate to Hobbit. I saw the
page http://hobbitmon.sourceforge.net/docs/hobbit-tips.html#scripts but I still don't completely understand it. If I could get 1 of my scripts set up, then I can probably figure out how to do the rest.
I have 2 types of custom scripts: client and server. Here is an
example of each. I just need to know exactly how the script would be set up. Note, I had these running on Nagios before:
1. (server) this is the custom script we ran on our old
monitoring (nagios):
#!/bin/sh
WEB_CHECK=`curl http://www.example.com | grep value | wc -l`
if [ $WEB_CHECK -eq 1 ]
then
echo "Result OK"
else
echo "Failed"
exit 2
fi
Question: Need to know how to incorporate this on the hobbit
server, and where it would show on the GUI?
2. (client) this is custom script that used "NRPE" on nagios:
- I have a script that runs on 3 clients, let's call it
/usr/local/sbin/script.pl
- this script returns an output of a number
- on the hobbit server, I want to be get the result of this
script for each client, add them together, then alert based on the number. So here is the script I had on the Nagios server:
#!/bin/sh
# Script to check transactions on ecom-1/2
THRESHOLD=1
SERVER1=`ssh server1 /usr/local/nrpe/script.pl`
SERVER2=`ssh server2 /usr/local/nrpe/script.pl`
SERVER3=`ssh server3 /usr/local/nrpe/script.pl`
TOTAL=`expr $SERVER1 + $SERVER2 + $SERVER3`
if [ $TOTAL -lt $THRESHOLD ] ; then
echo "Number ($TOTAL) Failed"
exit 2
else
echo "Number ($TOTAL) Success"
exit 0
fi
Question: How would I incorporate that in Hobbit?
Thanks!
Payam
Hey all, I’m running hobbitmon 4.2.0 and I’m having an issue with client information not displaying on my hobbit status page. I can add objects RE: xxx.xxx.xxx.xxx server # https://server and it will display the http and sslcert status, along with conn, info and trends, but I can’t see any other information like cpu, disk, etc. The only server I have all status info for is the hobbit server itself.
I’m using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin). The other hobbit server displays all the status data for the same client servers I’m testing against with my hobbit server, but mine does not.
Any ideas?
Before anyone asks why I’m installing a second server, it’s so my team can gather trends and information on our own without relying on another team to set up the clients/servers.
Thanks! Dan
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
Each Hobbit client will have to be reconfigured to send data to both servers. This will require you to "touch" each system, which you might not be able to do.
GLH
On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel < Daniel.Nordquist at orlandohealth.com> wrote:
Hey all, I’m running hobbitmon 4.2.0 and I’m having an issue with client information not displaying on my hobbit status page. I can add objects RE: xxx.xxx.xxx.xxx server # https://server and it will display the http and sslcert status, along with conn, info and trends, but I can’t see any other information like cpu, disk, etc. The only server I have all status info for is the hobbit server itself.
I’m using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin). The other hobbit server displays all the status data for the same client servers I’m testing against with my hobbit server, but mine does not.
Any ideas?
Before anyone asks why I’m installing a second server, it’s so my team can gather trends and information on our own without relying on another team to set up the clients/servers.
Thanks!
Dan
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
-- Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
As far as I know all Hobbit clients are compatible with all versions of Hobbit and Xymon servers.
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth." --- Sir Arthur Conan Doyle
On Thu, Nov 5, 2009 at 2:55 PM, Greg Hubbard <glh.forums at gmail.com> wrote:
Each Hobbit client will have to be reconfigured to send data to both servers. This will require you to "touch" each system, which you might not be able to do.
GLH
On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel < Daniel.Nordquist at orlandohealth.com> wrote:
Hey all, I’m running hobbitmon 4.2.0 and I’m having an issue with client information not displaying on my hobbit status page. I can add objects RE: xxx.xxx.xxx.xxx server # https://server and it will display the http and sslcert status, along with conn, info and trends, but I can’t see any other information like cpu, disk, etc. The only server I have all status info for is the hobbit server itself.
I’m using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin). The other hobbit server displays all the status data for the same client servers I’m testing against with my hobbit server, but mine does not.
Any ideas?
Before anyone asks why I’m installing a second server, it’s so my team can gather trends and information on our own without relying on another team to set up the clients/servers.
Thanks!
Dan
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
-- Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
Thanks Greg. I can't find where I would make that setting. Can you enlighten me?
Thanks, Dan
From: Greg Hubbard [mailto:glh.forums at gmail.com] Sent: Thursday, November 05, 2009 2:56 PM To: hobbit at hswn.dk Subject: Re: [hobbit] possible issue with two hobbit servers reporting for the same client?
Each Hobbit client will have to be reconfigured to send data to both servers. This will require you to "touch" each system, which you might not be able to do.
GLH On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel <Daniel.Nordquist at orlandohealth.com<mailto:Daniel.Nordquist at orlandohealth.com>> wrote: Hey all, I'm running hobbitmon 4.2.0 and I'm having an issue with client information not displaying on my hobbit status page. I can add objects RE: xxx.xxx.xxx.xxx server # https://server<https://server/> and it will display the http and sslcert status, along with conn, info and trends, but I can't see any other information like cpu, disk, etc. The only server I have all status info for is the hobbit server itself.
I'm using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin). The other hobbit server displays all the status data for the same client servers I'm testing against with my hobbit server, but mine does not.
Any ideas?
Before anyone asks why I'm installing a second server, it's so my team can gather trends and information on our own without relying on another team to set up the clients/servers.
Thanks! Dan
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com<mailto:postmaster at orlandohealth.com> .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
-- Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
Never mind, I found it. I just have to enter a second bbdisplay setting in the bbwin.cfg file and restart the service.
Thanks for the help!
From: Nordquist, Daniel Sent: Friday, November 06, 2009 7:39 AM To: hobbit at hswn.dk Subject: RE: [hobbit] possible issue with two hobbit servers reporting for the same client?
Thanks Greg. I can't find where I would make that setting. Can you enlighten me?
Thanks, Dan
From: Greg Hubbard [mailto:glh.forums at gmail.com] Sent: Thursday, November 05, 2009 2:56 PM To: hobbit at hswn.dk Subject: Re: [hobbit] possible issue with two hobbit servers reporting for the same client?
Each Hobbit client will have to be reconfigured to send data to both servers. This will require you to "touch" each system, which you might not be able to do.
GLH On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel <Daniel.Nordquist at orlandohealth.com<mailto:Daniel.Nordquist at orlandohealth.com>> wrote: Hey all, I'm running hobbitmon 4.2.0 and I'm having an issue with client information not displaying on my hobbit status page. I can add objects RE: xxx.xxx.xxx.xxx server # https://server<https://server/> and it will display the http and sslcert status, along with conn, info and trends, but I can't see any other information like cpu, disk, etc. The only server I have all status info for is the hobbit server itself.
I'm using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin). The other hobbit server displays all the status data for the same client servers I'm testing against with my hobbit server, but mine does not.
Any ideas?
Before anyone asks why I'm installing a second server, it's so my team can gather trends and information on our own without relying on another team to set up the clients/servers.
Thanks! Dan
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com<mailto:postmaster at orlandohealth.com> .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
-- Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.
This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandohealth.com .
If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
participants (5)
-
bewhite@fellowes.com
-
Daniel.Nordquist@orlandohealth.com
-
glh.forums@gmail.com
-
josh@imaginenetworksllc.com
-
pjahromi@checkpoint.com