Hi Linuxadmins,
In my company I am responsible for doing configuration audits to make sure newly installed Linux servers are built following our documented standards. Because our build team does not always follow the standard and many of our existing servers are not in compliance I came up with a way to use GNU autoconf to provide me with a pass/fail representation to tell me what configuration does not meet our standards.
So for example I use the following test to check if the wvdial package is installed:
AC_MSG_CHECKING([if wvdial is installed...]) rpm -qa |grep -q wvdial if test $? -eq 0 then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi
which produces output such as:
checking if wvdial is installed...... no
As is probably obvious at this point looking at these audit reports every day is pretty boring and I'd like to see if anyone has some ideas about how I could automate the process of reviewing the output.
Thanks
[link] [20 comments]