aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2012-02-11 07:46:20 +0000
committerPetter Reinholdtsen <pere@hungry.com>2012-02-11 07:46:20 +0000
commitda23c0fc83a117cd5df1c183b4728a11724cb6ff (patch)
treedf65a28dab8a42e7d06d1b8e5a8be029731f93b6
parent3d60ccc62314f3b1d04fc2e451bae10935c52c4b (diff)
downloadsitesummary-da23c0fc83a117cd5df1c183b4728a11724cb6ff.tar.gz
sitesummary-da23c0fc83a117cd5df1c183b4728a11724cb6ff.tar.bz2
sitesummary-da23c0fc83a117cd5df1c183b4728a11724cb6ff.tar.xz
Change temp file name created by nagios-plugins check_cups_queue to
include host name being checked, to make it easier to figure out why some of the temp files are left behind.
-rw-r--r--debian/changelog8
-rwxr-xr-xnagios-plugins/check_cups_queue2
2 files changed, 9 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 7af1050..2df5469 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sitesummary (0.1.3) UNRELEASED; urgency=low
+
+ * Change temp file name created by nagios-plugins check_cups_queue to
+ include host name being checked, to make it easier to figure out why
+ some of the temp files are left behind.
+
+ -- Petter Reinholdtsen <pere@debian.org> Sat, 11 Feb 2012 08:42:08 +0100
+
sitesummary (0.1.2) unstable; urgency=low
* Add support in nagios plugins check_etc_hosts and check_etc_resolv
diff --git a/nagios-plugins/check_cups_queue b/nagios-plugins/check_cups_queue
index 4666bc8..e745dd1 100755
--- a/nagios-plugins/check_cups_queue
+++ b/nagios-plugins/check_cups_queue
@@ -155,7 +155,7 @@ then
exit $exitstatus
else
- JOBTMP=`mktemp -t lpstat.XXXXXX` # Create a tmpfile to store the lpstat results
+ JOBTMP=`mktemp -t lpstat.$hostname.XXXXXX` # Create a tmpfile to store the lpstat results
STALEJOBCOUNT=0 # default number of old jobs
CURDATETS=`date +%s` # Get the current date as unixtime
$LPSTAT -h $hostname -o > $JOBTMP # run the lpstat command against the host.