[racktables-users] Re: query fails after update
- From: Frank Altpeter <frank-racktables@xxxxxxxxxxx>
- To: racktables-users@xxxxxxxxxxxxx
- Date: Thu, 11 Jun 2009 12:10:35 +0200
Hi there,
on 2009-06-10 at 22:57:24 CEST, Denis Ovsienko wrote:
> > I just managed to finally update from 0.16.4 to 0.17.1, but I'm stuck with
> > a little problem getting data from RackTables via script.
> >
> > I've built a nagios script which checks the presence of a monitored object
> > and gets the uplink port(s). This used to work with 0.16.4 like this:
>
> A quick fix is below.
Thanks, this works :-)
> I'd suggest replacing this call with one higher-level PHP function,
> which will not break after one of upgrades.
I'm not sure what you mean with that. Working with the predefined PHP
function getObjectPortsAndLinks() from inc/database.php doesn't work for
me, since the monitoring script is running on a different machine and
connects remotely to the mysql database running racktables db.
Do you have any other idea how to do this as long-term solution?
Le deagh dhùraghd,
Frank Altpeter
--
FA-RIPE || http://www.altpeter.de/
http://www.xing.com/go/invite/27666.2a971e
| "He dropped his voice still lower. In the stillness, a fly
| would not have dared clear its throat. "
Other related posts: