how to monitor multiple windows server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ajanquart69
Posts: 1
Joined: Fri Feb 27, 2015 8:11 am

how to monitor multiple windows server

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: how to monitor multiple windows server

Post 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.
Locked