[solved] How to refresh device interface list?
Moderators: Developers, Moderators
[solved] How to refresh device interface list?
we added some new interfaces and port-channel to a Cisco router. I want add new graph for the new addded interfaces or port-channel, but if I try add new graph from the device list or click "New Graph", I don't see the new interfaces listed under the device. If I add a new device with the same IP address then I can see the new interface. I don't want add a new device evrytime we make any chanes to the frvice. How to force cacti refresh the existing device interface list? many thanks
"Please chaneg "Re-Index Method" from "Uptime goes backwards" to "Index Count Changed". To do so, you will have to delete the Data Query as a whole and re-create it using the correct re-index method. You won't loose existing graphs!
Reinhard"
I am not sure how to go about doing this...
Can you please give details of how this can be performed..
Thanks
Reinhard"
I am not sure how to go about doing this...
Can you please give details of how this can be performed..
Thanks
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Sure:
- edit the host
- see "Data Query" Section and delete the data query with the "wrong" reindex method
- re-select the same data Query from the Data Query dropdown list BUT select the correct reindex method
- click "Add" to add the data query
All existing Graphs will be preserved.
There will be some improvement with upcoming 088 to avoid this struggle
Reinhard
- edit the host
- see "Data Query" Section and delete the data query with the "wrong" reindex method
- re-select the same data Query from the Data Query dropdown list BUT select the correct reindex method
- click "Add" to add the data query
All existing Graphs will be preserved.
There will be some improvement with upcoming 088 to avoid this struggle
Reinhard
Re: [solved] How to refresh device interface list?
hi everyone,
i was wondering if there is any method that gives us the opportunity to do this operation automatically. f.e. is it possible via cli api or any php scripting? i cannot find a solution for that.
Regards,
Utku
i was wondering if there is any method that gives us the opportunity to do this operation automatically. f.e. is it possible via cli api or any php scripting? i cannot find a solution for that.
Regards,
Utku
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: [solved] How to refresh device interface list?
There are scripts available in the cli directory that you might want to run. Those are documented at 1st link of my sig
R.
R.
-
- Posts: 1
- Joined: Thu Jul 17, 2014 6:11 pm
Re: [solved] How to refresh device interface list?
I know this is an old thread, however I don't feel it gave an adequate answer to a lay person trying to use an unfamiliar program, so I kept playing around with it until I figured it out for myself (at least my problem). Essentially I found mine added some interfaces but not all when I did a refresh, so here goes:
I temporarily set my snmp options on the device to use 100 OID gets (same place you set the device name and SNMP string etc), I believe it must use a different one for the initial check which is why you get all the interfaces, when doing a recheck if it is set to the default of 10, then it won't get everything, change this to 100
"On the Associated Data Queries" on the device:
Click "Verbose Query" on your SNMP Interface stats (or create a new query).
This is how I fixed my issue, hopefully it fixes yours also.
I temporarily set my snmp options on the device to use 100 OID gets (same place you set the device name and SNMP string etc), I believe it must use a different one for the initial check which is why you get all the interfaces, when doing a recheck if it is set to the default of 10, then it won't get everything, change this to 100
"On the Associated Data Queries" on the device:
Click "Verbose Query" on your SNMP Interface stats (or create a new query).
This is how I fixed my issue, hopefully it fixes yours also.
Re: [solved] How to refresh device interface list?
utkualp wrote:hi everyone,
i was wondering if there is any method that gives us the opportunity to do this operation automatically. f.e. is it possible via cli api or any php scripting? i cannot find a solution for that.
Regards,
Utku
mysql -u<dbuser> -p<dbpass> -e 'UPDATE cacti.host_snmp_query SET reindex_method="2" where reindex_method="1"'
Re: [solved] How to refresh device interface list?
Hi,
I tried every solution given above, but still my new interfaces are not showing on the graph management. Please help!
I tried every solution given above, but still my new interfaces are not showing on the graph management. Please help!
Who is online
Users browsing this forum: No registered users and 6 guests