More Details
Appendix
Lingering enabled Platforms
| Distro family | Versions that do NOT support self-linger without root (default) | Versions that DO support self-linger without root (default) | Evidence |
|---|---|---|---|
| Ubuntu | 16.04 (Xenial) ships systemd 229 → too old | 18.04 (Bionic) ships systemd 237 → new enough (and later Ubuntu releases are newer still) | (Launchpad) |
| Red Hat Enterprise Linux | RHEL 7 ships systemd 219 → too old | RHEL 8 ships systemd 239; RHEL 9 rebased to 252 | (Red Hat Customer Portal) |
| CentOS | CentOS 7 (EL7) ships systemd 219-series → too old | CentOS 8 (EL8) ships systemd 239; CentOS Stream 9 / EL9 family is systemd 252-series | (Red Hat Customer Portal) |
| Amazon Linux | Amazon Linux 2 uses systemd 219 → too old | Amazon Linux 2023 is systemd 252-series (example package version in the wild: 252.16-1.amzn2023…) | (AWS Documentation) |
Quick verification commands
# 1) Check systemd major version (needs >= 230 for self-linger policy support)
systemctl --version
# 2) Confirm the polkit action exists (file is typically here)
grep -R "set-self-linger" /usr/share/polkit-1/actions/org.freedesktop.login1.policy
# 3) Test as the target user (no sudo)
loginctl enable-linger
FAQ
What is the java version required for vuAppagent?
The target server should have Java installed with a version greater than or equal to 1.8
What is the java version required for the VuhealthAgent?
The target server should have Java installed with a version greater than or equal to 1.8
What is the java version required for the vuLogAgent?
The target server should have Java installed with a version greater than or equal to 1.8
How to increase the maximum number of logbeat multiline configuration? The maximum number of lines that can be combined into one event is 500. If the multiline message contains more than 500 lines, any additional lines are discarded.
Set multiline.max_lines in the multiline configuration section of the logbeat configuration. Eg:
- multiline:
type: pattern
pattern: '^\['
negate: true
match: after
max_lines: 1000
Or
multiline.type: pattern
multiline.pattern: '^\['
multiline.negate: true
multiline.match: after
multiline.max_lines: 1000
How to run commands or scripts and collect metrics using vuhealthagent?
# User Commands Metricset
- metricset: userCommands
enabled: true
metaFields:
- doc_type: metricbeat
- type: metric_type
- tags: vuagent
commands:
- name: "name_of_the_command"
cmd: "The command"
collect_cmd_output: true
fetchInterval: interval_in_seconds
Example:
# User Commands Metricset
- metricset: userCommands
enabled: true
metaFields:
- doc_type: metricbeat
- type: service_data_cmd
- tags: vuagent
commands:
- name: "service_monitor"
cmd: "bash /home/vunet/service_monitor.sh"
collect_cmd_output: true
fetchInterval: 20
How to check service availability using vuhealthagent?
# Service Availability (Service Heartbeat) Metricset
- metricset: serviceAvailability
enabled: true
metaFields:
- type: tcpping
- doc_type: heartbeat
fetchInterval: 120
hosts:
- \{HOST\}:\{PORT\}
Example:
# Service Availability (Service Heartbeat) Metricset
- metricset: serviceAvailability
enabled: true
metaFields:
- type: tcpping
- doc_type: heartbeat
fetchInterval: 120
hosts:
- qa.vunetsytems.in:9094
