PIA 2.0 issues - HELP !
Moderators: Developers, Moderators
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
PIA 2.0 issues - HELP !
HELP !!!
I managed to get the PIA working on 0.8.7b, but now have
CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1064', SQL:"REPLACE INTO settings (name, value) VALUES ('url_path', 'Cacti\')'
In the logs every 10 seconds - I have set the url_path variable in plugins.php as suggested, and everything seems to work, with the exception of this error.
Any ideas ?
I managed to get the PIA working on 0.8.7b, but now have
CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1064', SQL:"REPLACE INTO settings (name, value) VALUES ('url_path', 'Cacti\')'
In the logs every 10 seconds - I have set the url_path variable in plugins.php as suggested, and everything seems to work, with the exception of this error.
Any ideas ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Re: PIA 2.0 issues - HELP !
How did you modify include/plugins.php ?mcutting wrote:I have set the url_path variable in plugins.php as suggested, and everything seems to work, with the exception of this error.
[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]
[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]
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Solved this one myself - comment out the following lines in include\plugins.php
This seems to have resolved it - not sure if this breaks anything else - everything seems to work as it should.
Hope this may help someone else.
Code: Select all
if (isset($_SERVER['DOCUMENT_ROOT']) && isset($_SERVER['REMOTE_ADDR'])) {
$config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), strlen(__FILE__) - strlen($_SERVER['DOCUMENT_ROOT']) - strlen('include/plugins.php'));
db_execute("REPLACE INTO settings (name, value) VALUES ('url_path', '" . $config['url_path'] . "')");
} else {
$config['url_path'] = db_fetch_cell("SELECT value FROM settings WHERE name = 'url_path'");
}
Hope this may help someone else.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
indeed, $url_path is being reported incorrectly. in my case it cut's away first three symbolsmcutting wrote:Solved this one myself - comment out the following lines in include\plugins.php
This seems to have resolved it - not sure if this breaks anything else - everything seems to work as it should.Code: Select all
if (isset($_SERVER['DOCUMENT_ROOT']) && isset($_SERVER['REMOTE_ADDR'])) { $config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), strlen(__FILE__) - strlen($_SERVER['DOCUMENT_ROOT']) - strlen('include/plugins.php')); db_execute("REPLACE INTO settings (name, value) VALUES ('url_path', '" . $config['url_path'] . "')"); } else { $config['url_path'] = db_fetch_cell("SELECT value FROM settings WHERE name = 'url_path'"); }
Hope this may help someone else.
instead of"cti/"
"/cacti/"
hr... any idea on this one?
I applied the sql file...
Code: Select all
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
I got that, did not find the missing ")" (if that is even what the problem is) so I just rolled back a version until I have time to look at it.sepp wrote:hr... any idea on this one?
I applied the sql file...Code: Select all
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
I got around to looking at this and used the pre-patched files and did not have this issue. I did have to change the path to adodb but now up and running fine on 0.8.7b and PIA 2.0sepp wrote:hr... any idea on this one?
I applied the sql file...Code: Select all
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
hi, still I have the problem
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
I wonder where this function is defined? I commented the call to the function out in each file, cacti was complaining. of course it didn't help. But if I know where the function should be defined....
Am I the only one with this problem? I tried several ways of getting my nice plugins back, but nothing works... drives me crazy
thanks,
//seb
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
I wonder where this function is defined? I commented the call to the function out in each file, cacti was complaining. of course it didn't help. But if I know where the function should be defined....
Am I the only one with this problem? I tried several ways of getting my nice plugins back, but nothing works... drives me crazy
thanks,
//seb
No, you are not the only onesepp wrote:hi, still I have the problem
Am I the only one with this problem?
//seb
I have also the same problem and haven't found any issue.
I search and did not find anything else yet.
Have you got a solution for this problem?
I have used the http://cactiusers.org/downloads/cacti-p ... rch.tar.gz
on Cacti Version 0.8.7b.
My OS is ubuntu gutsy.
Who is online
Users browsing this forum: No registered users and 0 guests