Cacti / plugin_monitor

Monitor Plugin for Cacti
GNU General Public License v2.0
36 stars 39 forks source link

Monitor plugin cannot be enabled #116

Closed dsclassen closed 5 years ago

dsclassen commented 5 years ago

I get the following error (and the plugin get immediately disabled) when I attempt to active it.

2019-09-06 13:21:12 - MAILER INFO: Mail successfully sent via Sendmail from '"cacti <cacti@>', to '"Administrator" <>', cc '', Subject 'Cacti System Warning'
2019-09-06 13:21:12 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'monitor'
2019-09-06 13:21:12 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019-09-06 13:21:12 - ERROR PHP ERROR in Plugin 'monitor': Uncaught Error: Call to undefined function get_cacti_version() in /cacti/plugins/monitor/poller_monitor.php:362 Stack trace: #0 /cacti/plugins/monitor/poller_monitor.php(270): process_reboot_email('...', Array) #1 /cacti/plugins/monitor/poller_monitor.php(87): monitor_uptime_checker() #2 {main} thrown in file: /cacti/plugins/monitor/poller_monitor.php on line: 362
netniV commented 5 years ago

Have you updated to the 1.3 develop branch?

dsclassen commented 5 years ago

Yes. I'm on 70c9d962a

netniV commented 5 years ago

This is because develop has moved to 1.3 and the get_cacti_version() function isn't present there as new constants were introduced to provide the same functionality.

I'll go through the plugins and make sure they are using the correct logic as it appears to be mismatched right now.

rtripon commented 5 years ago

Hello, Same problem here.

netniV commented 5 years ago

This should now have been resolved.