[solved] How to refresh device interface list?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
newifu
Posts: 8
Joined: Mon Jun 23, 2008 11:52 am

[solved] How to refresh device interface list?

Post by newifu »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
wchan
Posts: 11
Joined: Tue Jul 01, 2008 5:19 pm

Post by wchan »

Anyone have a custom cronjob that updates the descriptions?
newifu
Posts: 8
Joined: Mon Jun 23, 2008 11:52 am

Post by newifu »

Thanks. it works
User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Post by tilli »

"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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Post by tilli »

Thanks alot

that worked...
:D
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Post by Deviloper »

Else: You can restart your devices or do a reset counter on cisco components to force an reindex-process...
User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Post by tilli »

thanks....
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
RRDTool Version - RRDTool 1.2
Plugins - discovery, autom8, tools
utkualp
Cacti User
Posts: 67
Joined: Mon Dec 24, 2012 1:10 am

Re: [solved] How to refresh device interface list?

Post by utkualp »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [solved] How to refresh device interface list?

Post by gandalf »

There are scripts available in the cli directory that you might want to run. Those are documented at 1st link of my sig
R.
aussieguy2000
Posts: 1
Joined: Thu Jul 17, 2014 6:11 pm

Re: [solved] How to refresh device interface list?

Post by aussieguy2000 »

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.
benmart
Posts: 1
Joined: Wed Feb 11, 2015 4:26 pm

Re: [solved] How to refresh device interface list?

Post by benmart »

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"'
fiza
Posts: 1
Joined: Tue Mar 07, 2017 4:08 am

Re: [solved] How to refresh device interface list?

Post by fiza »

Hi,
I tried every solution given above, but still my new interfaces are not showing on the graph management. Please help!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests