Closed interceptor closed 8 months ago
Problem was likely introduced with this commit here: https://github.com/Cacti/spine/commit/a782364e136d8c94f274203daf20eaacc6e632e5
What is the SQL Error number?
@TheWitness FATAL: Database Error:'1054', Message:'Unknown column 'h.poller_id' in 'where clause''
Okay. Darn it.
Looks like it's only develop thankfully.
All fixed now.
Describe the bug Running: ./spine --readonly --stdout --verbosity 5 against the latest cacti schema results in:
ERROR: The Query Was:'SELECT SQL_NO_CACHE id, device_threads, picount, picount/device_threads AS tppi FROM host LEFT JOIN (SELECT host_id, COUNT(*) AS picount FROM poller_item GROUP BY host_id) AS pi ON host.id = pi.host_id WHERE disabled = '' AND h.id BETWEEN 1 AND 1 AND h.poller_id=1 ORDER BY h.polling_time DESC'
To Reproduce Steps to reproduce the behavior:
Expected behavior spine does not throw exceptions when poller is run
Server (please complete the following information):
This issue did not occur with spine revision 09e5a8c3c2ffe51a92b03d9f3725c3149ad2abf9