Update from 0.8.6j to 0.8.7a

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

Moderators: Developers, Moderators

Post Reply
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Update from 0.8.6j to 0.8.7a

Post by lion_han »

After a upgrade to 0.8.7a, schedules of loading of channels are not drawn. In a file cacti-error.log the mistake:
[Fri Feb 8 17:46:14 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
is given. Somebody can help me?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is a home-made set of Templates?
Reinhard
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

gandalf wrote:This is a home-made set of Templates?
Reinhard
no, thats standart templates
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please give us more information. When does this occur? More lines of cacti.log output and the like
Reinhard
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

cacti.log
02/29/2008 04:37:08 PM - SYSTEM STATS: Time:6.3267 Method:cmd.php Processes:1 Threads:N/A Hosts:7 HostsPerProcess:7 DataSources:47 RRDsProcessed:25
02/29/2008 04:37:07 PM - POLLER: Poller[0] WARNING: Poller[0] Host[8] Ping Time was not numeric
02/29/2008 04:37:07 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:07 PM - POLLER: Poller[0] WARNING: Poller[0] Host[6] Ping Time was not numeric
02/29/2008 04:37:06 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:05 PM - POLLER: Poller[0] WARNING: Poller[0] Host[5] Ping Time was not numeric
02/29/2008 04:37:05 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:03 PM - POLLER: Poller[0] WARNING: Poller[0] Host[3] Ping Time was not numeric
02/29/2008 04:37:03 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:02 PM - POLLER: Poller[0] WARNING: Poller[0] Host[2] Ping Time was not numeric
02/29/2008 04:37:02 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:02 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 88741 seconds have passed since the last poll!
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

cacti-error.log

[Fri Feb 29 16:37:13 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
[Fri Feb 29 16:37:13 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
[Fri Feb 29 16:37:13 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
[Fri Feb 29 16:37:13 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
[Fri Feb 29 16:37:13 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
[Fri Feb 29 16:37:13 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

lion_han wrote:cacti.log
02/29/2008 04:37:08 PM - SYSTEM STATS: Time:6.3267 Method:cmd.php Processes:1 Threads:N/A Hosts:7 HostsPerProcess:7 DataSources:47 RRDsProcessed:25
02/29/2008 04:37:07 PM - POLLER: Poller[0] WARNING: Poller[0] Host[8] Ping Time was not numeric
02/29/2008 04:37:07 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:07 PM - POLLER: Poller[0] WARNING: Poller[0] Host[6] Ping Time was not numeric
02/29/2008 04:37:06 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:05 PM - POLLER: Poller[0] WARNING: Poller[0] Host[5] Ping Time was not numeric
02/29/2008 04:37:05 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:03 PM - POLLER: Poller[0] WARNING: Poller[0] Host[3] Ping Time was not numeric
02/29/2008 04:37:03 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:02 PM - POLLER: Poller[0] WARNING: Poller[0] Host[2] Ping Time was not numeric
02/29/2008 04:37:02 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
02/29/2008 04:37:02 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 88741 seconds have passed since the last poll!
Which "Downed Host Detection" is applied to those hosts?
Reinhard
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

"Downed Device Detection" - "Ping and Snmp"
Attachments
cacti.JPG
cacti.JPG (35.15 KiB) Viewed 4757 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

which operating system are you running ?

In the mean time, can you change it to "SNMP only"
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

Hi
Fedora Core 4
I tried to put "SNMP only", but nothing turns out...
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That division by zero error message tells me that something is definately hosed with your install. It would look like the poller_interval may not be set. Are you sure you completely upgraded. Maybe you missed global_settings.php.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

I tried to establish other versions 0.8.7, 0.8.7a, 7b, but in all cases gives out an identical mistake
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests