[Xymon] Xymon script question - bugfix for reboot script
Jaap Winius
jwinius at umrk.nl
Thu Jul 6 11:46:06 CEST 2017
Quoting Jaap Winius <jwinius at umrk.nl>:
There are no doubt many more ways to improve the script I uploaded,
but if you take this line:
RUN=$(uname -r |awk -F - '{print $1}') # Version of the running kernel
and replace it with
RUN=$(uname -r |awk -F - '{print $1"-"$2}') # Version of the running kernel
then it will not malfunction in cases where multiple versions of a
kernel are present with the same major and minor revisions, but
different patch numbers.
Cheers,
Jaap
More information about the Xymon
mailing list