How do you check the status from other column from scripts?
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 <mailto:Jimmy.Aulestia at telefonica.com.ec>
I don't write scripts but maybe you could curl the status page and look at the background (it's red or green based on condition).
On 11/26/09, Aulestia Jimmy <Jimmy.Aulestia at telefonica.com.ec> wrote:
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 <mailto:Jimmy.Aulestia at telefonica.com.ec>
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"The secret to creativity is knowing how to hide your sources." --- Albert Einstein
If you have access to the server, you can query the status table a lot easier than that. Look in the man page for the bb command. You'll use something like:
server/bin/bb localhost 'hobbitdboard'
There's a bunch of arguments you can pass to pick out information by column (test name), host name, color, &c.
Once you've worked out what you want, you can have your script launched by xymon at regular intervals, in which case you'd use:
$BB $BBDISP 'hobbitdboard arg1 arg2 etc"
Ralph Mitchell
On Thu, Nov 26, 2009 at 8:43 PM, Josh Luthman <josh at imaginenetworksllc.com>wrote:
I don't write scripts but maybe you could curl the status page and look at the background (it's red or green based on condition).
On 11/26/09, Aulestia Jimmy <Jimmy.Aulestia at telefonica.com.ec> wrote:
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 <mailto:Jimmy.Aulestia at telefonica.com.ec>
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"The secret to creativity is knowing how to hide your sources." --- Albert Einstein
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Friday, 27 November 2009 02:32:13 Aulestia Jimmy wrote:
How can i check or query the values from a other column in a script?
Start with 'man bb' ...
What scripting language are you planning on using? Shell scripting? I have an initial perl module which should make it easy to do something like this in perl (without executing bb), but I haven't tried something like this in it. If you are considering perl, I would make it available to get some feedback ..
I wooul like to execute a script1 that create the COLUMN 1, this script1 use the status, maybe COLOR
If you just want to combine some existing tests, you can have a look at bbcombotest. Enable the task in hobbitlaunch.cfg, and see 'man bbcombotest' and 'man bbcombotest.cfg'
o hobbitgraph variable from a COLUMN2
If you want values from the graphs, you need to get them out of the rrd files. In shell scripts, you would use 'rrdtool fetch', see 'man rrdfetch'. In perl, you could use the perl RRD module.
AFAIK, thresholds from RRD files is on the roadmap for Xymon, which might in future allow you to do this without scripting.
Regards, Buchan
participants (4)
-
bgmilne@staff.telkomsa.net
-
Jimmy.Aulestia@telefonica.com.ec
-
josh@imaginenetworksllc.com
-
ralphmitchell@gmail.com