Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the difficulties in Nagios configuration in network management

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about network management about Nagios configuration difficulties what content. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

Nagios configuration settings Apache2 server, so that apache2 starts loading nagios Nagios installed, we need to view the monitoring information of nagios from the browser, otherwise if you go directly to see the log file of nagios, people will go crazy. So, how do I see nagios information in my browser? At this time, you need to use apache2 server, which is based on apache2, to access nagios data information through the browser.

All we have to do is configure apache, that is, modify the configuration file. The content to be modified is already generated when Nagios configuration is compiled, which is the httpd.conf file in sample-config directory. Add the entire contents of this file to apache2's main configuration file!

Authorized users of Nagios configuration When viewing nagios monitoring information from the browser, we can impose some restrictions on different users. For example, some users can view all information, and some users can only view some information. First, use htpasswd to add authorized users (i.e., users who can log into the nagios monitoring interface from their browser). For example: htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin Then enter the password, you can log in Nagios with this username and password. After Nagios configuration is started, all information is in the log file under var directory. All nagios information can be displayed in the browser. A tool is needed, that is CGI, which displays the information on the web page.

The limits of user rights are here! Next, in the main configuration file of cgi, there is a variable use_authentication, which defaults to 1, that is, authentication is required. At the beginning, I suggest that you change this value to 0, in order to save trouble, so it is really convenient to configure, only this step, you can view Nagios configuration monitoring information. However, this would mean that all htpasswd authorized users could view all information, which would be unsafe. We need to restrict different users.

Therefore, it is recommended to change use_authentication to 1, and then add users with various permissions to the following variables, such as authorized_for_system_informationauthorized_for_configuration_informationauthorized_for_system_commandsauthorized_for_all_servicesauthorized_for_all_

hostsauthorized_for_all_service_commandsauthorized_for_all_host_commands。。。。。。

When the use_authentication value is 0, all assignments to these variables are invalidated, and the default is all users.

Thank you for reading! About "network management about Nagios configuration difficulties" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report