System monitoring (general) (REST API)
The status of Lobster_data, the communication services of the Lobster Integration Server and the DMZ server (if available) can be queried via REST API (HTTP). As a result, you will receive a plain text HTML page with system information. You can use an external tool (e.g. Nagios, PRTG, etc.) to perform this query and automatically evaluate the result. Authentication is required for the HTTP query.
Authentication
The login name and password of a Lobster_data user are used for authentication. Details can be found in section REST API (→ "Authentication").
There is a second option specifically for the system monitoring (and only here). The authentication process is the same here, but the access data does not come from a Lobster_data user. Instead, a partner with the name "Monitorplain" must be created. You then create an "HTTP" channel with the name "MONITORDATA" for this partner. In this channel, you only need to fill the fields " Partner ID" and " Partner password" (arbitrary). You then use this access data for authentication.
If you want to query a DMZ server (if available), only this second option can be used. However, the name of the HTTP channel (also on the internal system) must be "MONITORDMZ". Additionally, parameter "addStandardServlets" in configuration file ./etc/startup_dmz.xml (on the DMZ server) must be set to true.
<Call name="addStandardServlets"><Arg type="boolean">true</Arg></Call>
Authentication can also explicitly be deactivated on DMZ servers. However, we do not recommend this. For this purpose, the following parameter can be used in configuration file ./etc/startup_dmz.xml.
<!-- disable authentication for monitoring requests (aka monitorplain.jsp) - not recommended<Call name="disableMonitoringCredentials"/>-->Standard queries
| http(s)://<IP/URL Integration Server or DMZ>:<Port>/dw/monitor/v1 | 
Each HTTP request provides a response as plain text (MIME type "text/plain") in which the monitored properties are listed in a table. The amount of output can be controlled by means of additional query parameters.
| Parameter | Description | 
| ftp=true | Show status of FTP service. | 
| smtp=true | Show status of SMTP service. | 
| oftp=true | Show status of OFTP service. | 
| message=true | Show status of Message service and number of Messages on hold. | 
| as2=true | Show status of AS2 service. | 
| ssh=true | Show status of SSH service. | 
| dw=true | Show status of Lobster_data. | 
| max=true | Only works with "all" or "dw". Shows the currently longest profile runtime. Note: Parameter "max=true" (in conjunction with "dw=true") consumes more resources and should therefore not be called more than approximately every 10 seconds. | 
| all=true | Equivalent to "ftp=true&smtp=true&oftp=true&message=true&dw=true". | 
Example call Integration Server
| http(s)://<IP/URL Integration Server or DMZ>:<Port>/dw/monitor/v1?dw=true&as2=true | 
Server's local time = Wed Sep 21 11:59:52 CEST 2022HTTP status = AliveAS2 status = Alivestartupservice status = Alivestartup applications = 3: [HubStartupConfiguration, DataWizardSetup, WebMonitor]_data status = Alive_data processed requests = 112449_data queued jobs = 0_data queued responses = 0_data total errors = 63_data unresolved = 1_data running profiles = 0Total memory = 12582912 KBFree memory = 11551032 KBMax memory = 12582912 KBUsed memory = 8% usedNumber of Threads = 281available Processors = 8operating system = amd64system load = 0.0Lobster IS Version = IS/5.9.13_50428Lobster_data Version = 4.5.0_50411 License emergency mode active = falseRemaining Emergency Ticks = 1344Example call DMZ server
| http(s)://<IP/URL DMZ>:<Port>/dw/monitor/v1?all=true | 
Server's local time = Thu Jun 27 09:39:05 CEST 2024_DMZ status = AliveAS2 status = FailedFTP status = Alive, Sessions: 1SMTP status = Failed -> SmtpService not added to factory yetOFTP TCP/IP status = Alive, Sessions: 0SSH status = Alive, Sessions: 0Message remote interface = AliveTotal messages on hold = 1	 Q context = System	 Q name = UpdateDmz	 on hold = 1failed services = 2: [AS2, SMTP]Total memory = 4194304 KBFree memory = 1660966 KBMax memory = 4194304 KBUsed memory = 60% used