Adding hosts and services to Nagios - Linux/BSD hosts: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "Adding Unix/Linux host to Nagios -------------------------------- 1. Connect to Nagios server #cd /usr/local/etc/nagios/objects/machines #vi apoyar.cfg (depending on wheth...")
 
No edit summary
Line 3: Line 3:




1. Connect to Nagios server
1. Connect to Nagios server (nagios.apoyar with neal username and apoyar.key)


#cd /usr/local/etc/nagios/objects/machines
#cd /usr/local/etc/nagios/objects/machines
Line 63: Line 63:
Set password for nagios to access from Nagios server  
Set password for nagios to access from Nagios server  


#password nagios
#passwd nagios


#cd /home/nagios
#cd /home/nagios
Line 70: Line 70:


#mkdir bin
#mkdir bin




Line 81: Line 80:




12. Run below command from Nagios server to copy public key file to access server password authentication less.
12. Copy public key (authorized_keys) file from any existing working server to access server password authentication less.  
 
 
#scp .ssh/id_rsa.pub user@remotehost:~/.ssh/authorized_keys
 




Line 108: Line 103:




15. But we don’t copy those checks files into bin folder, because whenever doing updates it will use latest versions of plugins it will create on issue.
15.


  So just will create soft links from actual installed folder to newly created bin folder on Nagios folder path.
  So just will create soft links from actual installed folder to newly created bin folder on Nagios folder path.
Anonymous user

Navigation menu