Hi there,
I'm new to using Cacti and have installed this via the most recent windows installer package. I'm having issues with no graphing data showing or a test device I have setup. I have tried many possible solutions to no avail and read the Post Install guide along with the FAQ's. This is the error messages i'm getting in 'php_errors' log file;
[04-Feb-2011 15:40:30] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\cacti\lib\database.php on line 226
[04-Feb-2011 15:40:30] PHP Fatal error: Call to a member function close() on a non-object in C:\inetpub\wwwroot\cacti\lib\database.php on line 231
[04-Feb-2011 15:45:30] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\cacti\lib\database.php on line 226
[04-Feb-2011 15:45:30] PHP Fatal error: Call to a member function close() on a non-object in C:\inetpub\wwwroot\cacti\lib\database.php on line 231
The timing are in relations to my poller but I can't for the life of me think what is causing the issue. I ran the graph debug and results returned fine;
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="IT Support Server - not used - Processes" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="processes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/inetpub/wwwroot/cacti/rra/4/13.rrd":proc:AVERAGE \
AREA:a#F51D30FF:"Running Processes" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" RRDTool Says:
OK
Hopefully someone can help me, many thanks
PHP error log in relation poller
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Fri Feb 04, 2011 10:51 am
Re: PHP error log in relation poller
forgot to add....
Operating System - Windows Server 2008 R2
Web Server - IIS 7
-Cacti 0.8.7g
-Spine 0.8.7g
-PIA 2.8
-MySQL 5.1.50
-PHP 5.2.14
-Net-SNMP 5.5.0.2
-RRDTool 1.2.30
-GetIF 2.3.1
Operating System - Windows Server 2008 R2
Web Server - IIS 7
-Cacti 0.8.7g
-Spine 0.8.7g
-PIA 2.8
-MySQL 5.1.50
-PHP 5.2.14
-Net-SNMP 5.5.0.2
-RRDTool 1.2.30
-GetIF 2.3.1
Re: PHP error log in relation poller
PIA 2.9 is the latest which contains all the 0.8.7g patches.
Is this a fresh install of cacti?
Php -m show any errors?
The cacti technical support page show any errors?
Cacti.log show any errors?
Is this a fresh install of cacti?
Php -m show any errors?
The cacti technical support page show any errors?
Cacti.log show any errors?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Fri Feb 04, 2011 10:51 am
Re: PHP error log in relation poller
So you advise upgrading to 2.9 may resolve this?
I can confirm this is a fresh install of Cacti. When I run the php -m command from the command line it returns no errors.
I checked the Cacti log and their is multiple warning messages that relate to a SNMP timeout (which is another issue I need to resolve) but i don't think this is in relation to the graph data not showing? as at the moment I have only setup Cacti 'downed host detection' to ping the host device. I have attached the Cacti log. I have checked the technical support page and I can't identify any areas on this page. I have attached this anyway. (had to attach as text as HTML is blocked)
Would you advise using Spine to be set as the default poller or cmd.php?
As you can tell I have very limited knowledge of this software. Only knowledge i have gained is from reading the forums, FAQ's and user guides.
I can confirm this is a fresh install of Cacti. When I run the php -m command from the command line it returns no errors.
I checked the Cacti log and their is multiple warning messages that relate to a SNMP timeout (which is another issue I need to resolve) but i don't think this is in relation to the graph data not showing? as at the moment I have only setup Cacti 'downed host detection' to ping the host device. I have attached the Cacti log. I have checked the technical support page and I can't identify any areas on this page. I have attached this anyway. (had to attach as text as HTML is blocked)
Would you advise using Spine to be set as the default poller or cmd.php?
As you can tell I have very limited knowledge of this software. Only knowledge i have gained is from reading the forums, FAQ's and user guides.
- Attachments
-
- cacti.txt
- (413.65 KiB) Downloaded 158 times
-
- Console - Utilities - Technical Support.txt
- (18.75 KiB) Downloaded 113 times
Re: PHP error log in relation poller
PIA 2.9 contains the following patches: http://www.cacti.net/download_patches.phpPhill_rutland wrote:So you advise upgrading to 2.9 may resolve this?
For new installations, cmd.php is far less problematic.Phill_rutland wrote:Would you advise using Spine to be set as the default poller or cmd.php?
Have you read through the debugging guide yet? http://docs.cacti.net/manual:087:4_help.2_debugging
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Fri Feb 04, 2011 10:51 am
Re: PHP error log in relation poller
Hi, I will try the debugging process and let you know.
The web link that refers to the latest patch releases however I thought these would have been included in the newest release which I did download -1.95 2010-09-23 , the most recent patches refer to a date in September?
The web link that refers to the latest patch releases however I thought these would have been included in the newest release which I did download -1.95 2010-09-23 , the most recent patches refer to a date in September?
Re: PHP error log in relation poller
Nope the 1.95 installer doesn't contain the latest patches. I'm not inclined to update it as there is talk about 0.8.7h being released soon™ and it takes me a considerable amount of time/effort; all in my free time.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 5 guests