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

Installation steps for Redhat Nagios

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

Share

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

This article mainly explains the "Redhat Nagios installation steps", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Redhat Nagios installation steps" bar!

I. Software package

1. Nagios-3.2.1.tar.gz

2. Nagios-plugins-1.4.14.tar.gz

Second, installation steps

1. Useradd-m nagios

2. Groupadd nagcmd

3. Usermod-a-G nagcmd nagios

4. Usermod-a-G nagcmd apache

5. Tar zxvf nagios-3.2.1.tar.gz

6. Cd nagios-3.2.1

7. / configure-prefix=/usr/local/nagios-with-command-group=nagcmd-- with-httpd-conf=/usr/local/apache/conf

8. Make install

9. Make install-init

10. Make install-config

11. Make install-commandmode

12. Vi / usr/local/nagios/etc/objects/contacts.cfg change email to your EMAIL address

13. Make install-webconf

14. Htpasswd-c / usr/local/nagios/etc/htpasswd.users nagiosadmin / / add nagiosadmin users and set password

15. Cd / usr/local/apache/conf

16. Copy the contents of nagios.conf into httpd.conf and put them in httpd.conf***

17. Cd / var/local/software

3. Tar zxvf nagios-plugins-1.4.14.tar.gz// installs the nagios plug-in

18. Cd nagios-plugins-1.4.14

19. / configure-- prefix=/usr/local/nagios-plus-- with-nagios-user=nagios-- with-nagios-group=nagios

20. Make

21. Make install

twenty-two。 Chkconfig-add nagios

23. Chkconfig nagios on

24. / usr/local/nagios/bin/nagios-v / usr/local/nagios/etc/nagios.cfg// tests whether the nagios configuration is correct

25. Service nagios start/stop

twenty-six。 Killall httpd

twenty-seven。 / usr/local/apache/bin/apachectl-k start

twenty-eight。 Access http://localhost/nagios enter nagiosadmin password password set by nagiosadmin

twenty-nine。

III. Nagios configuration

Cfg_file=/usr/local/nagios/etc/contactgroups.cfg / / contact group profile path

Cfg_file=/usr/local/nagios/etc/contacts.cfg / / contact profile path

Cfg_file=/usr/local/nagios/etc/hostgroups.cfg / / Host Group profile path

Cfg_file=/usr/local/nagios/etc/hosts.cfg / / Host profile path

Cfg_file=/usr/local/nagios/etc/services.cfg / / Service profile path

Cfg_file=/usr/local/nagios/etc/timeperiods.cfg / / Monitoring period profile path

Thank you for your reading, the above is the content of "Redhat Nagios installation steps", after the study of this article, I believe you have a deeper understanding of the installation steps of Redhat Nagios, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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