Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weathermap issue with SQLSTATE[HY000]: General error: 1364 Field 'last_time' doesn't have a default value' #303

Open
khmermega opened this issue Aug 26, 2022 · 0 comments

Comments

@khmermega
Copy link

Hi Howardjones,

I have issue on cacti when I'm trying to add new links as below

-------------------
2022-08-25 09:07:17 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
2022-08-25 09:07:17 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-08-25 09:07:17 - ERROR PHP ERROR in Plugin 'weathermap': Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1364 Field 'last_time' doesn't have a default value' in /var/www/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_rrd.php:143 Stack trace: #0 /var/www/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_rrd.php(143): PDOStatement->execute(Array) https://github.com/thurban/plugin_weathermap/issues/1 /var/www/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_rrd.php(596): WeatherMapDataSource_rrd->wmrrd_read_from_poller_output('/var/www/cacti/...', 'AVERAGE', 'now-800', 'now', Array, Array, Object(WeatherMap), 0, Object(WeatherMapLink)) https://github.com/thurban/plugin_weathermap/issues/2 /var/www/cacti/plugins/weathermap/lib/Weathermap.class.php(955): WeatherMapDataSource_rrd->ReadData('/var/www/cacti/...', Object(WeatherMap), Object(WeatherMapLink)) https://github.com/thurban/plugin_weathermap/issues/3 /var/www/cacti/plugins/weathermap/lib/poller-common.php(195): WeatherMap->ReadData() https://github.com/thurban/plugin_weathermap/issues/4 /var/www/cacti/plugins/weathermap/setup.php(778): weathermap_run_maps('/var/www/cacti/...') https://github.com/thurban/plugin_weathermap/pull/5 /var/www/cacti/lib/plugins.php(177): weathermap_poller_bottom(Ar in file: /var/www/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_rrd.php on line: 143
-------------------

OS: Centos 7
DB: 10.2.44-MariaDB
Cacti: 1.2.15
Spine: 1.2.15
PHP 5.4.16

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant