I am referring to the NUT 'upsc' command and how this template handles the ups.status output:
I think that it can return many combinations in there; I have seen three so far and have added a few of them but this is pretty tedious stuff.
Ideally the agent-side manipulation of this string would be eliminated completely but value maps can't handle strings, only numeric or single-character, hence that element of the script.
What would be a better way to handle this data format?
I think that it can return many combinations in there; I have seen three so far and have added a few of them but this is pretty tedious stuff.
Ideally the agent-side manipulation of this string would be eliminated completely but value maps can't handle strings, only numeric or single-character, hence that element of the script.
What would be a better way to handle this data format?