RESOLVED: External command fails
Posted: Fri Jan 16, 2026 10:09 am
We are trying to send back commands from an IBM i to the Nagios XI server, some work but others do not and we cannot figure out what the problem is? We are doing this via NRPE web interface. Here is the request we are sending.
Why does the web interface return OK when internally the command is failing? Where can I find the actual reason the command fails? I have other commands which work OK (ENABLE_HOST_NOTIFICATIONS;DISABLE_HOST_NOTIFICATIONS; etc)
We are running Version: 2026R1.0.1 on Debian.
Chris...
This is the response from the server2026-01-16 10:15:48 : main : Request buffer: POST /nrdp/ HTTP/1.1
Host: nagiosxi.shield.local
Content-Type: application/x-www-form-urlencoded
Content-Length: 101
token=xxxxxxxxx&cmd=submitcmd&command=ENABLE_SVC_CHECK;SAS1005;SAS1005_AAG_EM4I_KEYEXP;13987937749
This is the information in the event logServer: Apache/2.4.58 (Ubuntu)
Vary: Accept-Encoding
Content-Length: 107
Content-Type: text/xml;charset=UTF-8
<?xml version="1.0" encoding="utf-8"?>
<result>
<status>0</status>
<message>OK</message>
</result>
I looked through the Apache logs and cannot see any errors logged there and not sure where else to look for errors?2026-01-16 09:15:49
External command [1768572949] ENABLE_SVC_CHECK;SAS1005;SAS1005_AAG_EM4I_KEYEXP;13987937749 returned error Command failed
Why does the web interface return OK when internally the command is failing? Where can I find the actual reason the command fails? I have other commands which work OK (ENABLE_HOST_NOTIFICATIONS;DISABLE_HOST_NOTIFICATIONS; etc)
We are running Version: 2026R1.0.1 on Debian.
Chris...