Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - rainerh

#1
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
#2
...
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)
...
#3
General Support / Monitor WEBClient Mailserver
May 27, 2025, 11:51:42 AM
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
#4
General Support / Re: ZFS FileSystem
January 13, 2025, 08:27:19 AM
Here is the final solution to Watch Linux ZFS Filesystem in Proxmox Server
It can be used for ZFS mirror and raid systems

Configuration of agent´s config file (/etc/nxagentd.conf):
add these lines
ExternalList=zpoolNAME:zpool list | tail -n +2 | cut -d' ' -f1
ExternalMetric=zpoolStateSTORE(*):zpool status $1 | grep -E "state" | tr -s " " | cut -d" " -f 3
ExternalMetric=zpoolStateRAID(*):zpool status $1 | grep -E "raid|mirror" | tr -s " " | cut -d" " -f 3

Here is the configuration of ZFS RAID status:

Metric
zpoolStateRAID({instance})

Display name
ZFS: RAID Status of Pool {instance}

no Transformation

Instance discovery methode
Agent List

List name
zpoolNAME

Threshold:
Last polled value not like ONLINE

Here is the configuration of ZFS STORE status:

Metric
zpoolStateSTORE({instance})

Display name
ZFS: STORE Status of Pool {instance}

no Transformation

Instance discovery methode
Agent List

List name
zpoolNAME

Threshold:
Last polled value not like ONLINE

Output:
ZFS: RAID Status of Pool datastore01 = ONLINE
ZFS: RAID Status of Pool rpool = ONLINE
ZFS: STORE Status of Pool datastore01 = ONLINE
ZFS: STORE Status of Pool rpool = ONLINE

In my case datastore01 is a raid2-0 system and rpool a mirror-0 system

This works fine for me
Thank you for helping
Rainer
#5
General Support / Re: ZFS FileSystem
January 10, 2025, 05:40:54 PM
Thank you so much  :) :) :)
The following in /etc/nxagentd.conf will work fine:

ExternalMetric=zpoolCOUNTER:zpool list | tail -n +2 | wc -l
ExternalMetric=zpoolNAME(*):zpool list | tail -n +2 | sed -n "$1p" | cut -d' ' -f1
ExternalMetric=zpoolStateSTORE(*):zpool status $1 | grep -E "state" | tr -s " " | cut -d" " -f 3
ExternalMetric=zpoolStateRAID(*):zpool status $1 | grep -E "raid|mirror" | tr -s " " | cut -d" " -f 3

with result:
zpoolCOUNTER = 2
zpoolNAME(1) = datastore01
zpoolNAME(2) = rpool
zpoolStateRAID(datastore01) = ONLINE
zpoolStateRAID(rpool) = ONLINE
zpoolStateSTORE(datastore01) = ONLINE
zpoolStateSTORE(rpool) = ONLINE

Can you please help me, when I want to use  zpoolCOUNTER = 2 for instance discovery in

Metric
zpoolStateRAID({instance})

Display name
ZFS RAID Status of Pool {instance-name}

Result schould be
ZFS RAID Status of Pool datastore01 = ONLINE
 ZFS RAID Status of Pool rpool = ONLINE

How to configure Instance Discovery?
Instance discovery methode:
Agent List (???)

List Name
zpoolCOUNTER (???)

But this will not work

Thank you very very much
Rainer
#6
General Support / Re: ZFS FileSystem
January 10, 2025, 09:42:36 AM
Sorry about the next lines ;)
It´s a lot.

root@pve110:~# zpool_influxdb
zpool_stats,name=datastore01,state=ONLINE,vdev=root alloc=7922084216832u,free=7436718833664u,size=15358803050496u,read_bytes=9190572863488u,read_errors=0u,read_ops=1743624457u,write_bytes=75531624361984u,write_errors=0u,write_ops=2847279442u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,vdev=root/raidz-0 alloc=7922084216832u,free=7436718833664u,size=15358803050496u,read_bytes=9190572863488u,read_errors=0u,read_ops=1743624457u,write_bytes=75531624361984u,write_errors=0u,write_ops=2847279442u,checksum_errors=0u,fragmentation=14u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B728202A8DA-part1,vdev=root/raidz-0/disk-0 alloc=0u,free=0u,size=0u,read_bytes=1149090598912u,read_errors=0u,read_ops=217997528u,write_bytes=9441822150656u,write_errors=0u,write_ops=355221542u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B728202A966-part1,vdev=root/raidz-0/disk-1 alloc=0u,free=0u,size=0u,read_bytes=1148579872768u,read_errors=0u,read_ops=217868646u,write_bytes=9441236426752u,write_errors=0u,write_ops=355597227u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B728202A984-part1,vdev=root/raidz-0/disk-2 alloc=0u,free=0u,size=0u,read_bytes=1149143625728u,read_errors=0u,read_ops=218012588u,write_bytes=9441759522816u,write_errors=0u,write_ops=355689495u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B728202A99A-part1,vdev=root/raidz-0/disk-3 alloc=0u,free=0u,size=0u,read_bytes=1148693905408u,read_errors=0u,read_ops=217894259u,write_bytes=9441218277376u,write_errors=0u,write_ops=355668995u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B7686B80675-part1,vdev=root/raidz-0/disk-4 alloc=0u,free=0u,size=0u,read_bytes=1149027926016u,read_errors=0u,read_ops=218037401u,write_bytes=9441705701376u,write_errors=0u,write_ops=356111426u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B7686B806C5-part1,vdev=root/raidz-0/disk-5 alloc=0u,free=0u,size=0u,read_bytes=1148363948032u,read_errors=0u,read_ops=217934364u,write_bytes=9441133146112u,write_errors=0u,write_ops=356187147u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B7686B8080E-part1,vdev=root/raidz-0/disk-6 alloc=0u,free=0u,size=0u,read_bytes=1149131272192u,read_errors=0u,read_ops=217975482u,write_bytes=9441662730240u,write_errors=0u,write_ops=356371097u,checksum_errors=0u,fragmentation=0u 1736494698741419432
zpool_stats,name=datastore01,state=ONLINE,path=/dev/disk/by-id/ata-KINGSTON_SEDC600M1920G_50026B7686B8080F-part1,vdev=root/raidz-0/disk-7 
...
...
zpool_io_size,le=4194304,name=rpool,path=/dev/disk/by-id/nvme-eui.00000000000000008ce38e1001c168c3-part3,vdev=root/mirror-0/disk-1 sync_read_ind=0u,sync_write_ind=0u,async_read_ind=0u,async_write_ind=0u,scrub_read_ind=0u,sync_read_agg=0u,sync_write_agg=0u,async_read_agg=0u,async_write_agg=0u,scrub_read_agg=0u,trim_write_ind=208u,trim_write_agg=0u,rebuild_write_ind=0u,rebuild_write_agg=0u 1736494698744262723
zpool_io_size,le=8388608,name=rpool,path=/dev/disk/by-id/nvme-eui.00000000000000008ce38e1001c168c3-part3,vdev=root/mirror-0/disk-1 sync_read_ind=0u,sync_write_ind=0u,async_read_ind=0u,async_write_ind=0u,scrub_read_ind=0u,sync_read_agg=0u,sync_write_agg=0u,async_read_agg=0u,async_write_agg=0u,scrub_read_agg=0u,trim_write_ind=218u,trim_write_agg=0u,rebuild_write_ind=0u,rebuild_write_agg=0u 1736494698744262723
zpool_io_size,le=+Inf,name=rpool,path=/dev/disk/by-id/nvme-eui.00000000000000008ce38e1001c168c3-part3,vdev=root/mirror-0/disk-1 sync_read_ind=0u,sync_write_ind=0u,async_read_ind=0u,async_write_ind=0u,scrub_read_ind=0u,sync_read_agg=0u,sync_write_agg=0u,async_read_agg=0u,async_write_agg=0u,scrub_read_agg=0u,trim_write_ind=8060u,trim_write_agg=0u,rebuild_write_ind=0u,rebuild_write_agg=0u 1736494698744262723
zpool_vdev_queue,name=rpool,vdev=root sync_r_active=0u,sync_w_active=0u,async_r_active=0u,async_w_active=0u,async_scrub_active=0u,rebuild_active=0u,sync_r_pend=0u,sync_w_pend=0u,async_r_pend=0u,async_w_pend=0u,async_scrub_pend=0u,rebuild_pend=0u 1736494698744262723
root@pve110:~#
#7
General Support / Re: ZFS FileSystem
January 09, 2025, 05:57:21 PM
console output:
root@pve110:~# zpool status rpool | grep -E "raid|mirror" | awk '{print $2}'
ONLINE
root@pve110:~# zpool status datastore01 | grep -E "raid|mirror" | awk '{print $2}'
ONLINE

NetXMS output:
zpoolStateRAID(datastore01) =      raidz2-0                                       ONLINE       0     0     0
zpoolStateRAID(rpool) =      mirror-0                                           ONLINE       0     0     0



#8
General Support / Re: ZFS FileSystem
January 09, 2025, 05:37:13 PM
Thank you for the tip.
I have done in nxagent.conf:

ExternalMetric=zpoolCOUNTER:zpool list | tail -n +2 | wc -l
ExternalMetric=zpoolStateRAID(*):zpool status $1 | grep -E "raid|mirror" | awk '{print $2}'

2 problems:
(1)
line 2 resolves not only ONLINE, but in console it will work
(the complete line is shown)

(2)
can I use zpoolCOUNTER  für Agent List in Instance Discovery?


Thank You
Rainer
#9
General Support / ZFS FileSystem
January 08, 2025, 11:16:08 AM
Can I watch the ZFS filesystem like
# zpool ststus
I want to get the status, ih the ZFS FileSytsem is degarded or online or in a healthy way
Thank you very much
Rainer
#10
I was looking for a bug that isn't a bug at all. The system is already working fine. I just thought that this line is added after agent restart. You can check the success quite simply by reading out the "Supported actions" on the client, and the desired one is there

Many many Thanks for this perfect support
Rainer  :D :D :D :D :D
#11
I have made a Template with automatic bind to all clients with running service I need (FileWaveWinClient)
In this Template I choose Agent Policies and created a new "Agent Configuration" policy called StartFileWaveClientService
I only inserted this (1) line:
ActionShellExec = StartFileWaveService:"C:\Windows\system32\net.exe" start FileWaveWinClient
(see AgentPolicy.png)
For test I removed 2 clients and poll "Automatic bind"
The 2 (test) clients added automatically to this Template

Until now every thing works perfect - thank you

But the agent config file at the new clients is not modified and the line I need is not in agent´s config file
I waited a long time

Thank you
Rainer

#12
Thank you very much  :) :D
No it works fine

I have the problem to add this line to agent config file

ActionShellExec = StartFileWaveService:"C:\Windows\system32\net.exe" start FileWaveWinClient

To all of my clients.
Only to add, not to send each client the same config file

Please help and thank you so much
Rainer
#13
Hello,
i want to watch a service called FileWaveWinClient.
The Alarm works fine, but the Server action does not work.

In agent´s config file I added this line:
ActionShellExec = StartFileWaveService:"C:\Windows\system32\net.exe" start FileWaveWinClient

I tried also:
ActionShellExec = StartFileWaveService:net start FileWaveWinClient

In Actions Configuration I added
Name: Start_FileWaveWinClient_Service
Type: Execute command on remote node via agent
Remote host <empty>
Agents´s action: StartFileWaveService
(See attachment "Action Configuration.png")

I create a Event Processing Policy
Events: ... Process not running
Alarm - this configuration works fine. The Alarm is working
Server Actions: Start_FileWaveWinClient_Service - does not work
(See attachment "Event Processing Policy.png")

The Alarm works fine, but the Server action does not work.

Thank you
Rainer
#14
Hello,
i want to watch a service called FileWaveWinClient.
The Alarm works fine, but the Server action does not work.

In agent´s config file I added this line:
ActionShellExec = StartFileWaveService:"C:\Windows\system32\net.exe" start FileWaveWinClient

I tried also:
ActionShellExec = StartFileWaveService:net start FileWaveWinClient

In Actions Configuration I added
Name: Start_FileWaveWinClient_Service
Type: Execute command on remote node via agent
Remote host <empty>
Agents´s action: StartFileWaveService
(See attachment "Action Configuration.png")

I create a Event Processing Policy
Events: ... Process not running
Alarm - this configuration works fine. The Alarm is working
Server Actions: Start_FileWaveWinClient_Service - does not work
(See attachment "Event Processing Policy.png")

The Alarm works fine, but the Server action does not work.

Thank you
Rainer
#15
General Support / CANNOT IMPORT Xirrus AOS MIB
March 30, 2020, 12:17:15 PM
Hello,

i tried to import AOS-8.5-MIB.txt
copy of file AOS-8.5-MIB.txt to /usr/share/netxms/mibs
run command:
# nxmibc -d /usr/share/netxms/mibs -o /usr/share/netxms/mibs/netxms.mib
at the end there is no error but in MIB Explorer I cannot find any xirrus entry under enterprise
OID .1.3.6.1.4.1.21013.

Thank you for helping
Rainer