Newbi with Cacti
Moderators: Developers, Moderators
Newbi with Cacti
Hi !
i need help ,
i installed cactiEZ and started monitoring devices .
now i have tried upgrading to PIA 2.8 but since then i have my old plugins in "disable" .
i tried following the PIA upgrade instructions but no luck .
* before i did the upgrade i have backup'ed the old /var/www/html/ of the cacti .
here is a screen shot of what i get :
i need help ,
i installed cactiEZ and started monitoring devices .
now i have tried upgrading to PIA 2.8 but since then i have my old plugins in "disable" .
i tried following the PIA upgrade instructions but no luck .
* before i did the upgrade i have backup'ed the old /var/www/html/ of the cacti .
here is a screen shot of what i get :
- Attachments
-
- ScreenHunter_10 Feb. 14 17.24.gif (55.62 KiB) Viewed 3580 times
Spring Convention
Re: Newbi with Cacti
ok so one thing is fixed -
i have mistakingley marked my plugins as // which disables them . [ in /var/www/html/include/config.php ] , just remove the // and they become active .
/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';
//$plugins[] = 'aggregate';
so now they are active , but i get the error :
Plugin Management (Cacti Version: 0.8.7c, Plugin Architecture Version: 2.2)
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/html/plugins.php on line 626
please help
i have mistakingley marked my plugins as // which disables them . [ in /var/www/html/include/config.php ] , just remove the // and they become active .
/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';
//$plugins[] = 'aggregate';
so now they are active , but i get the error :
Plugin Management (Cacti Version: 0.8.7c, Plugin Architecture Version: 2.2)
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/html/plugins.php on line 626
please help
Spring Convention
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Newbi with Cacti
well, actually you shouldn't add/use the $plugins array any more. PIA >2.8 does support enablind the PIA 1.x plugins using the web-interface. The two broken images of your screenshot are links to Install and Enable the plugin.
As the images are missing it looks like your Cacti URL is not setup properly. Check your global and/or config.php for something like:
If it isn't there, add it and change it according to your Cacti URL.
As the images are missing it looks like your Cacti URL is not setup properly. Check your global and/or config.php for something like:
Code: Select all
$url_path = "/cacti/";
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Newbi with Cacti
well thanks for replying - this is what i have in config.php : $url_path = "/";
my folder seems to be : /var/www/html/ and if i understand correctly i need to write here the folder of the installation , and i cant find any "cacti" folder .
am i wrong in putting this like that : "/" ?
[root@ggg include]# cat global.php | egrep -i url_path
$config['url_path'] = '/';
[root@ggg include]# cat config.php | egrep -i url_path
$url_path = "/";
[root@ggg include]# cat config.php
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2007 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDTool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "xxx";
$database_password = "xxx";
$database_port = "3306";
/* load up old style plugins here */
$plugins = array();
$plugins[] = 'thold';
$plugins[] = 'aggregate';
$plugins[] = 'boost';
$plugins[] = 'dataquery';
$plugins[] = 'discovery';
$plugins[] = 'errorimage';
$plugins[] = 'flowview';
$plugins[] = 'hostinfo';
$plugins[] = 'index.php';
$plugins[] = 'loginmod';
$plugins[] = 'mactrack';
$plugins[] = 'monitor';
$plugins[] = 'ntop';
$plugins[] = 'realtime';
$plugins[] = 'reportit';
$plugins[] = 'routerconfigs';
$plugins[] = 'settings';
$plugins[] = 'ssl';
$plugins[] = 'syslog';
$plugins[] = 'tools';
$plugins[] = 'update';
$plugins[] = 'weathermap';
$plugins[] = 'wmi';
$url_path = "/";
/* Default session name - Session name must contain alpha characters */
$cacti_session_name = "CactiEZ";
include_once(dirname(__FILE__) . "/global.php");
my folder seems to be : /var/www/html/ and if i understand correctly i need to write here the folder of the installation , and i cant find any "cacti" folder .
am i wrong in putting this like that : "/" ?
[root@ggg include]# cat global.php | egrep -i url_path
$config['url_path'] = '/';
[root@ggg include]# cat config.php | egrep -i url_path
$url_path = "/";
[root@ggg include]# cat config.php
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2007 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDTool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "xxx";
$database_password = "xxx";
$database_port = "3306";
/* load up old style plugins here */
$plugins = array();
$plugins[] = 'thold';
$plugins[] = 'aggregate';
$plugins[] = 'boost';
$plugins[] = 'dataquery';
$plugins[] = 'discovery';
$plugins[] = 'errorimage';
$plugins[] = 'flowview';
$plugins[] = 'hostinfo';
$plugins[] = 'index.php';
$plugins[] = 'loginmod';
$plugins[] = 'mactrack';
$plugins[] = 'monitor';
$plugins[] = 'ntop';
$plugins[] = 'realtime';
$plugins[] = 'reportit';
$plugins[] = 'routerconfigs';
$plugins[] = 'settings';
$plugins[] = 'ssl';
$plugins[] = 'syslog';
$plugins[] = 'tools';
$plugins[] = 'update';
$plugins[] = 'weathermap';
$plugins[] = 'wmi';
$url_path = "/";
/* Default session name - Session name must contain alpha characters */
$cacti_session_name = "CactiEZ";
include_once(dirname(__FILE__) . "/global.php");
Last edited by mitra on Tue Feb 15, 2011 10:47 am, edited 1 time in total.
Spring Convention
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Newbi with Cacti
that's fine, just make sure it's not overwritten again in global.php ... best thing is to check the image url to where it thinks the images should be.
Nevertheless, the links underneath should still work, so pressing the first broken image to the left should install the plugin. The second one to the right should enable it.
Nevertheless, the links underneath should still work, so pressing the first broken image to the left should install the plugin. The second one to the right should enable it.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Newbi with Cacti
for the pictures - Thank you very much
i saw *** the link on the missing images is : https://x.x.x.x/images/install_icon_disabled.png
so i looked again in the cacti-plugin-0.8.7g-PA-v2.8.tar.gz and in the /var/www/html/images/ and they were missing there from some resone ...
about the file -
ok , and is it ok that in global.php its : '/'; and in config.php its : "/"; ?
[root@ggg include]# cat global.php | egrep -i url_path
$config['url_path'] = '/';
[root@ggg include]# cat config.php | egrep -i url_path
$url_path = "/";
and lastly about this error - i would thank you if you could help directing me
i saw *** the link on the missing images is : https://x.x.x.x/images/install_icon_disabled.png
so i looked again in the cacti-plugin-0.8.7g-PA-v2.8.tar.gz and in the /var/www/html/images/ and they were missing there from some resone ...
about the file -
ok , and is it ok that in global.php its : '/'; and in config.php its : "/"; ?
[root@ggg include]# cat global.php | egrep -i url_path
$config['url_path'] = '/';
[root@ggg include]# cat config.php | egrep -i url_path
$url_path = "/";
and lastly about this error - i would thank you if you could help directing me
- Attachments
-
- ScreenHunter_16 Feb. 15 18.09.gif (33.06 KiB) Viewed 3557 times
Spring Convention
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Newbi with Cacti
The settings in config.php and global.php are fine then. ' and " are basically the same in PHP ( unless you are a PHP programmer, then there's of course a slight difference ... )
You should now try to comment all the $plugin code within your config.php file and enable them through the web-interface.
Of course you probably should do a backup unless it's a test system
You should now try to comment all the $plugin code within your config.php file and enable them through the web-interface.
Of course you probably should do a backup unless it's a test system
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Newbi with Cacti
Thanks !
And about the error in the picture ?? : any directions ?
Thanks alot !
i mean this one :
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/html/plugins.php on line 626
And about the error in the picture ?? : any directions ?
Thanks alot !
i mean this one :
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/html/plugins.php on line 626
Spring Convention
Who is online
Users browsing this forum: No registered users and 0 guests