[Nagiosplug-devel] contrib/check_mssql.sh 2.0 not properly deleting $errorfile .
Romain Komorn
rkomorn at dofc.org
Wed Sep 10 20:13:44 CEST 2008
Folks,
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
http://nagiosplug.sourceforge.net/snapshot/nagios-plugins-trunk-200809101200.tar.gz
Romain Komorn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20080910/430cccc0/attachment.html>
More information about the Devel
mailing list