Browse files

jmx2munin.sh: use MUNIN_STATEFILE instead of /tmp.

  • Loading branch information...
1 parent 7352502 commit caf88caa451aa52e8a8f2c31a13c7afadf043414 @Flameeyes Flameeyes committed Aug 10, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 contrib/jmx2munin.sh
View
5 contrib/jmx2munin.sh
@@ -37,8 +37,7 @@ if [ "$1" = "config" ]; then
fi
JAR="$JMX2MUNIN_DIR/jmx2munin.jar"
-URLSUM=`echo -n "$url" | cksum | cut -d ' ' -f 1`
-CACHED="/tmp/jmx2munin.$URLSUM"
+CACHED="${MUNIN_STATEFILE}"
if test ! -f $CACHED || test `find "$CACHED" -mmin +2`; then
@@ -62,4 +61,4 @@ for ATTRIBUTE in $ATTRIBUTES; do
grep "$ATTRIBUTE\." $CACHED
done
-exit 0
+exit 0

0 comments on commit caf88ca

Please sign in to comment.