this way it will always pass, but we at least will know when the file is not present. I don't think its absence should constitute a failure, as systems even without it work and can sleep just fine.
OTOH, if /proc/acpi/sleep is no longer used for some reason, we should research why, when did it disappear, and whether we still care about it; if we no longer do, we should just remove the job.
plugin: attachment attachment
id: acpi_sleep_
command: [ -e /proc/acpi/sleep ] && cat /proc/acpi/sleep
estimated_duration: 0.5
_description: Attaches the contents of /proc/acpi/sleep if it exists.
The description lacks "if it does not exist, exit with error", which is the behavior of the command as is.
The command can be changed to
[ -e /proc/acpi/sleep ] && cat /proc/acpi/sleep || echo "No /proc/acpi/sleep found"
this way it will always pass, but we at least will know when the file is not present. I don't think its absence should constitute a failure, as systems even without it work and can sleep just fine.
OTOH, if /proc/acpi/sleep is no longer used for some reason, we should research why, when did it disappear, and whether we still care about it; if we no longer do, we should just remove the job.