Xymon Mailing List Archive search

How do you check the status from other column from scripts?

list Matthew Moldvan
Tue, 8 Dec 2009 12:36:23 -0500
Message-Id: <user-a646d2b3de01@xymon.invalid>

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
XXXXX Mound Rd.
Sterling Heights, MI.  48310
Desk: (XXX) XXX-XXXX
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: XX XXX XXXX
Oficina: XXXXXXXXX  / XXXXXXX - ext XXXX
user-d9ec8fc5bab2@xymon.invalid
  

En Telefónica-Movistar nos sentimos orgullosos de ser la Mejor Empresa para Trabajar en el Ecuador - Ranking Great Place To Work 2008