Editing
Adding hosts and services to Nagios - Windows hosts
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Adding Windows Host in Nagios ----------------------------- Connect to Server (nagios.apoyar) Go to below path and edit .cfg file β’ cd /usr/local/etc/nagios/objects/machines β’ ls β’ vi apoyar.cfg (depending on whether we are adding host for Apoyar or other customers) Copy the configuration format for windows server added before Edit the hostname (TempNCC) and address (tempncc.apoyar-networks.com) for new host Add the host name in member list Save file (:wq!) and exit vi editor Go to below path β’ cd /usr/local/etc/nagios/objects β’ vi services.cfg Add the new hostname to the services, which we need for new server in Nagios We can do with following command, will get same services like Mercury DC for new host :%s/Mercury-DC, /Mercury-DC, TempNCC, /gc Save file (:wq!) and exit vi editor For those services, which we need other than Mercury DC Go to that particular service configuration and enter new server (TempNCC) name manually Connect to new host (TempNCC) Type in file explorer \\ncc1701d\\sourcefiles dir copy NSClient++ folder Paste it on (TempNCC) serverβs desktop Open NSClient++ folder on desktop β’ Install 64-bit file β’ Generic β’ Typical β’ Install β’ Finish Open services Stop NSClient++ service Go to NSClient++ folder on desktop Copy nsclient file Go to C:\Program Files\NSClient++ Paste, Replace file in destination Go to NSClient++ folder on desktop Open scripts folder Copy four scripts Go to C:\Program Files\NSClient++\Scripts Paste Open copied nsclient.ini file and Replace 10.0.1.45 (nagios private IP) with 128.0.3.254 (nagios vpn IP) and save file. Start NSClient++ service Delete NSClient++ folder on Desktop Disable Nagios notifications Run below command to check all warnings and alerts /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg To disable windows (ex. MapsBroker) service Open PowerShell as admin Run below command Get-Service -Name MapsBroker | Set-Service -StartupType Disabled Go to server manager on (TempNCC) server β’ Manage β’ Add roles and features β’ Select .NET Framework 3.5 β’ Next β’ Next β’ Install β’ Finish After this go to https://nagios.apoyar.net/ Check for the server we added Reschedule the check for all services It will be visible and working in Nagios for Monitoring
Summary:
Please note that all contributions to Apoyar Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Apoyar Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Apoyar Infrastructure
Active Directory
Recent changes
Random page
Upload file
Tools
What links here
Related changes
Special pages
Page information