Issues with cacti scripts

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
AutumnW
Posts: 4
Joined: Fri May 21, 2010 12:56 pm

Issues with cacti scripts

Post by AutumnW »

Hi everyone!

I am using cacti version 0.87d, installed from apt-get install cacti cacti-spine on a Linux ubuntu Karmic.

The web page and its functionalities works just fine, but i cannot make work the add_device scripts because i am getting this errors:

Warning: include(/usr/share/cacti/cli/../include/global.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 34

Warning: include(): Failed opening '/usr/share/cacti/cli/../include/global.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 34

Warning: include_once(/lib/api_automation_tools.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 35

Warning: include_once(): Failed opening '/lib/api_automation_tools.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 35

Warning: include_once(/lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 36

Warning: include_once(): Failed opening '/lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 36

Warning: include_once(/lib/api_data_source.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 37

Warning: include_once(): Failed opening '/lib/api_data_source.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 37

Warning: include_once(/lib/api_graph.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 38

Warning: include_once(): Failed opening '/lib/api_graph.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 38

Warning: include_once(/lib/snmp.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 39

Warning: include_once(): Failed opening '/lib/snmp.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 39

Warning: include_once(/lib/data_query.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 40

Warning: include_once(): Failed opening '/lib/data_query.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 40

Warning: include_once(/lib/api_device.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/add_device.php on line 41

Warning: include_once(): Failed opening '/lib/api_device.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/add_device.php on line 41

can somebody please help me? I need to add around 350 devices =(

Note: I am getting the same errors for all the scripts.

Thanks in advance!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

they seem to have moved include/global.php
If you tell us, where this file is located now in Ubuntu, we are able to tell yopu how the scripts have to be changed.
That is definitively a bug report to be sent to distro maintainers!
R.
AutumnW
Posts: 4
Joined: Fri May 21, 2010 12:56 pm

Post by AutumnW »

Hi, thanks for your answer, well the only global.php file that i found its located on this path:

/usr/share/cacti/site/include/global.php
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may add a symlink from the requested location to that file
R.
AutumnW
Posts: 4
Joined: Fri May 21, 2010 12:56 pm

Post by AutumnW »

Im kind of newbie, can you please explain me how can i do that?

P.D: I have another problem but now with the plugins because in the config.php i do not have any $plugins = array(); its this issue related with the original issue on this post?

I ask this because i dont want to do a double posting for the same issue.

Thanks in advance!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

ln -sf /usr/share/cacti/site/include/global.php /usr/share/cacti/include/global.php

It would be worth to inform the distro maintainers. They should fix the bug permanently
R.
AutumnW
Posts: 4
Joined: Fri May 21, 2010 12:56 pm

Post by AutumnW »

Hi Gandalf, i really appreciate your assistance.

Here is my report on the bug tracker http://bugs.cacti.net/view.php?id=1774 i did not find a distribution or scripts category so i have to put it on the documentation category.

Thanks Again!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

AutumnW wrote:Hi Gandalf, i really appreciate your assistance.

Here is my report on the bug tracker http://bugs.cacti.net/view.php?id=1774 i did not find a distribution or scripts category so i have to put it on the documentation category.

Thanks Again!
Sorry, but WE are NOT the distro maintainers. You won't find that bug in our tgz file! This has to go to Ubuntu, Debian or whatever distro you are using
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests