AIX Dynatrace OneAgent issue

XorMon (LPAR2RRD) AIX OS agent can coexist with the Dynatrace OneAgent except AIX 7.3 TL3 and probably even higher.

OneAgent somehow screws something in the AIX what leads to a perl errors.

Test if you are affected

cat /tmp/test.pl
  use strict;
  my $path = $ENV{PATH}.":/sbin:/usr/sbin";
  $ENV{PATH} = "$path";
  $ENV{ENTSTAT_MODE} = "closed.ignore";
  $ENV{LANG} = "en_US";
  my $id = `uname 2>/dev/null`;

perl /tmp/test.pl
  [: 0403-057 Syntax error

Workarounds

Both worarounds work, up to you which one you use

  1. Dynatrace:
    Dynatrace does not know why this is happening under AIX 7.3 TL3, but they found a workaround by adding AIX:"ksh" AIX:"perl" to the agent block list
    This setting is not configurable by the end user and can be done only in via developer access interface to Dynatrace and by calling support

  2. XorMon/LPAR2RRD:
    Use LPAR2RRD agent v8.20+ and set this in the crontab (shell wrapper which uses /bin/ksh which is not affected)
    * * * * * /opt/lpar2rrd-agent/lpar2rrd-AIX-wrapper.sh <XorMon-server> > /var/tmp/lpar2rrd-agent.out 2>&1