Closed bmfmancini closed 2 years ago
I updated the poller_item colum manually all was well until you attempt to repopulate poller cache the device then the old IP comes back into the poller_items table
I was able to replicate this again on 1.2.20
Record Before
MariaDB [cacti]> select * from host where id = '260' limit 1\G;
*************************** 1. row ***************************
id: 260
poller_id: 2
site_id: 1
host_template_id: 2
description: mancinifw
hostname: 192.168.1.254
location:
notes:
external_id:
snmp_community:
snmp_version: 2
snmp_username:
snmp_password:
MariaDB [cacti]> select * from poller_item where host_id = '260' limit 1\G;
*************************** 1. row ***************************
local_data_id: 1298
poller_id: 2
host_id: 260
action: 0
present: 1
last_updated: 2021-08-05 15:02:08
hostname: 192.168.1.254
snmp_community:
snmp_version: 2
snmp_username:
snmp_password:
After changing IP to 1.2.3.4
MariaDB [cacti]> select * from host where id = '260' limit 1\G;
*************************** 1. row ***************************
id: 260
poller_id: 2
site_id: 1
host_template_id: 2
description: mancinifw
hostname: 1.2.3.4
location:
notes:
external_id:
snmp_community:
snmp_version: 2
MariaDB [cacti]> select * from poller_item where host_id = '260' limit 1\G;
*************************** 1. row ***************************
local_data_id: 1298
poller_id: 2
host_id: 260
action: 0
present: 1
last_updated: 2022-02-04 12:30:47
hostname: 192.168.1.254
snmp_community:
snmp_version: 2
snmp_username:
Manually Updating record
MariaDB [cacti]> update poller_item set hostname='1.2.3.4' where host_id = 260;
Query OK, 24 rows affected (0.010 sec)
Rows matched: 24 Changed: 24 Warnings: 0
MariaDB [cacti]> select * from poller_item where host_id = '260' limit 1\G;
*************************** 1. row ***************************
local_data_id: 1298
poller_id: 2
host_id: 260
action: 0
present: 1
last_updated: 2022-02-04 12:35:16
hostname: 1.2.3.4
Hit repopulate poller cache
MariaDB [cacti]> select * from poller_item where host_id = '260' limit 1\G;
*************************** 1. row ***************************
local_data_id: 1298
poller_id: 2
host_id: 260
action: 0
present: 1
last_updated: 2022-02-04 12:36:40
hostname: 192.168.1.254
snmp_community:
snmp_version: 2
snmp_username:
snmp_password:
Remote or local poller?
Hmm....
Are you sure you are "completely" up to date? How did you update the hostname? Exact steps.
Steps to re-create
1.) Change IP of a device 2.) Save device 3.) Run spine you will see it showing 2 IP's the old and the new 4.) select * from poller_item you see the hostname is the old one 5.) Update the hostname manually 6.) Device is able to be polled again 7.) hit repopulate poller cache boom back to the old IP
Duplicate of #4508. Closing.
Hey Guys,
I discovered an issue today where after changing a device IP you are able to get the sysdescr in the device window but polling fails After running spine manually you see that spine reports both the new IP and OLD IP
The host table has the correct IP but the poller_items table does not
36. row local_data_id: 1741 poller_id: 1 host_id: 323 action: 0 present: 1 last_updated: 2022-02-04 11:58:09 hostname: (OLD IP) snmp_community: public snmp_version: 3
I tried to repopulate the poller cache and reindex and resave the device no changes The last_updated colum in the poller_items does get updates so it looks like something happens