Code: Select all
$ php /usr/share/cacti/site/poller.php --force -d
03/18/2009 09:48:13 AM - SPINE: Poller[0] ERROR: SQL Failed! Error:'1264', Message:'Out of range value adjusted for column 'availability' at row 1', SQL Fragment:'UPDATE host SET status='3', status_event_count='0', status_fail_date='0000-00-00 00:00:00', status_rec_date='0000-00-00 00:00:00', status_last_error='', min_time='9.909150', max_time='9.909150', cur_time='9.909150', avg_time='9.909150', total_polls='1', failed_polls='0', availability='100.0000' WHERE id='56''
Code: Select all
--- a/poller.c 2009-01-21 18:49:53.000000000 +0200
+++ b/poller.c 2009-03-18 09:51:04.000000000 +0200
@@ -413,7 +413,7 @@
host->avg_time,
host->total_polls,
host->failed_polls,
- host->availability,
+ host->availability-1,
host->id);