Cacti / plugin_mikrotik

Mikrotik Plugin for Cacti
GNU General Public License v2.0
60 stars 24 forks source link

Maximum runtime of 298 seconds exceeded. Exiting. With only 1 mikrotik device. #72

Open MegaAndrey opened 1 year ago

MegaAndrey commented 1 year ago

PHP v8.1, spine 1.2.24, cacti 1.2.24

So log file is:

2023-03-09 13:25:33 - SYSTEM MIKROTIK STATS: Time:33.07 Processes:10 Hosts:1 Interfaces:47 Queues:0 Users:0 Trees:0 Waps:0 Wreg:0 2023-03-09 13:25:00 - SYSTEM MAINT STATS: Time:0.01 2023-03-09 13:24:59 - SYSTEM STATS: Time:298.5659 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:34 RRDsProcessed:0 2023-03-09 13:24:59 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email. 2023-03-09 13:24:59 - POLLER: Poller[Main Poller] PID[7115] Maximum runtime of 298 seconds exceeded. Exiting. 2023-03-09 13:25:33 - SYSTEM MIKROTIK STATS: Time:33.07 Processes:10 Hosts:1 Interfaces:47 Queues:0 Users:0 Trees:0 Waps:0 Wreg:0 2023-03-09 13:25:00 - SYSTEM MAINT STATS: Time:0.01 2023-03-09 13:24:59 - SYSTEM STATS: Time:298.5659 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:34 RRDsProcessed:0 2023-03-09 13:24:59 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email. 2023-03-09 13:24:59 - POLLER: Poller[Main Poller] PID[7115] Maximum runtime of 298 seconds exceeded. Exiting.

Only one mikrotik with this settings: image

It looks like it freezes at some stage and graphs are not recording.

TheWitness commented 1 year ago

Run spine in debug mode. The reason that the poller is not finishing is due to spine likely not working as expected.

./spine -R -V 3 -S
MegaAndrey commented 1 year ago
root@cacti:/usr/local/spine/bin# ./spine -R -V 3 -S
SPINE: Using spine config file [../etc/spine.conf]
Version 1.2.24 starting
Total[0.2005] Spine will support multithread device polling.
Total[0.2010] DEBUG: Initial Value of Available Threads is 1 (0 outstanding)
Total[0.2015] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.2034] Device[0] HT[1] Total Time: 0.00056 Seconds
Total[0.2119] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.2145] Device[1] HT[1] NOTE: There are '5' Polling Items for this Device
Total[0.2502] Device[1] HT[1] DS[1] TT[35.70] SCRIPT: perl /var/www/html/cacti/scripts/unix_processes.pl, output: 234
Total[0.2611] Device[1] HT[1] DS[2] TT[10.82] SCRIPT: perl /var/www/html/cacti/scripts/loadavg_multi.pl, output: 1min:0.03 5min:0.04 10min:0.01
Total[0.2693] Device[1] HT[1] DS[3] TT[8.14] SCRIPT: perl /var/www/html/cacti/scripts/unix_users.pl '', output: 1
Total[0.2778] Device[1] HT[1] DS[4] TT[8.42] SCRIPT: perl /var/www/html/cacti/scripts/linux_memory.pl 'MemFree:', output: 2117168
Total[0.2856] Device[1] HT[1] DS[5] TT[7.81] SCRIPT: perl /var/www/html/cacti/scripts/linux_memory.pl 'SwapFree:', output: 0
Total[0.2857] Device[1] HT[1] Total Time: 0.073 Seconds
Total[0.2930] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.2945] Device[4] INFO: SNMP Device '192.168.173.1:161' has a timeout of 500000 (500), with 3 retries
Total[0.2999] Device[4] Checking for System Information Update
Total[0.2999] Device[4] Updating Full System Information Table
Total[0.3061] Device[4] HT[1] NOTE: There are '29' Polling Items for this Device
Total[0.3110] Device[4] HT[1] DS[66] TT[4.91] SS[0] SERVER: /var/www/html/cacti/scripts/ss_hstats.php ss_hstats '4' polling_time, output: 0
Total[0.3114] Device[4] HT[1] DS[67] TT[0.34] SS[0] SERVER: /var/www/html/cacti/scripts/ss_hstats.php ss_hstats '4' uptime, output: 0
Total[0.3278] Device[4] HT[1] DS[68] TT[16.34] SCRIPT: perl /var/www/html/cacti/scripts/ping.pl '', output: U
Total[0.3704] Device[4] HT[1] DS[69] TT[42.49] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_snmpget.php ss_mikrotik_snmpget '4' '.1.3.6.1.4.1.9.9.150.1.1.1.0', output: 12
Total[0.3728] Device[4] HT[1] DS[70] TT[2.40] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_snmpget.php ss_mikrotik_snmpget '4' '1.3.6.1.2.1.4.24.3.0', output: 184
Total[0.4542] Device[4] HT[1] DS[71] TT[81.34] SS[0] SERVER: /var/www/html/cacti/scripts/ss_count_oids.php ss_count_oids '4' '.1.3.6.1.4.1.14988.1.1.1.2.1.3', output: 0
Total[0.5056] Device[4] HT[1] DS[72] TT[51.29] SS[0] SERVER: /var/www/html/cacti/scripts/ss_count_oids.php ss_count_oids '4' '1.3.6.1.2.1.4.22.1.2', output: 30
Total[0.5069] Device[4] HT[1] DS[73] TT[1.24] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_cpu.php ss_mikrotik_cpu '4', output: cpu: max:
Total[0.5078] Device[4] HT[1] DS[74] TT[0.85] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_procs.php ss_mikrotik_procs '4', output: U
Total[0.5087] Device[4] HT[1] DS[75] TT[0.86] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_mem.php ss_mikrotik_mem '4', output: used:U size:U
Total[0.5097] Device[4] HT[1] DS[76] TT[0.97] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_disk.php ss_mikrotik_disk '4', output: used:U size:U
Total[0.5107] Device[4] HT[1] DS[77] TT[0.87] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_users.php ss_mikrotik_users '4', output: U
Total[0.5116] Device[4] HT[1] DS[78] TT[0.86] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_uptime.php ss_mikrotik_uptime '4', output: U
Total[0.5126] Device[4] HT[1] DS[79] TT[0.90] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlTwelveVoltage', output: U
Total[0.5129] Device[4] HT[1] DS[80] TT[0.32] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlFiveVoltage', output: U
Total[0.5133] Device[4] HT[1] DS[81] TT[0.32] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlThreeDotThreeVoltage', output: U
Total[0.5137] Device[4] HT[1] DS[82] TT[0.31] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlCoreVoltage', output: U
Total[0.5141] Device[4] HT[1] DS[83] TT[0.33] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlVoltage', output: U
Total[0.5144] Device[4] HT[1] DS[84] TT[0.31] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlCpuTemperature', output: U
Total[0.5148] Device[4] HT[1] DS[85] TT[0.32] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlProcessorTemperature', output: U
Total[0.5152] Device[4] HT[1] DS[86] TT[0.32] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlSensorTemperature', output: U
Total[0.5156] Device[4] HT[1] DS[87] TT[0.32] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlTemperature', output: U
Total[0.5159] Device[4] HT[1] DS[88] TT[0.31] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlPower', output: U
Total[0.5163] Device[4] HT[1] DS[89] TT[0.36] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_health.php ss_mikrotik_health '4' 'HlCurrent', output: U
Total[0.5174] Device[4] HT[1] DS[90] TT[0.96] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_wapcount.php ss_mikrotik_wapcount '4', output: 0
Total[0.5184] Device[4] HT[1] DS[91] TT[1.01] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_wrcount.php ss_mikrotik_wrcount '4', output: 0
Total[0.5194] Device[4] HT[1] DS[92] TT[0.93] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_trees.php ss_mikrotik_trees '4', output: 0
Total[0.5205] Device[4] HT[1] DS[93] TT[1.07] SS[0] SERVER: /var/www/html/cacti/scripts/ss_mikrotik_qcount.php ss_mikrotik_qcount '4', output: 0
Total[0.5948] Device[4] HT[1] DS[94] TT[74.23] SS[0] SERVER: /var/www/html/cacti/scripts/ss_count_oids.php ss_count_oids '4' '.1.3.6.1.2.1.9999.1.1.6.4.1.4', output: 67
Total[0.5950] Device[4] HT[1] Total Time: 0.3 Seconds
Total[0.8437] Time: 0.8436 s, Threads: 1, Devices: 3
TheWitness commented 1 year ago

You see all the 'U' in that output, it means the plugin is likely not running. However, also from the output, your poller should be able to finish just fine. MikroTik is not the issue here.