Hello,
I'm new to Nagios.
I managed to install and configure the server.
Now I changed the windows.cfg file to monitor a windows server. This works fine.
But now I want to monitor more servers.
A trick is to copy/paste the host and services tags in the windows.cfg file.
Is there a way to make a separate cfg file for each server?
And if yes, how can I achieve this?
Thanks in advance
Greetings
Lainkes
how to monitor multiple windows server
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: how to monitor multiple windows server
Depending on your install, there should be a conf.d directory. This would be where you'd dump all of your separate config files to be read. On a standard install this is at /usr/local/nagios/etc/conf.d but not all installs are the same. You can find exactly where that directory is by locating the line in nagios.cfg that starts with "cfg_dir"
You can also specify additional directories to be ready by just adding more cfg_dir lines.
You can also specify additional directories to be ready by just adding more cfg_dir lines.