Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 28, 2017 5:29 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: Thu Nov 16, 2006 3:22 am 
Offline
Cacti User

Joined: Tue Apr 05, 2005 9:52 am
Posts: 367
Location: Munich, Germany
upss...who have the wrong function found.

The error message is created by the plugin killspike/removespike
my setup.php looks like this:

....
Code:
....
function killspike_draw_navigation_text ($nav) {
        $nav["killspike.php:"] = array("title" => "killspike", "mapping" => "graph_view.php:,?,graph.php:view", "level" => "3");
return $nav;
}


The last line "return...." is new.
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 4:12 pm 
Offline
Cacti User

Joined: Thu Nov 16, 2006 1:57 pm
Posts: 51
Location: BC, kootenays
I have the same error (Notice: Undefined index: data in C:\Inetpub\wwwroot\cacti\plugins\dataquery\view\queryview.php on line 61) etc ...
A clue for you guys, my apache error log says that it cannot find the file C\:/inetpub\wwroot\... etc.. (rrd graph of queried item)
Notice the C\
Now I have no clue where to find what would have C\
I did a text search in http.conf, and through all the cacti folders.. nothing found.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 4:14 pm 
Offline
Cacti User

Joined: Thu Nov 16, 2006 1:57 pm
Posts: 51
Location: BC, kootenays
Sorry, forgot to mention, I don't have killspike, so the above mention of the funtion requireing the return does not apply. My functions.php does not contain anything about killspike.

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 7:20 pm 
Offline
Cacti User

Joined: Thu Nov 16, 2006 1:57 pm
Posts: 51
Location: BC, kootenays
Hey blackakashi, and anyone else with the line 61 error,
look for a line in class_cactiquery.php (search) that goes like

str_replace(":", "\:", $data_source_path);

And replace the "\:" with just ":"

That is what fixed me up.

Good luck!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 4:55 am 
Offline

Joined: Mon Feb 13, 2006 7:51 am
Posts: 11
Thanks a lot !!! it works :D
Sweeeeeeeeeeeeet!!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 6:33 am 
Offline
Cacti User

Joined: Fri Aug 18, 2006 11:22 am
Posts: 103
Location: MSK, RU
thank you for another handy plugin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 6:37 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
where can ı download?
I tray to download from cactiusers.org but unsuccessful

_________________
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 17, 2006 7:33 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
hi,
finally i can downloaded.
But after installation and changing permissions, i go to settings ,enable csv, then I give permission to admin to view dataqueries.
Then I can see nothing?
Nothing changes in my cacti..
Why?

_________________
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: Plugin not working on windows
PostPosted: Sun Nov 19, 2006 1:37 pm 
Offline

Joined: Wed Nov 01, 2006 5:39 am
Posts: 6
Hello This Plugin not working on windows :
error is :
Notice: Undefined index: data in c:\Inetpub\wwwroot\cacti\plugins\dataquery\view\queryview.php on line 61
Query for Datasource: '
Thanks


Top
 Profile  
 
 Post subject: Re: Plugin not working on windows
PostPosted: Mon Nov 20, 2006 4:43 am 
Offline
Cacti User

Joined: Fri Aug 18, 2006 11:22 am
Posts: 103
Location: MSK, RU
fonseca wrote:
Hello This Plugin not working on windows :
error is :
Notice: Undefined index: data in c:\Inetpub\wwwroot\cacti\plugins\dataquery\view\queryview.php on line 61
Query for Datasource: '
Thanks


Ahuber wrote:
Hey blackakashi, and anyone else with the line 61 error,
look for a line in class_cactiquery.php (search) that goes like

str_replace(":", "\:", $data_source_path);

And replace the "\:" with just ":"

That is what fixed me up.

Good luck!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 10:31 am 
Offline
Cacti Pro User
User avatar

Joined: Wed Apr 09, 2003 2:17 am
Posts: 710
Location: Izmir/Turkey
TFC wrote:
hi,
finally i can downloaded.
But after installation and changing permissions, i go to settings ,enable csv, then I give permission to admin to view dataqueries.
Then I can see nothing?
Nothing changes in my cacti..
Why?

Can anybody help me?

_________________
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 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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 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 1 guest


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