PHP problem

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

Moderators: Developers, Moderators

Post Reply
bobobobo
Posts: 4
Joined: Mon Aug 30, 2021 3:44 am

PHP problem

Post by bobobobo »

Hi!

So, I'm having some issues with the installation, even though thing are working more or less as expected. Here is how the log looks:

30-08-2021 10:55:09 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:09 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:09 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:09 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:09 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:09 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:08 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:08 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:08 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:08 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:03 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:03 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:03 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:03 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:02 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:02 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0
30-08-2021 10:55:02 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
30-08-2021 10:55:02 - ERROR PHP CORE_WARNING: Module 'snmp' already loaded in file: Unknown on line: 0

I am also getting holes in my graphs, like no data was getting in (see attached image).

There are also other errors in the log:

30-08-2021 10:55:02 - CMDPHP WARNING: cmd.php poller has run over its polling interval and therefore is ending
30-08-2021 10:55:01 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
30-08-2021 10:55:01 - POLLER: Poller[Main Poller] PID[26959] WARNING: Poller Output Table not Empty. Issues: 4, DS[switch1- Errors - gi4] Graphs[switch1- Errors - Abbvie L2 Ljubljana]
30-08-2021 10:55:01 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
30-08-2021 10:55:01 - POLLER: Poller[Main Poller] PID[26959] WARNING: There are 1 processes detected as overrunning a polling cycle, please investigate
30-08-2021 10:55:00 - SYSTEM STATS: Time:299.4556 Method:cmd.php Processes:1 Threads:1 Hosts:102 HostsPerProcess:102 DataSources:2696 RRDsProcessed:858
30-08-2021 10:55:00 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyPollerRuntimeExceeding (CACTI-MIB), severity: high
30-08-2021 10:55:00 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
30-08-2021 10:55:00 - POLLER: Poller[Main Poller] PID[26681] Maximum runtime of 298 seconds exceeded. Exiting.

Thanks in advance!

cacti version 1.2.18 running on debian10
Attachments
graph_image (1).png
graph_image (1).png (21.83 KiB) Viewed 2287 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: PHP problem

Post by cigamit »

30-08-2021 10:55:00 - SYSTEM STATS: Time:299.4556 Method:cmd.php Processes:1 Threads:1 Hosts:102 HostsPerProcess:102 DataSources:2696 RRDsProcessed:858
You are running a single cmd.php process. You need to increase that in the Data Collection section of Cacti.
bobobobo
Posts: 4
Joined: Mon Aug 30, 2021 3:44 am

Re: PHP problem

Post by bobobobo »

i have since moved to spine, but the issue is still present...
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: PHP problem

Post by cigamit »

Have you increased the number of threads and processes for spine? If you are still running 1 / 1 you are still going to have this problem.
bobobobo
Posts: 4
Joined: Mon Aug 30, 2021 3:44 am

Re: PHP problem

Post by bobobobo »

i had to experiment a bit, but it seems that i hit the nail on the head now - the graphs have been gap-free for the past few days. still getting the log message though...
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: PHP problem

Post by cigamit »

The log message actually has nothing to do with Cacti. Its a PHP Startup error telling you that you are trying to load the same PHP module twice. Probably either because you are loading in 2 different conf files.
bobobobo
Posts: 4
Joined: Mon Aug 30, 2021 3:44 am

Re: PHP problem

Post by bobobobo »

is that a problem? how can i track it down?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest