Bug 1414243

Summary: nagios-plugins-file_age ceases to work with the update to 2.1.4-2.el6
Product: [Fedora] Fedora EPEL Reporter: Christoph Galuschka <tigalch>
Component: nagios-pluginsAssignee: Stephen John Smoogen <smooge>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: athmanem, b.heden, kmf, mhayden, nb, ondrejj, smooge, swilkerson
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 13:39:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christoph Galuschka 2017-01-18 07:06:55 UTC
Description of problem:
nagious-plugins-file_age ceases to work with the update to 2.1.4-2.el6. Since this update, no matter which file I check, the plugin always returns "File not found".

Version-Release number of selected component (if applicable):
2.1.4-2.el6

How reproducible:
always

Steps to Reproduce:
1. Install nagios-plugins-all
2. run /usr/lib64/nagois/plugins/check_file_age somefile
3. result is "File not found"

Actual results:
/usr/lib64/nagios/plugins # ./check_file_age check_file_age 
FILE_AGE CRITICAL: File not found - "check_file_age"

Expected results:
./check_file_age check_file_age 
FILE_AGE OK: check_file_age is 1 seconds old and 3844 bytes  | age=1s;240;600 size=3844B;0;0;0

Additional info:
The issues seems to be the command in line 80:
>>
$opt_f = '"' . $opt_f . '"';
>>
This adds "" to the filename, which does not work. Commenting that line out fixes the issue.

Comment 1 Scott Wilkerson 2017-01-18 13:39:18 UTC

*** This bug has been marked as a duplicate of bug 1410039 ***