Anonymous user
Adding hosts and services to Nagios - Redhat hosts: Difference between revisions
Adding hosts and services to Nagios - Redhat hosts (edit)
Revision as of 08:56, 5 December 2022
, 5 December 2022no edit summary
(Created page with "Adding Redhat host to Nagios -------------------------------- 1. Connect to Nagios server (nagios.apoyar with neal username and apoyar.key) #cd /usr/local/etc/nagios/objects/machines #open and edit .cfg file (depending on whether we are adding host for Apoyar or other customers) 2. Add the host name in member list to recognize Nagios probe for checks Save file (:wq!) and exit vi editor Go to below path • cd /usr/local/etc/nagios/objects • vi servic...") |
No edit summary |
||
| Line 58: | Line 58: | ||
chown nagios:nagios /home/nagios/.ssh/ authorized_keys | chown nagios:nagios /home/nagios/.ssh/ authorized_keys | ||
then try to ssh new server from nagios server (It should work) | |||
| Line 89: | Line 90: | ||
chown nagios:nagios /home/nagios/bin/* | chown nagios:nagios /home/nagios/bin/* | ||
9. Run below command on nagios server and check syntax errors with below command | |||
/usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg | |||
10. If we got all errors and warning zero, then go to nagios dashboard (nagios.apoyar.eu) and restart the nagios process it. | |||