# Download the NSClient
[Link]
# Find check_nt command and edit it to include the password
sudo vim /usr/local/nagios/etc/objects/[Link]
###################################################################################
#########
...
define command {
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s PASSWORD -v
$ARG1$ $ARG2$
}
...
###################################################################################
#########
# Add the IP of windows host
sudo vim /usr/local/nagios/etc/objects/[Link]
# Uncomment windows config path
sudo vim /usr/local/nagios/etc/[Link]
###################################################################################
#########
...
cfg_file=/usr/local/nagios/etc/objects/[Link]
...
###################################################################################
#########
# Verify and restart the service
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/[Link]
sudo systemctl restart [Link]