Date: Wed, 18 Oct 2017 12:14:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223087] [PATCH] net-mgmt/nagios4: use same lock_file as in nagios.in Message-ID: <bug-223087-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223087 Bug ID: 223087 Summary: [PATCH] net-mgmt/nagios4: use same lock_file as in nagios.in Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: egypcio@googlemail.com Flags: maintainer-feedback?(mat@FreeBSD.org) Keywords: patch Assignee: mat@FreeBSD.org Created attachment 187271 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187271&action= =3Dedit [PATCH] net-mgmt/nagios4: use same lock_file as in nagios.in (r449682) The current patch updates "net-mgmt/nagios4/Makefile" (r449682) in order to= use the set the Nagios' lock_file used by its rc script. Without the patch, a n= ew setup of Nagios under FreeBSD fails. # uname -iUKa FreeBSD freebsd11-nagios4 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: W= ed Aug 9 11:55:48 UTC 2017=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 GENE= RIC 1101001 1101001 # env ASSUME_ALWAYS_YES=3Dyes pkg bootstrap # pkg install -y nagios4 # cd /usr/local/etc/nagios/ # mv cgi.cfg-sample cgi.cfg # mv nagios.cfg-sample nagios.cfg # mv resource.cfg-sample resource.cfg # cd objects/ # mv commands.cfg-sample commands.cfg # mv contacts.cfg-sample contacts.cfg # mv localhost.cfg-sample localhost.cfg # mv printer.cfg-sample printer.cfg # mv switch.cfg-sample switch.cfg # mv templates.cfg-sample templates.cfg # mv timeperiods.cfg-sample timeperiods.cfg # mv windows.cfg-sample windows.cfg # ls -laRsh /usr/local/etc/nagios/ | grep -i sampl | wc 0 0 0 # ls -laRsh /usr/local/etc/nagios/ | grep -i cfg | wc 11 110 687 # sysrc nagios_enable=3DYES nagios_enable: -> YES # service nagios start Performing sanity check of nagios configuration: OK Starting nagios. /usr/local/etc/rc.d/nagios: WARNING: failed to start nagios # cat /var/spool/nagios/nagios.log [1508320974] Failed to obtain lock on file /var/run/nagios.lock: Permis= sion denied [1508320974] Bailing out due to errors encountered while attempting to daemonize... (PID=3D787) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223087-13>