This article by show according to Lin Feng to provide friendship sponsorship, starting in the mud row world.
The company's business has several servers stored in the IDC room, said to be a double line. But I see the configuration of the network card is a single NIC dual IP form. As follows:
And the company side of the line is Unicom's IP, as follows:
Nagios monitoring is built within the company due to the problem of North-South line connectivity. The server on the company side of the Nagios monitoring IDC engine room frequently false alarms. Especially a big night, sister's, false alarm information more people are headache. As follows:
At first the suspicion was caused by the instability of the company's routers. But after a few reboots, this is still a problem. As follows:
View Nagios monitors one of the servers with the IP address for the telco IP. As follows:
Ping the IP address within the company during the day, everything is OK. But I was embarrassed when the bag was badly dropped at night.
It was later assumed that the problem was due to the fact that Nagios had a certain monitoring cycle. If data is not available for a period of time, Nagios sends an email notification.
Make sure that Nagios monitors the IP address of the server as a Unicom IP, as follows:
After the modification, restart the Nagiso to monitor, as follows:
/etc/init.d/nagios restart
After observing a period of time, it is still impossible to find, and it will be false alarm information.
This guest is a headache, ping that Unicom's IP is also through. As follows:
Later, carefully observe the IP address configuration on the server as follows:
Found in the default gateway only the IP of telecommunications, and not the IP of the Unicom. Guess is not because of this cause, decisive add in. As follows:
Once added, restart Nagios and monitor again. Found or false alarm, this time the pit father. If you don't know where the problem is, just click on it. Suddenly found in the network card display IP out with the network card configuration of the IP has a certain discrepancy, as follows:
Note the yellow part that is marked in the figure.
You can see that the Unicom IP address you just added earlier as the gateway does not work.
What's going on here? Check the relevant information or have no clue.
Test the original telecommunications IP gateway deleted, add the Unicom IP, re-add the telecommunications IP, but found to be normal monitoring. As follows:
View the routing table for this server, as follows:
Route print
Now I suspect that the original use of the telco IP as the default gateway. This causes Nagios to receive data that is causing network instability. This results in Nagios's false positives.
The false positives to this nagios have been greatly reduced ...
Slime: Nagios monitor single NIC dual IP