Host unreachable Windows 10

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.
LibrarianJoe
Posts: 16
Joined: Fri Feb 08, 2019 1:26 pm

Host unreachable Windows 10

Post by LibrarianJoe »

Hello,

Have installed NSClient++, with all the options checked, on a Windows 10 machine to monitor it from the Nagios console/Web GUI on an Ubuntu machine. Currently the windows host appears in the hosts lists, but every service and the host in general reads "Host unreachable"

Have tried:

-Uninstalling and reinstalling NSClient++
-Restarting the Nagios service
-Checking firewall settings, couldn't ID any issues

What else can I try?

Best,
Joe
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host unreachable Windows 10

Post by scottwilkerson »

Host unreachable
This indicates that the plugin cannot get to the host to perform the checks.

Can you share your check_nt command definition along with the host and service definitions
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
LibrarianJoe
Posts: 16
Joined: Fri Feb 08, 2019 1:26 pm

Re: Host unreachable Windows 10

Post by LibrarianJoe »

Here's the check_nt one:

define service {
use generic-service
host_name Techserv workstation
service_description Uptime
check_command check_nt!UPTIME
}
And the host:

define host {
use windows-server
host_name Techservworkstation
alias My Windows Server
address 192.168.10.85
}

Is that all the information needed? If not, please let me know. I'm fairly new to this and to Linux in general so fully expect to be off and accept correction.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host unreachable Windows 10

Post by scottwilkerson »

I also would like to see the command definition for check_nt
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
LibrarianJoe
Posts: 16
Joined: Fri Feb 08, 2019 1:26 pm

Re: Host unreachable Windows 10

Post by LibrarianJoe »

Here it is:

define command {

command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host unreachable Windows 10

Post by scottwilkerson »

From your Nagios server can you ping this host?

Code: Select all

ping 192.168.10.85
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
LibrarianJoe
Posts: 16
Joined: Fri Feb 08, 2019 1:26 pm

Re: Host unreachable Windows 10

Post by LibrarianJoe »

No, it times out
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host unreachable Windows 10

Post by scottwilkerson »

LibrarianJoe wrote:No, it times out
It looks like your Nagios server cannot reach the server you are trying to monitor
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
LibrarianJoe
Posts: 16
Joined: Fri Feb 08, 2019 1:26 pm

Re: Host unreachable Windows 10

Post by LibrarianJoe »

Makes sense. Is that something I'd need to get the network administrator to adjust? Or a Nagios-end thing I can adjust?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host unreachable Windows 10

Post by scottwilkerson »

LibrarianJoe wrote:Makes sense. Is that something I'd need to get the network administrator to adjust?
Yes
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked