官术网_书友最值得收藏!

Summary

Our Nagios setup is now complete and is ready to be started! We took the road from source code into a working application. We have also configured it so that it monitors the machine it is running on from scratch, and it took very little time and effort to do so.

Our Nagios installation now uses three directories—/opt/nagios for binaries, /etc/nagios for configuration, and /var/nagios for storing data. All object definitions are stored in a categorized way as the subdirectories /etc/nagios. This allows much easier management of Nagios objects.

We have configured the server that Nagios is running on, to be monitored. You might want to add more servers just to see how they works.

We told Nagios to monitor only the SSH server. But in all proability, you will also want to monitor other things such as a web server or email.

Chapter 4, Overview of Nagios Plugins, will help when it comes to setting up various types of checks. Make sure to read the /etc/nagios/commands/default.cfg file to see what commands Nagios already came configured with. Sometimes, it will also be needed to set up your own check commands—either custom scripts, or using Nagios plugins in a different way from the default command set.

You would also want to set up other users if you are working as part of a larger team. It will definitely help everyone in your team if you tell Nagios who is taking care of which parts of the infrastructure!

All that should be a good start for making sure everything works fine in your company. Of course, configuring Nagios for your needs might take a lot of time, but starting with monitoring just the essentials is a good thing. You will learn how it works and increase the number of monitorables over time.

The next step is to set up the web interface so that you will be able to see things from your favorite browser or even put on your desktop. The next chapter provides the essential information on how to install, configure, and use it.

主站蜘蛛池模板: 和政县| 敖汉旗| 丰城市| 武夷山市| 牡丹江市| 扎兰屯市| 广南县| 安泽县| 射洪县| 丰镇市| 惠水县| 新宾| 上虞市| 天峨县| 大同市| 化州市| 乌拉特后旗| 镇坪县| 大冶市| 定边县| 西藏| 资溪县| 阜康市| 翼城县| 和顺县| 平湖市| 栖霞市| 汝南县| 依安县| 信丰县| 龙门县| 揭东县| 渝北区| 临邑县| 昌乐县| 准格尔旗| 元氏县| 临邑县| 盘锦市| 图木舒克市| 昌黎县|