Advertisement
Dove6

ASU lab8

Jan 20th, 2022 (edited)
895
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Zadanie 1.
  2. wget -O /usr/lib/xymon/server/etc/xymon-apache.conf --no-check-certificate https://xymon.sourceforge.io/xymon/help/xymon-apacheconf.txt
  3. sed -i 's/\/usr\/local/\/usr\/lib/' /usr/lib/xymon/server/etc/xymon-apache.conf
  4. echo "Include /usr/lib/xymon/server/etc/xymon-apache.conf" >> /etc/apache2/apache2.conf
  5. service apache2 restart
  6.  
  7. echo "192.168.1.10  host1   # ssh" >> /usr/lib/xymon/server/etc/hosts.cfg
  8. echo "192.168.2.10  host2   # ssh" >> /usr/lib/xymon/server/etc/hosts.cfg
  9. service xymon restart
  10.  
  11. # Zadanie 2.
  12. echo "Include /etc/munin/apache.conf" >> /etc/apache2/apache2.conf
  13. service apache2 restart
  14.  
  15. # dla każdego hosta
  16. # w /etc/munin/munin-node.conf
  17. # allow ^192\.168\.1\.1$
  18. service munin-node restart
  19.  
  20. # na serwerze
  21. # /etc/munin/munin.conf
  22. #  [host1.asu]
  23. #  address
  24. #  hostname_yes
  25. # i tak dalej
  26.  
  27. # Zadanie 3.
  28. # na hostach trzeba dodać IP serwer do allowed host do /etc/nagios/nrpe.cfg
  29. # potem restart odpowiedniego serwisu (jakiego?)
  30.  
  31. # na serwerze w katalogu /etc/nagios3/conf.d/ trzeba pododawać pliki z definicjami
  32. # define host, define service
  33. # check_command check_ssh
  34. # check_command check_disk
  35.  
  36.  
  37. # Przydatne strony:
  38. # * https://xymon.sourceforge.io/xymon/help/xymon-config.html
  39. # * https://xymon.sourceforge.io/xymon/help/xymon-apacheconf.txt
  40. # * https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectdefinitions.html
  41. # * ...
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement