[Nagiosplug-devel] [ nagiosplug-Bugs-1333956 ] check_log errors on non-Linux platforms

SourceForge.net noreply at sourceforge.net
Fri Oct 21 02:47:37 CEST 2005


Bugs item #1333956, was opened at 2005-10-21 10:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1333956&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Ade Rixon (aderixon)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_log errors on non-Linux platforms

Initial Comment:
I am running check_log from the 1.4 release (unchanged
in 1.4.2) on Solaris 8. It gives shell errors and falis
to work correctly because:
a) chmod command is unrecognised (no path) in the case
where mktemp is not available;
b) tail command uses GNU-specific long option instead
of generic alternative.

The attached patch fixes these issues and also adds:
 - variable definitions for CHMOD and TOUCH to match
command usage in rest of script;
 - use of extended grep (egrep) in place of grep to
support full regex matching; assume this works on all
supported platforms.

Ade

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1333956&group_id=29880




More information about the Devel mailing list