[Nagiosplug-devel] contrib/check_mssql.sh 2.0 not properly deleting $errorfile .
rkomorn at dofc.org
Wed Sep 10 18:13:44 UTC 2008
At the beginning of version 2.0 of the contrib/check_mssql.sh script, the
following file gets created:
Line 67: errorfile=`$mktempcmd /tmp/$hostname.XXXXXX`
However, upon "successful" completion, the cleanup command issued is:
Line 95: $rmcmd -f $tmpfile $resultfile;
This means that the $errorfile created above isn't properly cleaned up, and
quickly starts to clutter up /tmp .
The other cleanup command,
Line 102: $rmcmd -f $tmpfile $resultfile $errorfile
never gets executed, due to the fact that the script exits at the end of the
if/else block starting with:
Line 88: if [ "$resultfileln" == "2" ]; then
This appears to still be the case in the snapshot at
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nagiosplugin-devel