SELKIELogger
1.0.0
|
SLVarWatch - Watch state file and warn if variables exceed configured limits.
SLVarWatch -h
SLVarWatch [-v] [-t N] [-P] STATEFILE variable [variable ...]
Taking a logger state file, this utility will poll the file for changes in the value of specific channels and issue a warning if the value of any of the specified channels exceeds configured limits.
Each channel to be watched needs to be specified on the command line to specify the limits.
The format of this locator is as a comma separated series of parameters:
The Name parameter is optional.
The channel details are specified as a colon separated series of values:
The Index parameter is only required for data sources providing an array of values rather than individual channels.
Monitor channel 8 from source 98 (0x62), label it "VRef" and warn if its value drops below 0.1 or exceeds 1.5.
As well as printing warnings to the console or system log, notifications can also be sent using Pushover or a service with a compatible API.
Configuration options will be read from /etc/pushover/pushover-config
and are expected to be in key=value
form as described for the pushover-bash script.
-h, –help : Show brief help message
-v, –verbose : Output additional messages during processing
-t N, –interval N : Poll state file every N seconds
-P, –disable-pushover : Disable pushover notifications (print warnings to console only)
STATEFILE : State file name and path
variable : One or more variable definitions - see full description above.
SLGPSWatch(1)