Dataquery (ex cactiquery) 1.0a released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

We have to audit all the plugin Id's and ask some of the authors to change theirs. It would appear that there is some overlap in the security information.

For each plugin, there is a Realm ID, each plugin must use a unique Realm ID in their setup.php. If they don't, they won't load properly. This topic will be handled separately, when I get a few cycles. Until then, please audit all of your plugin and verify that the realm ID's are unique.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

TFC wrote:There is no dataquery tab (also there isno tab image in downloaded source)
And finally there is no icon shown.
The version of dataquery is Dataquery (dataquery - v0.1.2a)
Hi

can you try with version 0.1.4a ?

Did you add the "View Dataqueries" to your user ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

To The Witness:
This plugin have realm id like this:

Code: Select all

        $user_auth_realm_filenames['weathermap-cacti-plugin.php'] = 43;
        $user_auth_realm_filenames['weathermap-cacti-plugin-mgmt.php'] = 42;
To fmangeant:
I download and install new version and as admin I checked "view dataqueirs" box for me.
Nothing changed...
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

opps wrong realm taken from code..
I took from setup.php of weathermap.
Correct one is:

Code: Select all

        $user_auth_realm_filenames['dataquery.php'] = 33;
        $user_auth_realms[33]='View Dataqueries';
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

Hello everyone, i was away for 2 weeks due to work i am back going to check the issues and get back to everyone.
Regards
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Does anybody have an idea about my problem?
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

TFC wrote:Does anybody have an idea about my problem?
Your cacti version is older than the cacti version the plugin was written under.
I will try though to check furthermore and see if i can find anything else.
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

pestilence wrote:
TFC wrote:Does anybody have an idea about my problem?
Your cacti version is older than the cacti version the plugin was written under.
I will try though to check furthermore and see if i can find anything else.
I think if there is a requirement part in each plugin and if this part contains min cacti version, it will be better.
Anyway, I need that plugin but i dont wanna upgrade my cacti :)
gru
Posts: 11
Joined: Fri Jun 02, 2006 2:46 am

Post by gru »

Hi,

the dataquery plugin is working. Installation on 0.8.6i cacti with plugin-arch 1.0 was no problem.
But I'm missing something.

I've got a loadaverage graph with three datasources (1,5,15min.) and when pressing the dataquery button I only get 1 rrd (load15min) as output.

Is it somehow possible to get a csv output of all three datasources (say the whole graph)?

Thanks in advance,
keep up the good work,
greetings,
Johannes
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Pestilence,

I need to revise your plugin. Do you have an issue with that? Changes will be subtile but significant.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mreyes
Posts: 3
Joined: Thu Dec 21, 2006 11:13 am

Post by mreyes »

how make this at crontab ?

php dataquery.php action=dump local_graph_id=178 rra_id=0 view_type=AVERAGE graph_start=1166706906 graph_end=1166710506

i think first problem is the auth ??
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

TheWitness wrote:Pestilence,

I need to revise your plugin. Do you have an issue with that? Changes will be subtile but significant.

TheWitness
Hey there, sorry for the late reply (damn work) it's ok with the revision :)
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Does still this plugin run on 0.8.6i and after?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Same here. Only difference is that I appear to be obsessed. Need to go and either see a Doctor or get a life.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

TheWitness wrote:Same here. Only difference is that I appear to be obsessed. Need to go and either see a Doctor or get a life.

TheWitness
#define life?
:D LOL :D
Darn this is what happens when you start getting involved in everything LOL
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests