Bug 202973 - net-mgmt/nagios-plugins : check_file_age can not find utils.pm
Summary: net-mgmt/nagios-plugins : check_file_age can not find utils.pm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 16:47 UTC by jnieuwen
Modified: 2015-09-08 21:21 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
Patch to fix check_file_age (321 bytes, patch)
2015-09-08 16:47 UTC, jnieuwen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jnieuwen 2015-09-08 16:47:40 UTC
Created attachment 160842 [details]
Patch to fix check_file_age

check_file_age can not find utils.pm when not run from the plugins directory.
Patch attached.


root@host:~ # /usr/local/libexec/nagios/check_file_age -w 259200 -c 345600 /var/db/clamav/daily.cld
Can't locate utils.pm in @INC (@INC contains: . /usr/local/lib/perl5/site_perl/mach/5.16 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.16/mach /usr/local/lib/perl5/5.16 /usr/local/lib/perl5/site_perl/5.16 /usr/local/lib/perl5/site_perl/5.16/mach) at /usr/local/libexec/nagios/check_file_age line 30.
BEGIN failed--compilation aborted at /usr/local/libexec/nagios/check_file_age line 30.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-09-08 21:20:57 UTC
A commit references this bug:

Author: mat
Date: Tue Sep  8 21:20:33 UTC 2015
New revision: 396440
URL: https://svnweb.freebsd.org/changeset/ports/396440

Log:
  Fix check_file_age.

  PR:		202973
  Sponsored by:	Absolight

Changes:
  head/net-mgmt/nagios-plugins/Makefile
  head/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__file__age.pl
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2015-09-08 21:21:22 UTC
Thanks, seems like this nagios release was not well tested...