Page 1 of 1

need to monitor a new host in core 3.2.3

Posted: Thu Aug 11, 2016 3:30 pm
by tyranus38
Afternoon,

I am completely new to nagios, a former coworker set it up in vmware. I need to add a host so i can monitor it, and delete a host that was de-commissioned. can someone point me in the right direction to a step by step guide. I believe i need to add to my windows.cfg file and install nsclient on the target but where and how? I am not linux savvy

Re: need to monitor a new host in core 3.2.3

Posted: Thu Aug 11, 2016 4:45 pm
by rkennedy
Core really depends how it was initially setup. Take a look at the /usr/local/nagios/etc/ folder, and look around at the .cfg files around there and the sub directories, my guess is that the file is somewhere in there.

You might be able to run a recursive grep that will help, grep -R 'yourhost' /usr/local/nagios/etc/. (replace yourhost with the one you want to decommission, you could probably just edit it to be the newer one.)

This will help point you to the place of which file you need to edit. After modifying it, run service nagios restart to apply your configuration.

Then, yes, install NSClient++ on the new server, and modify the NSClient++ configuration file as needed. (might be able to just copy over the nsclient.ini or nsc.ini file from the old server provided it's the SAME NSClient++ version)