hi
please I have many routers and each one has hunders of interfaces , so how can show them all without let me add them one by one , or something like autodiscovering all its interfaces.
is it if I use network analyzer??
thanks,
router interfaces
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: router interfaces
This is difficult to answer as different routers have different configurations. This affects how they are configured in CCM and also how MRTG collects data from them.
What is your goal from monitoring them? Do you want to blindly monitor everything or do you have clear goals defined?
What is your goal from monitoring them? Do you want to blindly monitor everything or do you have clear goals defined?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
Re: router interfaces
our goal from than check if links up or down, also monitor traffic utilization, so if utilization increased over threshold ,send alarms
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: router interfaces
I suggest running the Network Router/Switch wizard against on of them to see how the services are created and how MRTG is configured. It will help you understand how it all works.
When you step through the wizard it talks to the switch and gets all the ports on the switch via SNMP. Now this will include non-physical ports like VLANs, management interfaces etc.
Then the wizard displays a page with all of these ports listed. For each port, there is a "Bandwidth" column and a "Port Status" column and each column has a check box in it (already checked) which allows you to select if you want to perform each check type.
When the wizard is finished and all the services are created it will create the following for EACH port:
Bandwidth Service
Status Service
For my example I am going to use the switch with the IP address 192.168.33.22
When the wizard is run against the switch 192.168.33.22 the following happens:
A file is created called:
/etc/mrtg/conf.d/192.168.33.22.cfg
The Nagios Bandwidth Services are created for each port.
Now the bandwidth graphs you see in the GUI are created using two separate jobs.
The usage data is collected from the switches using a program called MRTG, we'll call this the MRTG Job.
Every 5 mintues a cron job runs on the Nagios server which runs MRTG.
MRTG looks in the /etc/mrtg/conf.d/ directory for all the devices it must talk to
Each .cfg file in this directory has a configuration of all the ports it must collect data for from that device
MRTG will take the data it collected for EACH port and put it into a SEPARATE file in the directory /var/lib/mrtg/
Then there is the Nagios Job
As mentioned earlier, the Wizard creates a Bandwidth service for EACH port you select to monitor
The service that is created will check the /var/lib/mrtg/ directory for the specific file for that port
It will take the data in that file and populate the correct RRD file in /usr/local/nagios/share/perfdata/192.168.33.22/
There is an RRD file for each network port being monitored
This happens every five minutes by Nagios (the default check_interval defined by the Wizard) for every bandwidth service that exists
When you step through the wizard it talks to the switch and gets all the ports on the switch via SNMP. Now this will include non-physical ports like VLANs, management interfaces etc.
Then the wizard displays a page with all of these ports listed. For each port, there is a "Bandwidth" column and a "Port Status" column and each column has a check box in it (already checked) which allows you to select if you want to perform each check type.
When the wizard is finished and all the services are created it will create the following for EACH port:
Bandwidth Service
Status Service
For my example I am going to use the switch with the IP address 192.168.33.22
When the wizard is run against the switch 192.168.33.22 the following happens:
A file is created called:
/etc/mrtg/conf.d/192.168.33.22.cfg
The Nagios Bandwidth Services are created for each port.
Now the bandwidth graphs you see in the GUI are created using two separate jobs.
The usage data is collected from the switches using a program called MRTG, we'll call this the MRTG Job.
Every 5 mintues a cron job runs on the Nagios server which runs MRTG.
MRTG looks in the /etc/mrtg/conf.d/ directory for all the devices it must talk to
Each .cfg file in this directory has a configuration of all the ports it must collect data for from that device
MRTG will take the data it collected for EACH port and put it into a SEPARATE file in the directory /var/lib/mrtg/
Then there is the Nagios Job
As mentioned earlier, the Wizard creates a Bandwidth service for EACH port you select to monitor
The service that is created will check the /var/lib/mrtg/ directory for the specific file for that port
It will take the data in that file and populate the correct RRD file in /usr/local/nagios/share/perfdata/192.168.33.22/
There is an RRD file for each network port being monitored
This happens every five minutes by Nagios (the default check_interval defined by the Wizard) for every bandwidth service that exists
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.