Hello, How can I add MRTG graph of a port of CIENA 3960/3930/3916 ?
Short answer is 'yes'. Which Operating systems and Package are you using?
you'll want to explore the 22.214.171.124.4.1.6126.96.36.199 MIB space
You can find out more about it by browsing the 009-3273-011 SAOS MIB Reference document, available in the Ciena portal.
To ans. the original question of 'how to add a port' to MRTG so it can be graphed, you can append a devices' IP to the mrtg.cfg file. Here are my steps for this process, and for generating the Graph.
I've created a device in the Lab for showing as an example for MRTG.
I hope this is helpful.
To generate a graph for a single devices set of ports use a command similar to the following:
sudo cfgmaker email@example.com
multiple address can be set in the same command line:
sudo cfgmaker firstname.lastname@example.org email@example.com
The configuration file /etc/mrtg.cfg is used to hold the SNMP information obtained from your gateway\router.
sudo cfgmaker firstname.lastname@example.org > mrtg.cfg
NOTE: the mrtg.cfd file can be located in whichever DIR the Admin user designated, such as /etc/mrtg/mrtg.cfg instead of the the default DIR of /etc/mrtg.cfg.
If a port on the device is not to have a graph generated for it, the mrtg.cfg file will contain an entry with reasons why it will not be available for a graph; otherwise, these lines are not presented in the file and that port will have a graph available on the server.
Here are the entries:
### Interface 1 >> Descr: 'loop0' | Name: 'loop0' | Ip: 'No Ip' | Eth: 'No Ethernet Id' ###### The following interface is commented out because:### * it is administratively DOWN### * it is operationally DOWN### * has no ifSpeed property
Next, the mrtg.cfg file has to be sent to the index.html file in preparation for the generating the Graphs.
Perl has to be installed, and the Apache http server has to be installed and operating correctly.
sudo indexmaker /etc/mrtg.cfg > /var/www/html/index.html
My index.html file contains this line that allows for the Graph:
Note the "<DIV><A HREF="/mrtg/..." in the second example. This is because I use the DIR of /etc/mrtg/, which I created to keep the default files separated from the original installed files. Just my housekeeping style.
<DIV><A HREF="188.8.131.52_2.1.html"><IMG BORDER=1 ALT="184.108.40.206_2.1 Traffic Graph" SRC="220.127.116.11_2.1-day.png"></A><BR>
<DIV><A HREF="/mrtg/18.104.22.168_2.1.html"><IMG BORDER=1 ALT="22.214.171.124_2.1 Traffic Graph" SRC="126.96.36.199_2.1-day.png"></A><BR>
From the http server itself, where MRTG has been installed (mine is a Unix based OS), the graphs can be displayed:
Which in turn gives me my visually displayed Graphs for each UP port. I used the default Bytes display versus the bits option.
There are Graphs for Daily, Weekly, Monthly, and Yearly Averaged Graphs.
To be clear, and to answer the original question; after MRTG is installed correctly on your linux server, perform these simple steps to create graphs for multiple (Ciena) devices):
CD /etcsudo cfgmaker email@example.com firstname.lastname@example.org @public 10.7.13.5 > /etc/mrtg.cfgsudo indexmaker /etc/mrtg.cfg > /var/www/html/index.html
To add additional ports, simply repeat these steps, and refresh the HTML server window.
Retrieving data ...