Agent-based scans: Update value of custom field
Something like:
d42_agent --custom-field 'My_Field=My_Value'
3
-
Just so that others can see how cool this would be if implemented, I'll elaborate on how I would like to use this. Having this feature would allow us to run the d42_agent on a scheduled basis and pass it virtually limitless dynamic data such as
RHEL facts:
d42_agent --custom-field "RHEL_Facts=$(cat /etc/rhsm/facts/my.facts)"
Last 3 users to log in:
d42_agent --custom-field "Last_Users=$(last -3 -w | head -3 | awk '{printf $1} NR<3 {printf ", "}'; echo)"
...etc...
1
Please sign in to leave a comment.
Comments
1 comment