[Pkg-nagios-changes] [pkg-nagios-snmp-plugins] 34/36: Add 18_check_snmp_process_tmp_file

Jan Wagner waja at moszumanska.debian.org
Wed Mar 5 22:24:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-nagios-snmp-plugins.

commit f05ed7f8a151d66a7748fde4204d069cb1dba02a
Author: Jan Wagner <waja at cyconet.org>
Date:   Sun Mar 2 23:59:57 2014 +0100

    Add 18_check_snmp_process_tmp_file
---
 debian/patches/18_check_snmp_process_tmp_file | 32 +++++++++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/18_check_snmp_process_tmp_file b/debian/patches/18_check_snmp_process_tmp_file
new file mode 100644
index 0000000..81d2091
--- /dev/null
+++ b/debian/patches/18_check_snmp_process_tmp_file
@@ -0,0 +1,32 @@
+## 18_check_snmp_process_tmp_file by S.Bay
+##
+## DP: Fix tmp file check_snmp_process
+
+## From 88c3bfd626a531e7da1c3e3c694f6fd1d4a70692 Mon Sep 17 00:00:00 2001
+## From: "S.Bay" <info at space2place.de>
+## Date: Tue, 17 Dec 2013 09:32:15 +0100
+## Subject: [PATCH] Fix error writing tmp file using plugin with remote unix
+##  system
+
+---
+ check_snmp_process.pl | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/check_snmp_process.pl b/plugins/check_snmp_process.pl
+index 7a83432..11f2d96 100755
+--- a/check_snmp_process.pl
++++ b/check_snmp_process.pl
+@@ -640,6 +640,10 @@ sub check_options {
+   #### Read file
+   $temp_file_name=$o_descr;
+   $temp_file_name =~ s/ /_/g;
++  $temp_file_name =~ s/\//_/g;
++  $temp_file_name =~ s/-//g;
++  $temp_file_name =~ s/=//g;
++  $temp_file_name = substr($temp_file_name,0,40);
+   $temp_file_name = $o_base_dir . $o_host ."." . $temp_file_name; 
+   # First, read entire file
+   my @ret_array=read_file($temp_file_name,$n_items_check);
+-- 
+1.8.5.5
+
diff --git a/debian/patches/series b/debian/patches/series
index 6ce56d5..b0a80a1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,5 +3,6 @@
 15_check_snmp_storage_64bit
 16_perfdata
 17_protocol_fam
+18_check_snmp_process_tmp_file
 50_disable_epn
 51_fix_privacy_doc

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-snmp-plugins.git



More information about the Pkg-nagios-changes mailing list