Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] Auto add foundry switch interface / port names

 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
syscev



Joined: 21 May 2008
Posts: 2

PostPosted: Wed May 21, 2008 9:21 pm    Post subject: [HOWTO] Auto add foundry switch interface / port names Reply with quote

I wasn't able to find the answer to this question in the forums so, I am deciding to share it.

There might a more elegant why to do but this is how I did it.

1. Go to '/var/www/html/cacti/resource/snmp_queries'.
2. Open and edit 'interface.xml'.
3. I added the following between the <ifAlias> and <ifType> object.
Code:
                <ifPortName>
                        <name>Port Name (FOUNDRY-SWITCH-MIB)</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.1991.1.1.3.3.1.1.24</oid>
                </ifPortName>

4. I copied the graph template 'Interface - Traffic (bits/sec)' and called it 'Interface - Traffic (bits/sec) (Foundry)'. The only difference is the 'title' field has been changed to '|host_description| - |query_ifDescr| - |query_ifPortName|'
5. Modify your foundry switch interface bits graphs to use to the custom template.
6. You might need to disable and enable the 'title' field in the graph template for it to refresh on your current graphs.

And this works just fine.

If you are wondering where I got the foundry switch OID. Here is the whole list.
http://www.oidview.com/mibs/1991/FOUNDRY-SN-SWITCH-GROUP-MIB.html
Back to top
zeki



Joined: 09 Feb 2007
Posts: 47

PostPosted: Fri Jul 18, 2008 1:40 am    Post subject: Reply with quote

changing the title to |host_description| - Traffic - |query_ifName| - |query_ifAlias| will display the port # and port-name
Back to top
syscev



Joined: 21 May 2008
Posts: 2

PostPosted: Fri Jul 18, 2008 7:57 am    Post subject: Reply with quote

zeki wrote:
changing the title to |host_description| - Traffic - |query_ifName| - |query_ifAlias| will display the port # and port-name


Hmmm... Are you referring to Foundry Switches ? I am pretty sure it doesn't because the description can only be found on an OID different from Cisco switches..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group