Cacti / plugin_intropage

Intropage/Dashboard for Cacti monitoring
GNU Lesser General Public License v2.1
23 stars 10 forks source link

[INTROPAGE latest source] Intropage process killed with latest patches #321

Closed anarkia1976 closed 1 month ago

anarkia1976 commented 3 months ago

Hi @xmacan ,

after merge of the latest pathes i see randomly this error, the process is killed with plugin shutdown:

POLLER: Poller[[cacti-collector](https://cacti.xxx.it/cacti/pollers.php?action=edit&id=1)] PID[12087] ERROR: Process being killed due to timeout! (intropage, master, 1, Process 450564, Time 1719300328, Timeout 1800, Timestamp 1719490828)

thanks a lot. stefano

xmacan commented 3 months ago

Hi @anarkia1976 Configuration -> Settings -> Intropage tab -> Increase "Poller Timeout" To be honest, I don't know why poller run lasts so long. You can try run poller manually in debg mode and try to find where is problem: php /path/to/cacti/plugins/intropage/poller_intropage.php --debug --force

anarkia1976 commented 3 months ago

Hi @xmacan , i don't think is a poller problem i see this error with the latest 3 patches merged:

7c6a7824b957d61eeec922ac247214e85b7513bd 418b909938560224e390d6e68de788177408104e ece42f8b1b41b49d684c44b8690beb0e205dceb0

unfortunally no others errors into cacti log.

thanks.

xmacan commented 3 months ago

These are just small changes, but they can make a big difference. Please run debug and you will what last long time. I'm not able to say what is wrong, I guess db check

anarkia1976 commented 2 months ago

These are just small changes, but they can make a big difference. Please run debug and you will what last long time. I'm not able to say what is wrong, I guess db check

Hi @xmacan sorry for late reply but i'm on vacancy.

2024-07-09 15:20:33 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'intropage'
2024-07-09 15:20:33 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2024-07-09 15:20:33 - ERROR PHP ERROR in Plugin 'intropage': Uncaught TypeError: Unsupported operand types: string - string in /var/www/html/cacti/plugins/intropage/panellib/misc.php:130 Stack trace: #0 /var/www/html/cacti/plugins/intropage/poller_intropage.php(230): ntp_dns() #1 /var/www/html/cacti/plugins/intropage/poller_intropage.php(107): intropage_gather_stats() #2 {main} thrown in file: /var/www/html/cacti/plugins/intropage/panellib/misc.php on line: 130

Thanks a lot. stefano.

xmacan commented 1 month ago

@TheWitness thank you for fix!