Module: check_mk
Branch: master
Commit: cda6372d6fb9711929036a3efceca1c3aa92e9d9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cda6372d6fb971…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 27 14:04:39 2015 +0100
#2079 FIX freebsd agent: Was unable to find ntpq command with FreeBSD10
Added /usr/local/sbin to solve the issue. Seems ntpq has been moved
to this directory.
---
.werks/2079 | 11 +++++++++++
ChangeLog | 3 ++-
agents/check_mk_agent.freebsd | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/2079 b/.werks/2079
new file mode 100644
index 0000000..a859125
--- /dev/null
+++ b/.werks/2079
@@ -0,0 +1,11 @@
+Title: freebsd agent: Was unable to find ntpq command with FreeBSD10
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1425042218
+
+Added /usr/local/sbin to solve the issue. Seems ntpq has been moved
+to this directory.
diff --git a/ChangeLog b/ChangeLog
index acb4a96..78350d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -205,11 +205,12 @@
* 2021 FIX: if_lancom: Also used for checking ELSA/T-Systems branded devices
* 2022 FIX: SNMP: Fixed handling of backslashes in SNMP data...
NOTE: Please refer to the migration notes!
- * 1224 FIX: Fixed rare Bug in case of clusterd network interfaces...
* 1863 FIX: cisco_power: fix for cases with a slash in the device description of a
power supply...
NOTE: Please refer to the migration notes!
* 2023 FIX: if_lancom: Handle point-2-point interfaces of newer firmwares correctly
* 2027 FIX: fc_port: Fixed exception when wirespeed is reported as 0 by the device
+ * 1224 FIX: Fixed rare Bug in case of clusterd network interfaces...
+ * 2079 FIX: freebsd agent: Was unable to find ntpq command with FreeBSD10...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index 00301ae..d19ddc5 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -46,7 +46,7 @@ export MK_TMPDIR="/var/run/check_mk"
# Make sure, locally installed binaries are found
-PATH=$PATH:/usr/local/bin
+PATH=$PATH:/usr/local/bin:/usr/local/sbin
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own