Problems with reinstall
Moderators: Developers, Moderators
-
- Posts: 5
- Joined: Fri Apr 15, 2016 5:26 am
Problems with reinstall
Hi all,
I originally had Cacti working with no problems at all; I was able to poll Cisco routers for utilisation and CPU usage and also retrieve information on the localhost. After a while though, all the information from the routers and localhost stopped and graphs were showing as "nan". I have uninstalled all instances of that Cacti installation and now I am having issues getting it installed again. I have used wget to get the tar file and extracted to a cacti folder in my root www folder. All the SQL info has been imported into my mysql installation. When I browse to my cacti website, I get the screen where I get the "Thanks for taking the time...", I click Next. I select "New install" and click Next. All the files Cacti needs and the SNMP modules all are found, I click Next and then I get a server error 500.
I have checked the log file in the Cacti install folder and it has nothing in it?
Any ideas?
I originally had Cacti working with no problems at all; I was able to poll Cisco routers for utilisation and CPU usage and also retrieve information on the localhost. After a while though, all the information from the routers and localhost stopped and graphs were showing as "nan". I have uninstalled all instances of that Cacti installation and now I am having issues getting it installed again. I have used wget to get the tar file and extracted to a cacti folder in my root www folder. All the SQL info has been imported into my mysql installation. When I browse to my cacti website, I get the screen where I get the "Thanks for taking the time...", I click Next. I select "New install" and click Next. All the files Cacti needs and the SNMP modules all are found, I click Next and then I get a server error 500.
I have checked the log file in the Cacti install folder and it has nothing in it?
Any ideas?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Problems with reinstall
It may be a missing php module ( e.g. mysql php module )
enable php error logging in your php.ini file ( /etc/php.ini ? -> error_log = syslog ) and check that for more information.
enable php error logging in your php.ini file ( /etc/php.ini ? -> error_log = syslog ) and check that for more information.
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
-
- Posts: 5
- Joined: Fri Apr 15, 2016 5:26 am
Re: Problems with reinstall
I have other PHP applications installed on my Raspberry Pi that use mysql and they appear to be working fine?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Problems with reinstall
So you have enabled error logging and checked the log ?
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
-
- Posts: 5
- Joined: Fri Apr 15, 2016 5:26 am
Re: Problems with reinstall
Forgive me but I am really green when it comes to using Linux but I have just checked the file "/etc/php5/apache2/php.ini" and there is an option "error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT". Is this what you are referring to?phalek wrote:So you have enabled error logging and checked the log ?
For your reference:
; E_ALL (Show all errors, warnings and notices including coding standards.)
; E_DEPRECATED - warn about code that will not work in future versions
; of PHP
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Problems with reinstall
There should be a line like this ( commented out ):
Code: Select all
error_log = syslog
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
-
- Posts: 5
- Joined: Fri Apr 15, 2016 5:26 am
Re: Problems with reinstall
grep error_log /etc/php5/apache2/php.iniphalek wrote:There should be a line like this ( commented out ):
Code: Select all
error_log = syslog
; server-specific log, STDERR, or a location specified by the error_log
; Set maximum length of log_errors. In error_log information about the source is
error_log = php_errors.log
error_log = syslog
; OPcache error_log file name. Empty string assumes "stderr".
;opcache.error_log=
Shame I cannot seem to locate this file either...
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Problems with reinstall
I assume it's already taking this line:
you can check with
If it's syslog, then you can check for any php errors in your /var/log/messages ( on CentOS ) file. It may be different on Ubuntu, Debian or any other Linux Distro.
Code: Select all
error_log = syslog
Code: Select all
php -i | grep error_log
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
-
- Posts: 5
- Joined: Fri Apr 15, 2016 5:26 am
Re: Problems with reinstall
phalek wrote:I assume it's already taking this line:
you can check withCode: Select all
error_log = syslog
If it's syslog, then you can check for any php errors in your /var/log/messages ( on CentOS ) file. It may be different on Ubuntu, Debian or any other Linux Distro.Code: Select all
php -i | grep error_log
Is it a case of it will either output to a log file OR a syslog server, not both?
Who is online
Users browsing this forum: No registered users and 2 guests