[hobbit] How do you check the status from other column from scripts?
I recently found the bb command with the hobbitdboard to work pretty well for grabbing info on a specific test and specific host:
./bbcmd
bb 136.180.70.203 'hobbitdboard <full_host_name_as_in_bb-hosts>.conn'
<full_host_name_as_in_bb-hosts>|conn|green|OrdAstLe|1258268784|1260293536|1260295336|0|0|136.180.70.203|-1|green <!-- [flags:OrdAstLe] --> Tue Dec 8 12:31:25 2009 conn ok
// notice the single quotes for the DATA area, as the "bb" command only takes two arguments, you have to encase these in quotes
Getting that command to run in a script is a little more complex and required me to do an su to the xymon user ...
CMD='/usr/lib64/xymon/server/bin/bb 127.0.0.1 "drop
'${HOSTNAME}'"' echo ${CMD} su - xymon -c "${CMD}"
Some other useful stuff is in there too, check out http://hobbitmon.sourceforge.net/docs/man1/bb.1.html.
Hope that helps.
Unix System Administrator Computer Science Corporation General Dynamics Land Systems 38500 Mound Rd. Sterling Heights, MI. 48310 Desk: (586) 825-8294 Oracle IM: moldvanm
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
[hobbit] How do you check the status from other column from scripts?
Aulestia Jimmy to: hobbit 11/26/2009 08:36 PM
Please respond to hobbit
How can i check or query the values from a other column in a script? I wooul like to execute a script1 that create the COLUMN 1, this script1 use the status, maybe COLOR o hobbitgraph variable from a COLUMN2
Greetings, Jimmy Aulestia ADMINISTRACION 0&M PLATAFORMA DE VOZ Movil: 08 771 4041 Oficina: 099996503 / 2227700 - ext 6503 Jimmy.Aulestia at telefonica.com.ec
En Telefónica-Movistar nos sentimos orgullosos de ser la Mejor Empresa para Trabajar en el Ecuador - Ranking Great Place To Work 2008
I would like to set up a check for some processes to change color only if the process
has been 'down' for more than '15' minutes (eg more than 3 poll periods.)
I have over 2500 servers located in different time zones from AST thru HST.
Various jobs/processes are shut down for 5-15 minutes each day at various times throughout the day on each server.
We don't want to generate any events on the bb2.html page if these jobs are only down for less than 15 minutes and then start back up.
Running version Xymon 4.3.0-0.beta2 <http://hobbitmon.sourceforge.net/>
I tried to set "DURATION>16" in hobbit-clients.cfg :
PROC "%.*ssh " 0 3 red TRACK=ssh DURATION>16
but it seems to be ignored
~xymon/server/bin/bbcmd ~xymon/server/bin/hobbitd_client --dump-config
| head -20
Shows:
PROC "%.*ssh " 0 3 red TRACK=ssh HOST=s09trbrxs (line: 386)
I know the DURATION qualifier will work in the hobbit-alerts.cfg; is there an equivalent setting in the hobbit-clients.cfg section for the PROC section?
Thanks,
Tom Brand
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.
participants (2)
-
mmoldvan@csc.com
-
TRBrand@cvs.com