Create a new configuration remotehost.cfg file under /usr/local/nagios/etc/objects in nagios server and define the host and the service definition for this particular remotehost in that file. Else take the localhost.cfg and copy it as remotehost.cfg and modifying it according to your needs.
host definition sample:
Service definition sample:
service_description Host Status
Note: In all the above examples, replace remotehost with the corresponding to hostname of your remotehost.
Add configuration file path in nagios.cfg file,
To check configuration,run below command :
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
then restart nagios,
service nagios restart
Thats it, the host has been added to nagios for monitoring.
Not at all
What could be better? (Optional)
Not related to my issue
Too complicated explanations
Too much information
Too old information
Do you have any other feedback about this faq ?