Merge manage.tr.is:/opt/misc
This commit is contained in:
commit
5cdbba7b66
|
@ -6,6 +6,7 @@ MESSAGE="Nagios configuration is valid"
|
||||||
EXIT_CODE=3
|
EXIT_CODE=3
|
||||||
|
|
||||||
TMPFILE=`mktemp`
|
TMPFILE=`mktemp`
|
||||||
|
trap "rm -f $TMPFILE" EXIT
|
||||||
nagios -v /etc/nagios/nagios.cfg > $TMPFILE
|
nagios -v /etc/nagios/nagios.cfg > $TMPFILE
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue