Bug 1268927

Summary: check_log has incorrect hard coded paths
Product: [Fedora] Fedora EPEL Reporter: Del Stoliker <dstoliker>
Component: nagios-pluginsAssignee: Scott Wilkerson <swilkerson>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: kmf, mhayden, nb, ondrejj, swilkerson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-06 14:06:16 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 Del Stoliker 2015-10-05 16:30:36 UTC
Description of problem:

The check_log plugin has incorrect hard coded paths for egrep and tail


Version-Release number of selected component (if applicable): 2.0.3-3


How reproducible:


Steps to Reproduce:
1. Execute the command to initialize the log check (for example): /usr/lib64/nagios/plugins/check_log -F /var/log/maillog -O /tmp/maillog -q bounced
2. Execute the command again to check the status.

Actual results:
/usr/lib64/nagios/plugins/check_log: line 199: /usr/bin/egrep: No such file or directory
/usr/lib64/nagios/plugins/check_log: line 202: /usr/bin/egrep: No such file or directory
/usr/lib64/nagios/plugins/check_log: line 205: /bin/tail: No such file or directory
/usr/lib64/nagios/plugins/check_log: line 205: /usr/bin/egrep: No such file or directory
()

Expected results:
Log check ok - 0 pattern matches found

Additional info:

Incorrect paths
...
GREP="/usr/bin/egrep"
DIFF="/usr/bin/diff"
TAIL="/bin/tail"
...

Should be
...
GREP="/bin/egrep"
DIFF="/usr/bin/diff"
TAIL="/usr/bin/tail"
...

Comment 1 Scott Wilkerson 2015-10-06 14:06:16 UTC

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