<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Agent action encode]]></title><description><![CDATA[<p dir="auto">Trying to create an action that runs a script but as soon as i have char åäö in parameter it seems like it fails to run the process, have agent in debuglevel 6 and no error shows up it runs process and it shows PID for it.</p>
<p dir="auto">I have verified that everything i can think of is utf8</p>
<p dir="auto">made debug script that logs to file if run Action=debug:/agent/script/ping.sh --message "$1"</p>
<p dir="auto">$node.executeAgentCommand("debug","test") runs fine and log files are created<br />
$node.executeAgentCommand("debug","testå") is executed according to agent log and gets PID but no logs are created and i can't figure any more deeper way to debug</p>
<p dir="auto">Running agent 5.2.6 on Debian 12 in docker</p>
<p dir="auto">if i run script in docker cli it works with åäö only fails when agent runs the script.</p>
<p dir="auto">Any tips or known issues?</p>
]]></description><link>https://forum.netxms.org/topic/8278/agent-action-encode</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:34:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8278.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Oct 2025 12:59:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Agent action encode on Wed, 22 Oct 2025 06:31:56 GMT]]></title><description><![CDATA[<p dir="auto">Found the issue, docker ran with POSIX had to add</p>
<p dir="auto">ENV LANG=C.UTF-8<br />
ENV LC_ALL=C.UTF-8</p>
<p dir="auto">Now it works with åäö</p>
]]></description><link>https://forum.netxms.org/post/34923</link><guid isPermaLink="true">https://forum.netxms.org/post/34923</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 22 Oct 2025 06:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to Agent action encode on Wed, 22 Oct 2025 06:15:38 GMT]]></title><description><![CDATA[<p dir="auto">Tested with agent running on full debian 12 VM and no issue with åäö in action making this something with my docker setup it seems like.</p>
<p dir="auto">it is the official docker setup from github though, will see if i have messed something up.</p>
]]></description><link>https://forum.netxms.org/post/34922</link><guid isPermaLink="true">https://forum.netxms.org/post/34922</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 22 Oct 2025 06:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to Agent action encode on Wed, 22 Oct 2025 05:40:13 GMT]]></title><description><![CDATA[<pre><code>#!/bin/sh
# /agent/script/ping.sh
LOG=/agent/script/logs
mkdir -p "$LOG"

TS="$(date -u +%Y%m%dT%H%M%SZ)"
{
  echo "----- $TS -----"
  echo "PWD: $(pwd)"
  echo "USER: $(id)"
  echo "ARGV_STR: $*"
} &gt;&gt; "$LOG/ping.txt"

printf '%s\n' "$@" | od -An -t x1 &gt;&gt; "$LOG/ping-bytes.hex" 2&gt;/dev/null || true
</code></pre>
<p dir="auto">i tried Action=debug:echo "$1" &gt;&gt; /agent/script/a.txt also to have it as simple as possible and<br />
$node.executeAgentCommand("debug","test") creates a.txt containing test<br />
$node.executeAgentCommand("debug","testå") does not create a.txt, not error in agent log just "Execution of external action debug (echo "testå" &gt;&gt; /agent/script/a.txt) started"</p>
<p dir="auto">If i run echo "testå" &gt;&gt; /agent/script/a.txt manually in same docker agent is running a.txt is created as utf8 and containing testå</p>
]]></description><link>https://forum.netxms.org/post/34921</link><guid isPermaLink="true">https://forum.netxms.org/post/34921</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 22 Oct 2025 05:40:13 GMT</pubDate></item><item><title><![CDATA[Reply to Agent action encode on Tue, 21 Oct 2025 14:16:11 GMT]]></title><description><![CDATA[<p dir="auto">Something as simple as<br />
Action=debug:echo "$1" &gt;&gt; /tmp/a.txt<br />
works for me with these letters. But I did not try in Docker, can you check if this works there?</p>
<p dir="auto">Can you show your <a href="http://ping.sh" rel="nofollow ugc">ping.sh</a> script?</p>
]]></description><link>https://forum.netxms.org/post/34917</link><guid isPermaLink="true">https://forum.netxms.org/post/34917</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 21 Oct 2025 14:16:11 GMT</pubDate></item></channel></rss>