Problems with reinstall

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

Moderators: Developers, Moderators

Post Reply
mastahbates
Posts: 5
Joined: Fri Apr 15, 2016 5:26 am

Problems with reinstall

Post by mastahbates »

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?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Problems with reinstall

Post by phalek »

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.
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
mastahbates
Posts: 5
Joined: Fri Apr 15, 2016 5:26 am

Re: Problems with reinstall

Post by mastahbates »

I have other PHP applications installed on my Raspberry Pi that use mysql and they appear to be working fine?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Problems with reinstall

Post by phalek »

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
mastahbates
Posts: 5
Joined: Fri Apr 15, 2016 5:26 am

Re: Problems with reinstall

Post by mastahbates »

phalek wrote:So you have enabled error logging and checked the log ?
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?



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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Problems with reinstall

Post by phalek »

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
mastahbates
Posts: 5
Joined: Fri Apr 15, 2016 5:26 am

Re: Problems with reinstall

Post by mastahbates »

phalek wrote:There should be a line like this ( commented out ):

Code: Select all

error_log = syslog
grep error_log /etc/php5/apache2/php.ini
; 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...
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Problems with reinstall

Post by phalek »

I assume it's already taking this line:

Code: Select all

error_log = syslog
you can check with

Code: Select all

php -i | grep error_log
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.
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
mastahbates
Posts: 5
Joined: Fri Apr 15, 2016 5:26 am

Re: Problems with reinstall

Post by mastahbates »

phalek wrote:I assume it's already taking this line:

Code: Select all

error_log = syslog
you can check with

Code: Select all

php -i | grep error_log
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.

Is it a case of it will either output to a log file OR a syslog server, not both?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests