Page 1 of 1

how to monitor multiple windows server

Posted: Fri Feb 27, 2015 8:15 am
by ajanquart69
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

Re: how to monitor multiple windows server

Posted: Fri Feb 27, 2015 9:55 am
by jdalrymple
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.