<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Adding_Windows_Host_in_Nagios</id>
	<title>Adding Windows Host in Nagios - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Adding_Windows_Host_in_Nagios"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Adding_Windows_Host_in_Nagios&amp;action=history"/>
	<updated>2026-07-21T03:48:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Adding_Windows_Host_in_Nagios&amp;diff=152&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Adding Windows Host in Nagios -----------------------------    Connect to Server (nagios.apoyar)  Go to below path and edit .cfg file  •	cd /usr/local/etc/nagios/objects/mac...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Adding_Windows_Host_in_Nagios&amp;diff=152&amp;oldid=prev"/>
		<updated>2021-01-25T12:11:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Adding Windows Host in Nagios -----------------------------    Connect to Server (nagios.apoyar)  Go to below path and edit .cfg file  •	cd /usr/local/etc/nagios/objects/mac...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Adding Windows Host in Nagios&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Connect to Server (nagios.apoyar)&lt;br /&gt;
&lt;br /&gt;
Go to below path and edit .cfg file&lt;br /&gt;
&lt;br /&gt;
•	cd /usr/local/etc/nagios/objects/machines&lt;br /&gt;
&lt;br /&gt;
•	ls&lt;br /&gt;
&lt;br /&gt;
•	vi apoyar.cfg (depending on whether we are adding host for Apoyar or other customers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Copy the configuration format for windows server added before&lt;br /&gt;
&lt;br /&gt;
Edit the hostname (TempNCC) and address (tempncc.apoyar-networks.com) for new host&lt;br /&gt;
&lt;br /&gt;
Add the host name in member list&lt;br /&gt;
&lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
•	cd /usr/local/etc/nagios/objects&lt;br /&gt;
&lt;br /&gt;
•	vi services.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the new hostname to the services, which we need for new server in Nagios&lt;br /&gt;
&lt;br /&gt;
We can do with following command, will get same services like Mercury DC for new host&lt;br /&gt;
&lt;br /&gt;
:%s/Mercury-DC, /Mercury-DC, TempNCC, /gc&lt;br /&gt;
&lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
For those services, which we need other than Mercury DC&lt;br /&gt;
&lt;br /&gt;
Go to that particular service configuration and enter new server (TempNCC) name manually &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Connect to new host (TempNCC)&lt;br /&gt;
&lt;br /&gt;
Type in file explorer \\ncc1701d\\sourcefiles&lt;br /&gt;
&lt;br /&gt;
dir&lt;br /&gt;
&lt;br /&gt;
copy NSClient++ folder &lt;br /&gt;
&lt;br /&gt;
Paste it on (TempNCC) server’s desktop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open NSClient++ folder on desktop&lt;br /&gt;
&lt;br /&gt;
•	Install 64-bit file&lt;br /&gt;
&lt;br /&gt;
•	Generic&lt;br /&gt;
&lt;br /&gt;
•	Typical&lt;br /&gt;
&lt;br /&gt;
•	Install&lt;br /&gt;
&lt;br /&gt;
•	Finish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open services	&lt;br /&gt;
&lt;br /&gt;
Stop NSClient++ service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to NSClient++ folder on desktop&lt;br /&gt;
&lt;br /&gt;
Copy nsclient file&lt;br /&gt;
&lt;br /&gt;
Go to&lt;br /&gt;
&lt;br /&gt;
C:\Program Files\NSClient++&lt;br /&gt;
&lt;br /&gt;
Paste, Replace file in destination&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to NSClient++ folder on desktop&lt;br /&gt;
&lt;br /&gt;
Open scripts folder&lt;br /&gt;
&lt;br /&gt;
Copy four scripts&lt;br /&gt;
&lt;br /&gt;
Go to&lt;br /&gt;
&lt;br /&gt;
C:\Program Files\NSClient++\Scripts&lt;br /&gt;
&lt;br /&gt;
Paste &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start NSClient++ service&lt;br /&gt;
&lt;br /&gt;
Delete NSClient++ folder on Desktop&lt;br /&gt;
&lt;br /&gt;
Disable Nagios notifications&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run below command to check all warnings and alerts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To disable windows (ex. MapsBroker) service &lt;br /&gt;
&lt;br /&gt;
Open PowerShell as admin&lt;br /&gt;
&lt;br /&gt;
Run below command&lt;br /&gt;
&lt;br /&gt;
Get-Service -Name MapsBroker | Set-Service -StartupType Disabled&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to server manager on (TempNCC) server&lt;br /&gt;
&lt;br /&gt;
•	Manage&lt;br /&gt;
&lt;br /&gt;
•	Add roles and features&lt;br /&gt;
&lt;br /&gt;
•	Select .NET Framework 3.5&lt;br /&gt;
&lt;br /&gt;
•	Next&lt;br /&gt;
&lt;br /&gt;
•	Next&lt;br /&gt;
&lt;br /&gt;
•	Install&lt;br /&gt;
&lt;br /&gt;
•	Finish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this go to https://nagios.apoyar.net/&lt;br /&gt;
&lt;br /&gt;
Check for the server we added&lt;br /&gt;
&lt;br /&gt;
Reschedule the check for all services&lt;br /&gt;
&lt;br /&gt;
It will be visible and working in Nagios for Monitoring&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>