Page 1 of 2
Unable to connect to Windows Server Using NagiosXI
Posted: Mon Feb 01, 2016 10:24 pm
by rahul5028
I'm trying to setup NagiosXI to monitor our Internal Windows Server but unfortunately its showing error message " connect to address 172.25.30.41 and port 12489: Network is unreachable".
I have checked all configurations at both sides(NagiosXI & NSClient++ on windows server),It looks all good.Could you please help out why this error is coming and how we can rectify this issue.
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Tue Feb 02, 2016 10:28 am
by rkennedy
From the Nagios machine, can you ping 172.25.30.41? The Nagios machine will still need a route to your internal network.
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Tue Feb 02, 2016 1:09 pm
by rahul5028
When I try to Ping 172.25.30.41, it saying Newtwork unreachable. I checked NSClient config file as well and there is entry for "Allowed host=192.168.222.1(Nagiosxi IP)" but still I don't understand why this error is displaying.
Also Is there any way to find running logs from NSClinet agent, Could you please send that info as well if there is any way to see them?
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Tue Feb 02, 2016 2:22 pm
by bwallace
If you cannot ping your Windows server from the Nagios machine, then this is most likely a network issue. Is there a firewall between these devices? If so, check to see if it has logged any blocked/dropped requests from Nagios XI.
From your Nagios XI server can you ping anything on 172.25.30.xx?
To answer your other question, check the nsclient.log on the windows server. Default path is C:\Program Files\NSClient++
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Thu Feb 04, 2016 3:35 pm
by rahul5028
I turned off firewall on devices, So there is nothing to block port or device.
Here is the my NSClient++ log file, I don't understand what it is and where the problem.
2016-01-31 00:20:34: error:D:\source\nscp\modules\NRPEServer\NRPEServer.cpp:132: CA not found: C:\Program Files\NSClient++/security/ca.pem (generating a default CA)
Please help us with options what we have to rectify this probelm.
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Thu Feb 04, 2016 3:37 pm
by hsmith
rahul5028 wrote:I turned off firewall on devices, So there is nothing to block port or device.
That should help.
rahul5028 wrote:Please help us with options what we have to rectify this probelm.
Can you now ping this server?
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Thu Feb 04, 2016 3:38 pm
by rkennedy
Also, what is the output of ifconfig from your Nagios machine?
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Thu Feb 04, 2016 3:58 pm
by rahul5028
Here is the output of Ifconfig from Nagios Machine:
[osgadmin@localhost nagiosxi]$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:3d:5a:32 txqueuelen 1000 (Ethernet)
RX packets 30 bytes 3705 (3.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 5998 bytes 3084865 (2.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5998 bytes 3084865 (2.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Thu Feb 04, 2016 4:28 pm
by bwallace
Thanks for the ifconfig output --
Please clarify, when you say
I turned off firewall on devices
do you mean you disabled the Windows FW on the client? What is in the path between Nagios XI and the Client? Did you disable a Firewall there as well?
What does a Wireshark or tcpdump (taken while ping fails) tell you?
Re: Unable to connect to Windows Server Using NagiosXI
Posted: Thu Feb 04, 2016 4:39 pm
by rahul5028
I turned off firewall on windows server where NSClient is running and my nagiosXI running on VMWare which is set up on my machine here also I turned off firewall.
Not sure about wireshark or tcpudp.