What part of the
Nagios Core official documentation did you read? There are sections about monitoring various types of hosts, e.g. Windows, Linux, printers, switches, etc.
Also, there is a section on object definitions here:
https://assets.nagios.com/downloads/nag ... tions.html.
I would recommend reading the documentation carefully first then trying to configure Nagios Core on your own. If you have a specific question/issue, we will gladly help. However, we do not provide Nagios training per se on the forum.
Having said that, here's what you can try:
1. Start simple - add one host. The configuration files for hosts/services are usually located in the "/usr/local/nagios/etc/objects/" directory. In order for nagios to "see" the new config, you should add the path to it in the nagios.cfg (main nagios config).
Example host config:
Code: Select all
define host{
use windows-server
host_name winserver
alias My Windows Server
address 192.168.0.100
}
Example entry in the nagios.cfg (path to the windows.cfg configuration file):
Code: Select all
# Definitions for monitoring a Windows machine
cfg_file=/usr/local/nagios/etc/objects/windows.cfg
2. Test your configuration for errors by running:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
3. If you see any errors, try to fix them fist as nagios cannot start/restart with config errors.
4. If there are no errors, restart nagios:
5. Check to see if the host showed up in the GUI.
6. Add services to this host, verify the configuration, restart nagios, check the GUI, etc.
Since you are new to Nagios Core, you may need to watch our Nagios Core "Tour" videos here:
https://youtu.be/2hVBAet-XpY
If you struggle with manual configuration in Nagios Core, you can always purchase (or at least try) Nagios XI, where configuration is a lot easier.
https://www.nagios.com/products/nagios-xi/
Hope this helps.