--- ./vendor/github.com/elastic/elastic-agent-system-metrics/metric/system/process/process_aix.go_orig	2025-05-26 04:10:51.169549525 -0500
+++ ./vendor/github.com/elastic/elastic-agent-system-metrics/metric/system/process/process_aix.go	2025-05-26 04:14:47.707921474 -0500
@@ -158,7 +158,9 @@
 		args = append(args, stripNullByte(arg))
 	}
 	state.Args = args
+        if len(args) > 0 {
 	state.Exe = args[0]
+	}
 
 	// get env vars
 	buf = make([]byte, 8192)
@@ -185,7 +187,10 @@
 
 		pair := bytes.SplitN(stripNullByteRaw(line), delim, 2)
 		if len(pair) != 2 {
-			return state, fmt.Errorf("error reading environment: %w", err)
+			//return state, fmt.Errorf("error reading environment: %w", err)
+			state.Env = vars
+
+            		return state, nil
 		}
 		eKey := string(pair[0])
 		if filter == nil || filter(eKey) {
