Unable to check open ports - Unable to check service status due to agent or comm

Started by revand, December 20, 2018, 07:20:30 PM

Previous topic - Next topic

revand

I am currently having problems checking open ports with the Network Service Object.

OS: Ubuntu 16.04.5 LTS
NetXMS: 2.2.10
NxAgent: 2.2.10
CPU: 4 Cores
RAM: 4GB

I have installed the SubAgent PORTCHECK and it loads successfully. But every device the port check returns with the error "Unable to check service status due to agent or communication error".

I have checked,

  • Agent is running
  • Firewall
  • NMAP on server returns open ports
  • Reboot Server
  • Restart NetXMS and NXAgent service

NxAgent Output
Quote2018.12.18 10:42:09.195 Log file opened (rotation policy 2, max size 4194304)
2018.12.18 10:42:09.196 *D* Log rotation policy set to 2 (size=16777216, count=4)
2018.12.18 10:42:09.196 *I* Core agent version 2.2.10
2018.12.18 10:42:09.196 *I* Additional configs was loaded from /etc/nxagentd.conf.d
2018.12.18 10:42:09.196 *I* Debug level set to 0
2018.12.18 10:42:09.196 *I* Data directory: /var/lib/netxms
2018.12.18 10:42:09.196 *I* File store: /tmp
2018.12.18 10:42:09.212 *I* DB Library: Database driver "sqlite.ddr" loaded and initialized successfully
2018.12.18 10:42:09.349 *I* Agent ID is 0e337872-fd79-45a7-9d3c-af97e58362e6
2018.12.18 10:42:09.358 *I* Local host name is "NetXMS.office.pocketinet.com"
2018.12.18 10:42:09.358 *I* Using system name "NetXMS"
2018.12.18 10:42:10.375 *I* Subagent "Linux" (linux.nsm) loaded successfully (version 2.2.10)
2018.12.18 10:42:10.377 *I* Subagent "PORTCHECK" (portcheck.nsm) loaded successfully (version 2.2.10)
2018.12.18 10:42:11.382 *I* Listening on socket 0.0.0.0:4700
2018.12.18 10:42:11.382 *I* Listening on socket [::]:4700
2018.12.18 10:42:12.383 *I* NetXMS Agent started
2018.12.18 11:12:02.051 *I* NetXMS Agent stopped

Node Status Poll
Quote[20.12.2018 08:44:57] **** Poll request sent to server ****
[20.12.2018 08:44:57] Poll request accepted
[20.12.2018 08:44:57] Starting status poll for node Unifi Controller
[20.12.2018 08:44:57]    Starting status poll on interface unknown
[20.12.2018 08:44:57]       Current interface status is NORMAL
[20.12.2018 08:44:57]       Starting ICMP ping
[20.12.2018 08:44:57]       Interface is NORMAL for 2421 polls (1 poll required for status change)
[20.12.2018 08:44:57]       Interface status after poll is NORMAL
[20.12.2018 08:44:57]    Finished status poll on interface unknown
[20.12.2018 08:44:57]    Starting status poll on network service Port 8080
[20.12.2018 08:44:57]       Current service status is UNKNOWN
[20.12.2018 08:44:57]       Polling service from node NetXMS [IP REDACTED]
[20.12.2018 08:44:57]       Unable to check service status due to agent or communication error
[20.12.2018 08:44:57]    Finished status poll on network service Port 8080
[20.12.2018 08:44:57]    Starting status poll on network service HTTP
[20.12.2018 08:44:57]       Current service status is UNKNOWN
[20.12.2018 08:44:57]       Polling service from node NetXMS [IP REDACTED]
[20.12.2018 08:44:57]       Unable to check service status due to agent or communication error
[20.12.2018 08:44:57]    Finished status poll on network service HTTP
[20.12.2018 08:44:57]    Starting status poll on network service test 10001
[20.12.2018 08:44:57]       Current service status is UNKNOWN
[20.12.2018 08:44:57]       Polling service from node NetXMS [IP REDACTED]
[20.12.2018 08:44:57]       Unable to check service status due to agent or communication error
[20.12.2018 08:44:57]    Finished status poll on network service test 10001
[20.12.2018 08:44:57]    Starting status poll on network service ssh
[20.12.2018 08:44:57]       Current service status is UNKNOWN
[20.12.2018 08:44:57]       Polling service from node NetXMS [IP REDACTED]
[20.12.2018 08:44:57]       Unable to check service status due to agent or communication error
[20.12.2018 08:44:57]    Finished status poll on network service ssh
[20.12.2018 08:44:57] Node is connected
[20.12.2018 08:45:01] Finished status poll for node Unifi Controller
[20.12.2018 08:45:01] Node status after poll is NORMAL
[20.12.2018 08:45:01] **** Poll completed successfully ****

I have checked these forum posts and either its about checking web pages or I have already done all the things.
https://www.netxms.org/forum/configuration/network-service/msg9702/#msg9702
https://www.netxms.org/forum/configuration/website-monitoring-using-network-service/msg16373/#msg16373
https://www.netxms.org/forum/general-support/cannot-figure-web-site-monitor/msg7382/#msg7382

Any help would be appreciated.
Jarred