[hobbit] How do you check the status from other column from scripts?

Matthew Moldvan mmoldvan at csc.com
Tue Dec 8 18:36:23 CET 2009


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20091208/af686e55/attachment.html>


More information about the Xymon mailing list