In this article, we will tell you how to monitor the status and parameters of managed switches or other networking hardware using 10-Strike Network Monitor Pro.
When managing a computer network, you must monitor the servers' performance parameters and the availability of hosts and services. You also need to monitor the status of the networking hardware. Any big computer network includes switches, hubs, and routers. In fact, such devices are highly specialized computers. Just like conventional computers, they have cooling fans that may fail, CPUs that may overheat, memory that may overflow, and network interfaces that may crash. If a server fails, several services running on it will become unavailable. But if a network switch or router fails, a subnet consisting of hundreds of hosts, or even the entire network, may go dark!
Networking hardware is usually more reliable than servers or workstations, but you need to monitor it just in case. You can monitor the port status, temperature, fan status, voltage, and even power consumption of a switch. In case of an optical switch, you can also monitor the signal strength. You can also use formulas to monitor the average data rate, traffic usage, etc.
There are very few methods that you can use to communicate with network switches. If you want to get any parameters of a managed switch, you will have to use the SNMP protocol. SNMP stands for Simple Network Management Protocol, so it is supposed to be simple. But nowadays, networking devices have so many monitoring parameters that you need to refer to the documentation to check which parameters are available in the specific model. Each parameter in the device's internal database (Management Information Base, or MIB) has a unique identifier (object identifier, or OID) that consists of several digits separated by dots (for example, 22.214.171.124.126.96.36.199.0). If you want to get a specific parameter, you need to send an SNMP request to the device, passing the OID of that parameter. Of course, you need to know the OID. But how can you get it? The answer to the question is a little bit complicated.
To help you select the most important parameters that you may want to monitor, we have prepared a table of useful the most common OIDs of different vendors' switches (Cisco, D-Link, HP, Huawei). See the reference OID table here >>
We will show you how easy it is to set up monitoring of a network switch in 10-Strike Network Monitor Pro.
When using 10-Strike Network Monitor Pro, it is easy to set up monitoring of the above parameters and plot a graph based on them. You need to do the following:1. Add a host to the monitoring tree and enter the address of the switch that you want to monitor.
2. Add an SNMP check for the new host (select a host, click "Add check", and click "SNMP parameter monitoring").
3. Enter an OID from the table (see above) into the Monitored parameter (OID) field, specify the community, and define the "successful" and "failed" conditions.
4. Now you can configure a notification in case the switch fails.
As soon as you add a new check, 10-Strike Network Monitor Pro will start receiving data from the networking device. The data will be displayed as a graph in the "Monitored parameter" tab. All the data collected by Network Monitor Pro will be stored in its database, so that you can generate a report for any time period.
10-Strike Network Monitor Pro also allows you to monitor switches using other methods.
1. The "Interface (port) state" check is easier to set up, though it is based on the SNMP protocol. 10-Strike Network Monitor Pro will display a list of network interfaces. If you select one of them, Network Monitor Pro will periodically poll the OID 188.8.131.52.184.108.40.206.1.8.x and get the ifOperStatus. This method is simpler than SNMP monitoring. You don't need to obtain the necessary OID by running snmpwalk to build a list of network interfaces.
2. You can use a formula to calculate the necessary value based on the results of a few SNMP checks. Some performance parameters obtainable via SNMP can only be calculated based on two or more parameters. A simple check allows you to get one parameter at a time. Say, you want to monitor disk space usage. The value returned will be not in bytes but in disk space units, and you will need to separately request the size of a disk space unit. You need to use a formula to calculate free disk space in bytes based on two simple checks. You can also use a formula to calculate a performance as a percentage based on the current value and the highest possible value of a specific performance counter. Say, you want to monitor the data rate. You can use substitution variables to get the current value of the traffic counter, the previous value, and the time interval between them. If you subtract the previous value from the current value, and then divide the difference by the time interval, you will get the data rate in bytes per second.
3. You can use the "Switch port" check to monitor a port to which a computer is connected. If someone disconnects the computer's network cable from that port and connects it to a different port, the switch port data will be automatically updated, and 10-Strike Network Monitor Pro will notify you about that.Of course, the list of switch monitoring parameters in this article is far from complete. Feel free to send your networking devices' OIDs with the model names to us, so that we can add them to our table. There are many other kinds of network equipment that you can monitor using SNMP, such as uninterruptible power supply, network attached storage, and server hard drive (via Integrated Lights-Out). We will tell you about them in other articles.