Nagios Monitoring Tool Tutorial | Server Monitoring with Nagios | DevOps Training | AWS AMI Linux

Опубликовано: 29 Октябрь 2021
на канале: Techno Pathshala
696
31

Nagios Monitoring Tool Tutorial | Server Monitoring with Nagios | DevOps Training | Configure in AWS AMI Linux


Commands


1. yum install httpd php

2. yum install gcc glibc glibc-common -y

3. yum install gd gd-devel

4. adduser -m nagios

5. passwd nagios

6. groupadd nagioscmd

7. usermod -a -G nagioscmd nagios

8. usermod -a -G nagioscmd apache

9. mkdir ~/downloads for directory creation

10. cd ~/downloads

11. wget http://prdownloads.sourceforge.net/so...

12. wget http://nagios-plugins.org/download/na...

13. tar zxvf nagios-4.0.8.tar.gz

14. cd nagios-4.0.8

15. ./configure --with-command-group=nagioscmd

16. make all

17. make install

18. make install-init

19. make install-config

20. make install-commandmode

22. make install-webconf

23.htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

24. service httpd restart

25. cd ~/downloads

26. tar zxvf nagios-plugins-2.0.3.tar.gz

27. cd nagios-plugins-2.0.3

28. ./configure --with-nagios-user=nagios --with-nagios-group=nagios

29. make

30. make install

31. chkconfig --add nagios

32. chkconfig nagios on

33. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

34. service nagios start

35. service httpd restart