Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Sat Oct 25, 2014 6:29 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: Tue Nov 21, 2006 3:21 pm 
Offline
Cacti User

Joined: Thu Nov 16, 2006 1:57 pm
Posts: 51
Location: BC, kootenays
TFC Are you sure there isn't an error message at the top of the page that shows nothing?

I'm assuming you did your $plugin []

double check to see if CSV export path exists. I don't think it self creates.
Also, enable viewing permission for the users which will use this.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 1:53 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
Ahuber wrote:
TFC Are you sure there isn't an error message at the top of the page that shows nothing?

I'm assuming you did your $plugin []

double check to see if CSV export path exists. I don't think it self creates.
Also, enable viewing permission for the users which will use this.


Ahuber wrote:
TFC Are you sure there isn't an error message at the top of the page that shows nothing?

I'm assuming you did your $plugin []

double check to see if CSV export path exists. I don't think it self creates.
Also, enable viewing permission for the users which will use this.


Here is the config.php output:
Quote:
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'weathermap';
$plugins[] = 'hostinfo';
$plugins[] = 'thold';
$plugins[] = 'reports';
$plugins[] = 'devices';
$plugins[] = 'links';
$plugins[] = 'dataquery';


And plugins directory is:
Quote:
[root@citizen plugins]# ls -la
...
drwxr-xr-x 6 root nobody 4096 Nov 17 13:47 dataquery
...

this is the user that run httpd:
Quote:
[root@citizen plugins]# ps -ef |grep httpd
root 2110 1 0 Oct19 ? 00:00:03 /usr/sbin/httpd
apache 27523 2110 0 Nov21 ? 00:00:11 /usr/sbin/httpd
...
...
apache 23962 2110 0 Nov21 ? 00:00:02 /usr/sbin/httpd
apache 24065 2110 0 Nov21 ? 00:00:01 /usr/sbin/httpd
apache 24074 2110 0 Nov21 ? 00:00:01 /usr/sbin/httpd
...
...

And finally this is the csv directory permissions:
Quote:
[root@citizen dataquery]# ls -la
total 80
drwxr-xr-x 6 root nobody 4096 Nov 17 13:47 .
drwxr-xr-x 9 root root 4096 Nov 17 13:47 ..
-rw-r--r-- 1 root root 11604 Nov 3 16:57 class_cactiquery.php
drwxr-xr-x 2 root root 4096 Nov 17 13:47 css
drwxrwxr-x 2 root apache 4096 Nov 17 13:47 csv
-rw-r--r-- 1 root root 4052 Nov 3 16:58 dataquery.php
drwxr-xr-x 2 root root 4096 Nov 17 13:47 images
-rw-r--r-- 1 root root 26925 Jul 25 10:15 LICENSE
-rw-r--r-- 1 root root 3880 Nov 3 16:57 README
-rw-r--r-- 1 root root 5222 Nov 3 16:58 setup.php
drwxr-xr-x 2 root root 4096 Nov 17 14:02 view

As you see permission is adjusted as README describe.
But dataquery icon not shown. I can give the realm permissions thats all.

_________________
Quote:
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - CMD.php
Server Info - Linux 2.6.28-11-server
Web Server - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch
PHP - 5.2.6-3ubuntu4.5
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, rrdtool, snmp
MySQL - 5.0.75-0ubuntu10.2
RRDTool - 1.3.1
SNMP - 5.4.1
Plugins
    PHP Network Weathermap (weathermap - v0.97a)
    SuperLinks (superlinks - v0.8)
    Real-time statistics (zond - v0.34c)
    Host Info (hostinfo - v0.2)
    Report Creator (reports - v0.3)
    Global Plugin Settings (settings - v0.5)
    Network Discovery (discovery - v0.9)
    System Title Changer (titlechanger - v0.1)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 3:26 pm 
Offline
Cacti User

Joined: Thu Nov 16, 2006 1:57 pm
Posts: 51
Location: BC, kootenays
I don't know if this counts, but i'm using cacti 0.8.6i (on windows with apache)
Is there a dataquery tab in your settings page in cacti?
your other post makes it sound like you do..
when you veiw your graph, under the graphs tab, the icon does NOT show up, correct?

Also, what version of dataquery are you trying to install?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 1:06 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
Hi,
I give the permission for nobody to csv dir. also.
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)

_________________
Quote:
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - CMD.php
Server Info - Linux 2.6.28-11-server
Web Server - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch
PHP - 5.2.6-3ubuntu4.5
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, rrdtool, snmp
MySQL - 5.0.75-0ubuntu10.2
RRDTool - 1.3.1
SNMP - 5.4.1
Plugins
    PHP Network Weathermap (weathermap - v0.97a)
    SuperLinks (superlinks - v0.8)
    Real-time statistics (zond - v0.34c)
    Host Info (hostinfo - v0.2)
    Report Creator (reports - v0.3)
    Global Plugin Settings (settings - v0.5)
    Network Discovery (discovery - v0.9)
    System Title Changer (titlechanger - v0.1)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 7:23 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 9:55 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
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 ?

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 24, 2006 2:01 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
To The Witness:
This plugin have realm id like this:
Code:
        $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...

_________________
Quote:
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - CMD.php
Server Info - Linux 2.6.28-11-server
Web Server - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch
PHP - 5.2.6-3ubuntu4.5
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, rrdtool, snmp
MySQL - 5.0.75-0ubuntu10.2
RRDTool - 1.3.1
SNMP - 5.4.1
Plugins
    PHP Network Weathermap (weathermap - v0.97a)
    SuperLinks (superlinks - v0.8)
    Real-time statistics (zond - v0.34c)
    Host Info (hostinfo - v0.2)
    Report Creator (reports - v0.3)
    Global Plugin Settings (settings - v0.5)
    Network Discovery (discovery - v0.9)
    System Title Changer (titlechanger - v0.1)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 24, 2006 2:50 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
opps wrong realm taken from code..
I took from setup.php of weathermap.
Correct one is:
Code:
        $user_auth_realm_filenames['dataquery.php'] = 33;
        $user_auth_realms[33]='View Dataqueries';

_________________
Quote:
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - CMD.php
Server Info - Linux 2.6.28-11-server
Web Server - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch
PHP - 5.2.6-3ubuntu4.5
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, rrdtool, snmp
MySQL - 5.0.75-0ubuntu10.2
RRDTool - 1.3.1
SNMP - 5.4.1
Plugins
    PHP Network Weathermap (weathermap - v0.97a)
    SuperLinks (superlinks - v0.8)
    Real-time statistics (zond - v0.34c)
    Host Info (hostinfo - v0.2)
    Report Creator (reports - v0.3)
    Global Plugin Settings (settings - v0.5)
    Network Discovery (discovery - v0.9)
    System Title Changer (titlechanger - v0.1)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 1:20 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
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);


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 2:22 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
Does anybody have an idea about my problem?

_________________
Quote:
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - CMD.php
Server Info - Linux 2.6.28-11-server
Web Server - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch
PHP - 5.2.6-3ubuntu4.5
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, rrdtool, snmp
MySQL - 5.0.75-0ubuntu10.2
RRDTool - 1.3.1
SNMP - 5.4.1
Plugins
    PHP Network Weathermap (weathermap - v0.97a)
    SuperLinks (superlinks - v0.8)
    Real-time statistics (zond - v0.34c)
    Host Info (hostinfo - v0.2)
    Report Creator (reports - v0.3)
    Global Plugin Settings (settings - v0.5)
    Network Discovery (discovery - v0.9)
    System Title Changer (titlechanger - v0.1)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 2:53 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
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);


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 6:54 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
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 :)

_________________
Quote:
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - CMD.php
Server Info - Linux 2.6.28-11-server
Web Server - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch
PHP - 5.2.6-3ubuntu4.5
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, rrdtool, snmp
MySQL - 5.0.75-0ubuntu10.2
RRDTool - 1.3.1
SNMP - 5.4.1
Plugins
    PHP Network Weathermap (weathermap - v0.97a)
    SuperLinks (superlinks - v0.8)
    Real-time statistics (zond - v0.34c)
    Host Info (hostinfo - v0.2)
    Report Creator (reports - v0.3)
    Global Plugin Settings (settings - v0.5)
    Network Discovery (discovery - v0.9)
    System Title Changer (titlechanger - v0.1)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 5:57 am 
Offline

Joined: Fri Jun 02, 2006 2:46 am
Posts: 11
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 7:28 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 21, 2006 11:19 am 
Offline

Joined: Thu Dec 21, 2006 11:13 am
Posts: 3
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 ??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group