Monitor WEBClient Mailserver

Started by rainerh, May 27, 2025, 11:51:42 AM

Previous topic - Next topic

rainerh

Hello,
I try to monitor Webmal
https://mail.mayside.de with HTTPS Port 443


When I stop the HTTPS WEB Page from my Mailserver, it is not reachable - for testing = ok
But the result in NetXMS monitoring is << ERROR >>

I thougt that a value of 2 means cannot connect to server, but I did not get 2, i got << ERROR >> for all my tests

Metric I tested:
ServiceCheck.HTTPS(8x.xxx.xx.1x,443,/webmail/login/,mail.mydomain.de,"text")
NetworkService.Status(tcp://8x.xxx.xx.1x:443)

Thank you very much for helping
Rainer

Filipp Sudanov

Hi,

I am not sure about ServiceCheck.HTTPS metric as I do not see it in current docs, may be it's something from earlier versions.
Currently available metrics with some examples are available here: https://www.netxms.org/documentation/adminguide/service-monitoring.html#network-service-monitoring-using-dci

Note that netsvc subagent should be enabled in configuration file of the agent that you use to collect these metrics.

If you face <<ERROR>> you can set DebugLevel=6 in configuration file of the agent. Agent restart is needed for it to have effect. Agent log should have more detailed info about the reasons for the error. Feel free to share your log here

rainerh

...
2025.05.27 12:27:34.398 *I* [startup            ] Core agent version 5.2.2 (build tag 5.2-326-g1ae061f3fb)
2025.05.27 12:27:34.400 *I* [startup            ] System time zone is MZX+02MSX
2025.05.27 12:27:34.401 *I* [config            ] Additional configuration files was loaded from C:\NetXMS\etc\nxagentd.conf.d
2025.05.27 12:27:34.402 *I* [logger            ] Debug level set to 6
2025.05.27 12:27:34.403 *I* [config            ] Main configuration file: C:\NetXMS\etc\nxagentd.conf
2025.05.27 12:27:34.404 *I* [config            ] Configuration tree:
2025.05.27 12:27:34.405 *I* [config            ] config
2025.05.27 12:27:34.407 *I* [config            ]  +- CORE
2025.05.27 12:27:34.408 *I* [config            ]      +- MasterServers
2025.05.27 12:27:34.409 *I* [config            ]      |    value: 10.10.11.15
2025.05.27 12:27:34.411 *I* [config            ]      +- ConfigIncludeDir
2025.05.27 12:27:34.412 *I* [config            ]      |    value: C:\NetXMS\etc\nxagentd.conf.d
2025.05.27 12:27:34.413 *I* [config            ]      +- LogFile
2025.05.27 12:27:34.413 *I* [config            ]      |    value: C:\NetXMS\log\nxagentd.log
2025.05.27 12:27:34.415 *I* [config            ]      +- DebugLevel
2025.05.27 12:27:34.416 *I* [config            ]      |    value: 6
2025.05.27 12:27:34.418 *I* [config            ]      +- FileStore
2025.05.27 12:27:34.419 *I* [config            ]      |    value: C:\NetXMS\var
2025.05.27 12:27:34.420 *I* [config            ]      +- SubAgent
2025.05.27 12:27:34.421 *I* [config            ]      |    value: ecs.nsm
2025.05.27 12:27:34.422 *I* [config            ]      |    value: filemgr.nsm
2025.05.27 12:27:34.423 *I* [config            ]      |    value: ping.nsm
2025.05.27 12:27:34.424 *I* [config            ]      |    value: logwatch.nsm
2025.05.27 12:27:34.425 *I* [config            ]      |    value: mqtt.nsm
2025.05.27 12:27:34.427 *I* [config            ]      |    value: netsvc.nsm
2025.05.27 12:27:34.428 *I* [config            ]      |    value: portcheck.nsm
2025.05.27 12:27:34.428 *I* [config            ]      |    value: ssh.nsm
2025.05.27 12:27:34.430 *I* [config            ]      |    value: winperf.nsm
2025.05.27 12:27:34.431 *I* [config            ]      |    value: wmi.nsm
2025.05.27 12:27:34.432 *I* [config            ]      +- ExternalParameter
...
2025.05.27 12:27:34.446 *D* [startup            ] Configuration policy directory: C:\Users\Administrator\AppData\Local\nxagentd\config_ap\
2025.05.27 12:27:34.447 *D* [startup            ] Log parser policy directory: C:\Users\Administrator\AppData\Local\nxagentd\logparser_ap\
2025.05.27 12:27:34.449 *D* [startup            ] User agent policy directory: C:\Users\Administrator\AppData\Local\nxagentd\useragent_ap\
2025.05.27 12:27:34.450 *D* [startup            ] Certificate directory: C:\Users\Administrator\AppData\Local\nxagentd\certificates\
2025.05.27 12:27:34.451 *D* [startup            ] CRL directory: C:\Users\Administrator\AppData\Local\nxagentd\crl\
2025.05.27 12:27:34.455 *D* [crypto            ] Validating ciphers
2025.05.27 12:27:34.456 *D* [crypto            ]    AES-256 enabled
2025.05.27 12:27:34.456 *D* [crypto            ]    Blowfish-256 disabled (validation failed)
2025.05.27 12:27:34.457 *D* [crypto            ]    IDEA disabled (validation failed)
2025.05.27 12:27:34.459 *D* [crypto            ]    3DES enabled
2025.05.27 12:27:34.460 *D* [crypto            ]    AES-128 enabled
2025.05.27 12:27:34.461 *D* [crypto            ]    Blowfish-128 disabled (validation failed)
2025.05.27 12:27:34.462 *I* [crypto            ] Crypto library initialized (OpenSSL 3.0.15 3 Sep 2024)
2025.05.27 12:27:34.465 *D* [threads.pool      ] Thread pool TIMER initialized (min=2, max=16)
2025.05.27 12:27:34.466 *D* [startup            ] Subagent API initialized
2025.05.27 12:27:34.469 *D* [db.drv.sqlite      ] SQLite version 3.41.2
2025.05.27 12:27:34.470 *I* [db.drv            ] Database driver "sqlite.ddr" loaded and initialized successfully
2025.05.27 12:27:34.472 *D* [db.conn            ] New DB connection opened: handle=000001FA0774AD30
2025.05.27 12:27:34.585 *I* [db.agent          ] Empty local database successfully initialized
2025.05.27 12:27:34.594 *D* [db.query          ] DB Library: global long running query threshold set to 250
2025.05.27 12:27:34.610 *I* [db.agent          ] Local database opened successfully
2025.05.27 12:27:34.616 *I* [                  ] Agent ID backup file updated
2025.05.27 12:27:34.617 *I* [startup            ] New agent ID generated
2025.05.27 12:27:34.618 *I* [startup            ] Agent ID is d98e51aa-2f3e-494c-a09a-aae30000d07e
2025.05.27 12:27:34.619 *I* [startup            ] Local host name is "xxxxxx0S00002.xxxxxxxxx.local"
2025.05.27 12:27:34.620 *I* [startup            ] Using system name "xxxxxx0S00002"
2025.05.27 12:27:34.622 *D* [comm              ] Maximum number of sessions set to 32
2025.05.27 12:27:34.624 *D* [threads.pool      ] Thread pool COMM initialized (min=8, max=512)
2025.05.27 12:27:34.625 *D* [threads.pool      ] Thread pool WEBSVC initialized (min=4, max=64)
2025.05.27 12:27:34.628 *D* [comm              ] Added server access record 10.10.11.15 (control=true, master=true)
2025.05.27 12:27:34.629 *I* [startup            ] Arbitrary command execution disabled
2025.05.27 12:27:34.634 *D* [smbios            ] System manufacturer: QEMU
2025.05.27 12:27:34.635 *D* [smbios            ] System product name: Standard PC (i440FX + PIIX, 1996)
2025.05.27 12:27:34.636 *D* [smbios            ] System serial number:
2025.05.27 12:27:34.637 *D* [smbios            ] System UUID: 4224b8ca-c42a-922d-8741-0741d74d7634
2025.05.27 12:27:34.639 *D* [smbios            ] Baseboard manufacturer:
2025.05.27 12:27:34.641 *D* [smbios            ] Baseboard product name:
2025.05.27 12:27:34.642 *D* [smbios            ] Baseboard serial number:
2025.05.27 12:27:34.643 *D* [smbios            ] Baseboard type:
2025.05.27 12:27:34.644 *D* [smbios            ] Baseboard version:
2025.05.27 12:27:34.645 *D* [smbios            ] BIOS vendor: Proxmox distribution of EDK II
2025.05.27 12:27:34.647 *D* [smbios            ] BIOS version: 4.2025.02-3
2025.05.27 12:27:34.653 *D* [smbios            ] BIOS address: E800
2025.05.27 12:27:34.655 *D* [winnt              ] Performance counter frequency 10000000 Hz
2025.05.27 12:27:34.656 *D* [winnt              ] CPU stat collector started (4 CPUs)
2025.05.27 12:27:34.657 *D* [winnt              ] I/O stat collector thread started
2025.05.27 12:27:34.658 *I* [subagents          ] Subagent "WinNT" (WINNT.NSM) loaded successfully (version 5.2.2)
2025.05.27 12:27:34.661 *D* [winnt              ] Physical disk 0 added to I/O stat collector
2025.05.27 12:27:34.662 *W* [subagents          ] Subagent module ecs.nsm was substituted with netsvc.nsm (ECS subagent is superseded by NETSVC subagent)
2025.05.27 12:27:34.663 *D* [winnt              ] Physical disk 1 added to I/O stat collector
2025.05.27 12:27:34.665 *D* [winnt              ] Physical disk 2 added to I/O stat collector
2025.05.27 12:27:34.666 *D* [init.curl          ] cURL initialized (version: libcurl/8.9.1 Schannel WinIDN)
2025.05.27 12:27:34.668 *D* [winnt              ] Physical disk 3 added to I/O stat collector
2025.05.27 12:27:34.670 *D* [init.curl          ] cURL supported protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
2025.05.27 12:27:34.671 *I* [subagents          ] Subagent "NETSVC" (netsvc.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:34.674 *W* [filemgr            ] No root directories in file manager configuration
2025.05.27 12:27:34.674 *E* [subagents          ] Initialization of subagent "FILEMGR" (filemgr.nsm) failed
2025.05.27 12:27:34.677 *D* [threads.pool      ] Thread pool PING initialized (min=1, max=1024)
2025.05.27 12:27:34.680 *D* [ping              ] Packet rate set to 4 packets per minute (15000 ms between packets)
2025.05.27 12:27:34.682 *I* [subagents          ] Subagent "PING" (ping.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:34.687 *D* [logwatch          ] AddLogwatchPolicyFiles(): Log parser policy directory: C:\Users\Administrator\AppData\Local\nxagentd\logparser_ap\
2025.05.27 12:27:34.688 *I* [subagents          ] Subagent "LOGWATCH" (logwatch.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:34.692 *D* [mqtt              ] 0 MQTT parameters and 0 MQTT lists added from configuration
2025.05.27 12:27:34.693 *D* [mqtt              ] Using libmosquitto 2.0.15
2025.05.27 12:27:34.694 *D* [mqtt              ] Automatic registration of MQTT topics is enabled
2025.05.27 12:27:34.695 *I* [subagents          ] Subagent "MQTT" (mqtt.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:34.696 *W* [subagents          ] Subagent "NETSVC" already loaded from module "netsvc.nsm"
2025.05.27 12:27:34.699 *W* [subagents          ] Subagent module portcheck.nsm was substituted with netsvc.nsm (PORTCHECK subagent is superseded by NETSVC subagent)
2025.05.27 12:27:34.700 *W* [subagents          ] Subagent "NETSVC" already loaded from module "netsvc.nsm"
2025.05.27 12:27:34.703 *D* [ssh                ] Using libssh version 0.11.0/openssl/zlib
2025.05.27 12:27:34.704 *D* [ssh                ] Workaround for ssh_channel_read bug is disabled
2025.05.27 12:27:34.705 *D* [ssh                ] InitializeSessionPool: connection pool initialized
2025.05.27 12:27:34.706 *I* [subagents          ] Subagent "SSH" (ssh.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:35.006 *D* [winperf            ] 4725 counter indexes read
2025.05.27 12:27:35.027 *D* [winperf            ] 4682 counter translations read
2025.05.27 12:27:35.134 *D* [winperf            ] Counter translated: \Memory\Free & Zero Page List Bytes ==> \Arbeitsspeicher\Freie und Nullseitenlisten - Bytes
2025.05.27 12:27:35.135 *D* [winperf            ] "\Memory\Free & Zero Page List Bytes" is supported
2025.05.27 12:27:35.137 *D* [winperf            ] Counter translated: \System\Processor Queue Length ==> \System\Prozessor-Warteschlangenlänge
2025.05.27 12:27:35.138 *D* [winperf            ] Counter translated: \System\Processor Queue Length ==> \System\Prozessor-Warteschlangenlänge
2025.05.27 12:27:35.139 *D* [winperf            ] Counter translated: \System\Processor Queue Length ==> \System\Prozessor-Warteschlangenlänge
2025.05.27 12:27:35.140 *I* [subagents          ] Subagent "WinPerf" (winperf.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:35.141 *D* [winperf            ] CollectorThread_B waiting for set change
2025.05.27 12:27:35.142 *D* [winperf            ] CollectorThread_A waiting for set change
2025.05.27 12:27:35.144 *D* [winperf            ] CollectorThread_A: set changed
2025.05.27 12:27:35.145 *I* [subagents          ] Subagent "WMI" (wmi.nsm) loaded successfully (version 5.2.2)
2025.05.27 12:27:35.146 *D* [winperf            ] CollectorThread_C waiting for set change
2025.05.27 12:27:35.147 *D* [winperf            ] CollectorThread_A: Counter "\System\Prozessor-Warteschlangenlänge" added to query
2025.05.27 12:27:35.148 *I* [startup            ] System hardware ID is 5F958DF4EB30DBC3AC1D0F70C3321C21ABB198A6
2025.05.27 12:27:35.149 *D* [winperf            ] CollectorThread_A: Counter "\System\Prozessor-Warteschlangenlänge" added to query
2025.05.27 12:27:35.150 *D* [winperf            ] CollectorThread_A: Counter "\System\Prozessor-Warteschlangenlänge" added to query
2025.05.27 12:27:35.151 *D* [winperf            ] CollectorThread_A entered data collection loop
2025.05.27 12:27:36.150 *D* [threads.pool      ] Thread pool PROCEXEC initialized (min=1, max=16)
2025.05.27 12:27:36.151 *D* [notifications      ] StartNotificationProcessor: Loaded 0 servers
2025.05.27 12:27:36.152 *D* [notifications      ] Notification housekeeper started
2025.05.27 12:27:36.153 *D* [notifications      ] Notification processor started
2025.05.27 12:27:36.154 *D* [threads.pool      ] Thread pool DATACOLL initialized (min=4, max=64)
2025.05.27 12:27:36.155 *D* [notifications      ] Notification housekeeper execution completed
2025.05.27 12:27:36.156 *D* [dc                ] Data collection scheduler thread started
2025.05.27 12:27:36.157 *D* [                  ] NamedPipeListener(nxagentd.push): waiting for connection
2025.05.27 12:27:36.158 *D* [dc                ] Database writer thread started
2025.05.27 12:27:36.160 *D* [dc                ] Data reconciliation thread started (block size 1024, timeout 60000 ms)
2025.05.27 12:27:36.161 *D* [comm              ] Trying to bind on 0.0.0.0:4700
2025.05.27 12:27:36.162 *D* [comm.listener      ] SocketListener/ProxyHeartbeat: Trying to bind on 0.0.0.0:4700/udp
2025.05.27 12:27:36.163 *D* [sa                ] Trying to bind on 127.0.0.1:28180
2025.05.27 12:27:36.164 *D* [dc                ] Data sender thread started
2025.05.27 12:27:36.165 *D* [                  ] NamedPipeListener(nxagentd.events): waiting for connection
2025.05.27 12:27:36.166 *D* [                  ] ControlConnector: named pipe created, waiting for connection
2025.05.27 12:27:36.166 *D* [tunnel            ] No tunnels configured, tunnel manager will not start
2025.05.27 12:27:36.167 *D* [                  ] Trying to bind on [::]:4700
2025.05.27 12:27:36.168 *D* [comm.listener      ] SocketListener/ProxyHeartbeat: Trying to bind on [::]:4700/udp
2025.05.27 12:27:36.170 *D* [sa                ] Session agent connector listening on port 28180
2025.05.27 12:27:36.171 *I* [comm              ] Listening on socket 0.0.0.0:4700
2025.05.27 12:27:36.172 *I* [comm              ] Listening on socket :::4700
2025.05.27 12:27:37.158 *I* [filemon            ] Path list for file monitor is empty
2025.05.27 12:27:37.159 *I* [                  ] NetXMS Agent started
2025.05.27 12:27:44.186 *D* [sa                ] Incoming session agent connection
2025.05.27 12:27:44.188 *D* [sa.1              ] Session agent connector 1: login as xxxxxxx\Administrator@RDP-Tcp#0 [2] (extended client)
2025.05.27 12:28:09.521 *D* [comm              ] Incoming connection from 10.10.11.15
2025.05.27 12:28:09.522 *D* [comm              ] Connection from 10.10.11.15 accepted
2025.05.27 12:28:09.523 *D* [comm.cs.1          ] Session registered (control=true, master=true)
2025.05.27 12:28:09.524 *D* [comm.cs.1          ] Received control message CMD_GET_NXCP_CAPS
2025.05.27 12:28:09.525 *D* [comm.cs.1          ] Using protocol version 5
2025.05.27 12:28:09.526 *D* [comm.cs.1          ] Sending message CMD_NXCP_CAPS (ID 0; size 16; uncompressed)
2025.05.27 12:28:09.527 *D* [comm.cs.1          ] Received message CMD_REQUEST_SESSION_KEY (1)
...
2025.05.27 12:28:46.216 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 138; size 32; uncompressed)
2025.05.27 12:28:46.218 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (139)
2025.05.27 12:28:46.218 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(tcp://87.x_x.xx.102:443)"
2025.05.27 12:28:50.217 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (140)
2025.05.27 12:28:50.218 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 140; size 32; uncompressed)
2025.05.27 12:28:50.220 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (141)
2025.05.27 12:28:50.221 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(tcp://87.x_x.xx.102:443)"
2025.05.27 12:28:51.219 *D* [netsvc            ] NetConnectTCP(87.x_x.xx.102:443): connect failed (timeout 5000 ms)
2025.05.27 12:28:51.220 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 139; size 48; uncompressed)
2025.05.27 12:28:54.220 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (142)
2025.05.27 12:28:54.222 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 142; size 32; uncompressed)
2025.05.27 12:28:54.224 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (143)
2025.05.27 12:28:54.225 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(tcp://87.x_x.xx.102:443)"
2025.05.27 12:28:55.223 *D* [netsvc            ] NetConnectTCP(87.x_x.xx.102:443): connect failed (timeout 5000 ms)
2025.05.27 12:28:55.224 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 141; size 48; uncompressed)
2025.05.27 12:28:58.224 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (144)
2025.05.27 12:28:58.225 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 144; size 32; uncompressed)
2025.05.27 12:28:58.227 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (145)
2025.05.27 12:28:58.227 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 145; size 32; uncompressed)
2025.05.27 12:28:58.229 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (146)
2025.05.27 12:28:58.230 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(https://mail.customer-mailserver.de)"
2025.05.27 12:28:59.226 *D* [netsvc            ] NetConnectTCP(87.x_x.xx.102:443): connect failed (timeout 5000 ms)
2025.05.27 12:28:59.227 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 143; size 48; uncompressed)
2025.05.27 12:29:02.229 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (147)
2025.05.27 12:29:02.230 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 147; size 32; uncompressed)
2025.05.27 12:29:02.232 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (148)
2025.05.27 12:29:02.233 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(https://mail.customer-mailserver.de)"
2025.05.27 12:29:03.234 *D* [netsvc            ] NetworkServiceStatus_HTTP(https://mail.customer-mailserver.de): call to curl_easy_perform failed (28: Connection timed out after 5002 milliseconds)
2025.05.27 12:29:03.236 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 146; size 48; uncompressed)
2025.05.27 12:29:06.232 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (149)
2025.05.27 12:29:06.233 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 149; size 32; uncompressed)
2025.05.27 12:29:06.235 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (150)
2025.05.27 12:29:06.235 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(https://mail.customer-mailserver.de)"
2025.05.27 12:29:07.237 *D* [netsvc            ] NetworkServiceStatus_HTTP(https://mail.customer-mailserver.de): call to curl_easy_perform failed (28: Connection timed out after 5002 milliseconds)
2025.05.27 12:29:07.238 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 148; size 48; uncompressed)
2025.05.27 12:29:10.235 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (151)
2025.05.27 12:29:10.236 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 151; size 32; uncompressed)
2025.05.27 12:29:10.238 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (152)
2025.05.27 12:29:10.238 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 152; size 32; uncompressed)
2025.05.27 12:29:10.240 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (153)
2025.05.27 12:29:10.241 *D* [comm.cs.1          ] Requesting metric "NetworkService.Status(tcp://mail.customer-mailserver.de:443)"
2025.05.27 12:29:10.887 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (154)
2025.05.27 12:29:10.888 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 154; size 32; uncompressed)
2025.05.27 12:29:10.889 *D* [comm.cs.1          ] Received message CMD_KEEPALIVE (155)
...

Filipp Sudanov

Ok, so most of the requests ended up with timeout. But there's one thing that makes all this a bit complicated. When server talks to the agent there's timeout for this process. By default it is 4 seconds. But these network service checks have timeout of 5 seconds by default, which results in <<ERROR>>.
We've just changed the default timeout for web service checks to 1 second, this will be included in next patch release. Meanwhile you can specify the timeout in the metric, e.g.:

NetworkService.Status(https://mail.customer-mailserver.de, timeout=1000)

rainerh

Thank you
Now it works fine :-)

I have tested status 0, 2 and 5
What is status 5 ?

with
NetworkService.Status(https://mail. srv-custom, timeout=1000)
0 = success (ok)
5 = when no response from server

with
NetworkService.Status(tcp://mail.srv-custom.de:443, timeout=1000)
0 = success (ok)
2 = no response from server

I found:
0 - success (server was connected and return expected response)
1 - invalid arguments was passed (most likely regular expression has incorrect syntax)
2 - cannot connect to server
3 - bad server's response

Filipp Sudanov

Possible results are

Quote
  • 0 - Success, connection to target was established and expected response was received.
  • 2 - Can not connect to target (connection refused or connection timeout)
  • 3 - Invalid / unexpected response from target (e.g. pattern or response-code not matched)
  • 4 - Agent internal error
  • 5 - Protocol handshake error (e.g. wrong data or no data expected by protocol received, SSL certificate problem)
(https://www.netxms.org/documentation/adminguide/service-monitoring.html#network-service-monitoring-using-dci)

Value of 1 is not described there :), but yes, that's bad parameters of the metric