[Maria-developers] BuildBot Status Checker

2010-01-11 Thread Adam M. Dutko
I realized my buildbots went offline earlier today but wasn't notified
when they did.  I've worked to rectify that situation by writing a
small PHP script.  The lastest commit is at
http://git.thefuturegrid.org/?p=mariadb-scripts;a=commit;h=3d26dd7d842e2e5a7360f775bbe71283a3443bfc
.  It currently does the following:

$ php checkStatus.php -h
Welcome to the MariaDB BuildBot Checker:

   usage:
  php checkStatus.php ${URL} ${BUILDBOT} (show a bots info)
  php checkStatus.php ${URL} 1 (show all bots)

   note:
  A local file can be used in place of a URL.


You can check individual buildbot info:

$ php checkStatus.php http://askmonty.org/buildbot/buildslaves
adutko-centos5-amd64
adutko-centos5-amd64:
--
Used by Builders: centos5-amd64-minimal
Slave is currently connected
Admin: Kristian Nielsen
Last heard from: about 34 minutes ago (2010-Jan-12 05:22:32)

or get a list of all buildbots:

$ php checkStatus.php http://askmonty.org/buildbot/buildslaves 1
All buildbots ...
FOUND BOT NAME --> adutko-centos5-amd64
FOUND BOT NAME --> adutko-ultrasparc3
FOUND BOT NAME --> archivist-amd64
FOUND BOT NAME --> archivist-cnc
FOUND BOT NAME --> bo-win-1
FOUND BOT NAME --> centos5
FOUND BOT NAME --> hakan-mac-g5
FOUND BOT NAME --> knielsen-kvm-x86
FOUND BOT NAME --> mariadb-brs
FOUND BOT NAME --> opensolaris-x86
FOUND BOT NAME --> pcrews-win
FOUND BOT NAME --> psergey-foxhole-x86
FOUND BOT NAME --> psergey-pslp2-x86
FOUND BOT NAME --> psergey-pylon-amd64
FOUND BOT NAME --> psergey-pylon-x86
FOUND BOT NAME --> psergey-win32box
FOUND BOT NAME --> sanja-gentoo-x86_64
FOUND BOT NAME --> sanja-mac-x86
FOUND BOT NAME --> toby-sol10
FOUND BOT NAME --> toby-sol10-sparc
FOUND BOT NAME --> valgrind
FOUND BOT NAME --> vm-win-1
FOUND BOT NAME --> work-opensuse-amd64


You can also use a static file of the page you want to crawl as
opposed to an online URL:

$ php checkStatus.php file://buildslaves.htm adutko-centos5-amd64
adutko-centos5-amd64:
--
Used by Builders: centos5-amd64-minimal
Slave is currently connected
Admin: Kristian Nielsen
Last heard from: 0 seconds ago (2010-Jan-12 03:27:32)

I am going to try to add an e-mail notification piece so I can be
notified when a buildbot goes offline so "ideally" one could minimize
downtime.

I hope someone else finds this useful.

-Adam

___
Mailing list: https://launchpad.net/~maria-developers
Post to : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Maria-developers] BuildBot Status Checker

2010-01-26 Thread Kristian Nielsen
"Adam M. Dutko"  writes:

> I realized my buildbots went offline earlier today but wasn't notified
> when they did.  I've worked to rectify that situation by writing a
> small PHP script.  The lastest commit is at

Unfortunately, I have not had time to look into this yet :-/. Just wanted to
let you know I haven't forgotten!

I wanted to have this set up in our monitoring system for the buildbot slaves
that we manage, so we get an alarm in case of problems. I still hope to get to
it eventually.

Unless Daniel beats me to it ;-) (Cc:ed).

Thanks,

 - Kristian.

___
Mailing list: https://launchpad.net/~maria-developers
Post to : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Maria-developers] BuildBot Status Checker

2010-01-26 Thread Adam M. Dutko
No worries.  When you get to it just let me know if you need help (I doubt
you will.)

On a related note,  I've been out of channel because classes started again.
I'm trying to work on tickr when I get the chance and to work on the manual
pages a bit more.  When they're done I'll give you a hollar.

On Jan 26, 2010 3:57 AM, "Kristian Nielsen" 
wrote:

"Adam M. Dutko"  writes: > I realized my buildbots
went offline earlier today...
Unfortunately, I have not had time to look into this yet :-/. Just wanted to
let you know I haven't forgotten!

I wanted to have this set up in our monitoring system for the buildbot
slaves
that we manage, so we get an alarm in case of problems. I still hope to get
to
it eventually.

Unless Daniel beats me to it ;-) (Cc:ed).

Thanks,

 - Kristian.
___
Mailing list: https://launchpad.net/~maria-developers
Post to : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp