Hi
Sorry for the second post, will try to delete the first one
I have two problems
1 - In the Settings Screen for PATHS, all of my Paths to snmpwalk etc are listed, error - FILE NOT FOUND.
Not sure what is causing this, as of course the files are present and accounted for and will run, when I added a new host recently I could see the location / contact information so when it does it's first SNMP test....
This is for every one of my entries (other than cacti.log).
I have also just noted in my error_log for apache:
sh: /usr/local/php/bin/rrdtool: not found
Is this my poller? Anyway thought welcome
2 - None of the "rra" files are being created and my poller.php / cmd.php provides no information back again.
I can run it manually but again I have no STDOUT, it does not seem to matter which method I use, full paths, no paths.
My environment is:
Cacti 8.7a
Solaris 10 64bit - u4
Coolstack (Apache 2.2.3, PHP 5.2.0, MySQL 5.0.33)
Various other bits and pieces, please ask if you want to know more.
Best regards
Solaris 10 - Poller Problems - real one
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Mon Dec 31, 2007 6:26 am
- Location: UK
-
- Posts: 6
- Joined: Mon Dec 31, 2007 6:26 am
- Location: UK
Solaris 10 - update
Hi
I have deleted the database and essentially re-installed Cacti.
I have checked access to the database and all seems well with the user created.
I have looked in the database at the different tables and seen that the settings are correct (paths to different configuration files snmpwalk etc - however the PATH Tab still reports that it cannot find the file?)
As mentioned before the same thing has appeared in the apache error log in relation to the path for the rrdtool.
I think there is some sort of hard coded reference to /usr/local/php/bin/rrdtool but I have "grep" all the files in the cacti directory and cannot find it.
I soft linked my rrdtool from it's install directory and created / put it in the suggested directory, my error message change to sh: /usr/local/php/bin/rrdtool: cannot execute?
Note I have not put the php poller.php in the cron yet.
Many thanks
I have deleted the database and essentially re-installed Cacti.
I have checked access to the database and all seems well with the user created.
I have looked in the database at the different tables and seen that the settings are correct (paths to different configuration files snmpwalk etc - however the PATH Tab still reports that it cannot find the file?)
As mentioned before the same thing has appeared in the apache error log in relation to the path for the rrdtool.
I think there is some sort of hard coded reference to /usr/local/php/bin/rrdtool but I have "grep" all the files in the cacti directory and cannot find it.
I soft linked my rrdtool from it's install directory and created / put it in the suggested directory, my error message change to sh: /usr/local/php/bin/rrdtool: cannot execute?
Note I have not put the php poller.php in the cron yet.
Many thanks
-
- Posts: 2
- Joined: Thu Jan 03, 2008 12:38 pm
- Location: UK
Error: File not found
Hi
I'm running Ubuntu with Apache2, MySQL, PHP and got the [Error: File not found] error.
I'm running Cacti on a Fasthosts server which is administrered by 'Matrix'. The standard Apache templates used by Matrix include a 'open_basedir' base directive which I have had to entend to include /usr/bin
On my system the file:
/etc/apache2/sites-enabled/domain.co.uk
contains the line
php_admin_value open_basedir /tmp:/home/default/domain.co.uk:/usr/share:/etc/cacti:/usr/bin
which I amended to add the :/usr/bin on the end.
Hey presto - Files Found.
I don't know if this translates to Solaris very well but its possible.
Regards
Nick
I'm running Ubuntu with Apache2, MySQL, PHP and got the [Error: File not found] error.
I'm running Cacti on a Fasthosts server which is administrered by 'Matrix'. The standard Apache templates used by Matrix include a 'open_basedir' base directive which I have had to entend to include /usr/bin
On my system the file:
/etc/apache2/sites-enabled/domain.co.uk
contains the line
php_admin_value open_basedir /tmp:/home/default/domain.co.uk:/usr/share:/etc/cacti:/usr/bin
which I amended to add the :/usr/bin on the end.
Hey presto - Files Found.
I don't know if this translates to Solaris very well but its possible.
Regards
Nick
-
- Posts: 2
- Joined: Thu Jan 03, 2008 12:38 pm
- Location: UK
Unable to create socket
Just solved another one!
The same solution works for
Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 148
add /var/run to the end of the line as well!
php_admin_value open_basedir /tmp:/home/default/domain.co.uk:/usr/share:/etc/cacti:/usr/bin:/var/run
I'm on a roll!
Nick
The same solution works for
Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 148
add /var/run to the end of the line as well!
php_admin_value open_basedir /tmp:/home/default/domain.co.uk:/usr/share:/etc/cacti:/usr/bin:/var/run
I'm on a roll!
Nick
-
- Posts: 6
- Joined: Mon Dec 31, 2007 6:26 am
- Location: UK
Solaris 10 - Problem Solved
Hi
A collegue and I spent some time today on the problem and have fixed it.
Feeling quite chuffed, however nothing was particularly wrong if you know what you are doing.
I have this working now:
VMWare ESX 3.0.1 running a:
Solaris 10 x86 u4 patched up
Cooltools version 1.2
The latest versions of the packages suggested by the solaris 9 guide (thanks)
Followed the Solaris 9 guide but with my set-up it had naturally be adapted.
Firstly the "Error: File not found" problem could have been corrected using the above method to allow php to step out of the working directory, or (as this is on an internal network) I just switch safe_mode off in the php.ini configuration file. It is switched on by default in this cooltools installation
Second to correct the rrd files not being created was a little more difficult but another forum pointed me in the right direction.
Essentially when running php from the command line it looks for a different php.ini file located in php5/etc, may sound strange as the one Apache points to is php5/lib.
I had to comment out some of the extensions I had loaded for the Apache configuration (otherwise they cause a Segmentation Fault (core dump)). Thus I was left with snmp.so and mysql.so.
I could check that the modules where loaded by issuing the command (from the cli) "php -i | grep mysql" (thanks other forum post).
Entry in the cron was as specified (made sure I read the .profile with the Paths etc) and posted the standardout and standarderror to log files.
I have to note however - I was running the php poller.php from the cli but this did not seem to create the rrd files, or in the output it does not give any information relating to the rrd files.
I was only when it was started in the cron that the rrd files were created.
Anyway have added a number of hosts and all seems good at the moment, trying to get snmpd to work on some hosts is a bit painful however.
Anyway glad to have got this one on Solaris 10, if I could not get it to work by end of tomorrow I was going to switch to Linux.
Thanks to all for your help
Best regards
A collegue and I spent some time today on the problem and have fixed it.
Feeling quite chuffed, however nothing was particularly wrong if you know what you are doing.
I have this working now:
VMWare ESX 3.0.1 running a:
Solaris 10 x86 u4 patched up
Cooltools version 1.2
The latest versions of the packages suggested by the solaris 9 guide (thanks)
Followed the Solaris 9 guide but with my set-up it had naturally be adapted.
Firstly the "Error: File not found" problem could have been corrected using the above method to allow php to step out of the working directory, or (as this is on an internal network) I just switch safe_mode off in the php.ini configuration file. It is switched on by default in this cooltools installation
Second to correct the rrd files not being created was a little more difficult but another forum pointed me in the right direction.
Essentially when running php from the command line it looks for a different php.ini file located in php5/etc, may sound strange as the one Apache points to is php5/lib.
I had to comment out some of the extensions I had loaded for the Apache configuration (otherwise they cause a Segmentation Fault (core dump)). Thus I was left with snmp.so and mysql.so.
I could check that the modules where loaded by issuing the command (from the cli) "php -i | grep mysql" (thanks other forum post).
Entry in the cron was as specified (made sure I read the .profile with the Paths etc) and posted the standardout and standarderror to log files.
I have to note however - I was running the php poller.php from the cli but this did not seem to create the rrd files, or in the output it does not give any information relating to the rrd files.
I was only when it was started in the cron that the rrd files were created.
Anyway have added a number of hosts and all seems good at the moment, trying to get snmpd to work on some hosts is a bit painful however.
Anyway glad to have got this one on Solaris 10, if I could not get it to work by end of tomorrow I was going to switch to Linux.
Thanks to all for your help
Best regards
Who is online
Users browsing this forum: No registered users and 3 guests