Unable to connect to Windows Server Using NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Unable to connect to Windows Server Using NagiosXI

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to connect to Windows Server Using NagiosXI

Post 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.
Former Nagios Employee
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Unable to connect to Windows Server Using NagiosXI

Post 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?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Unable to connect to Windows Server Using NagiosXI

Post 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++
Be sure to check out the Knowledgebase for helpful articles and solutions!
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Unable to connect to Windows Server Using NagiosXI

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Unable to connect to Windows Server Using NagiosXI

Post 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?
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to connect to Windows Server Using NagiosXI

Post by rkennedy »

Also, what is the output of ifconfig from your Nagios machine?
Former Nagios Employee
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Unable to connect to Windows Server Using NagiosXI

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Unable to connect to Windows Server Using NagiosXI

Post 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?
Be sure to check out the Knowledgebase for helpful articles and solutions!
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Unable to connect to Windows Server Using NagiosXI

Post 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.
Locked