Disabled Data Sources

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Disabled Data Sources

Post by zarahel »

Good afternoon to you all

I need some help

For pooling reasons I´ve disabled some datasources from Cacti that I want to run via Script-Cron.

I´ve build the script to get the parameters I need from Cacti´s mysql database ("poller_item" table) and it´s working fine.

The only problem is that the data I need is in Cacti´s "poller_item" table, and the lines disappear, as soon as I disable Cacti´s datasources.

Does anybody know how I can get the following parameters from Cacti´s mysql database with the datasources disabled:

hostname
rrd_name
rrd_path
arg1

Is there a way of doing this? Creating some script? Or maybe creating another mysql table, and changing Cacti´s code so that new table as a copy of the parameters I need from disabled datasources?

Any help is very apreciated.

Thkx
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Anyone?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

It's not really clear why you're hackishly trying to accomplish.

If you're running scripts outside of cacti, why do you need info from the cacti db? Regardless of the data source disabled, the data is stored (somewhere) in the db which you should be able to access....
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests