Module: check_mk
Branch: master
Commit: d83f76c394d7dd924d4ccf4d892c2b92c598d59d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d83f76c394d7dd…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu May 8 17:54:09 2014 +0200
FIX nfsexports.solaris: fix in determination of path prefix
---
.werks/611 | 8 ++++++++
ChangeLog | 1 +
agents/solaris/nfsexports.solaris | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.werks/611 b/.werks/611
new file mode 100644
index 0000000..d046b8e
--- /dev/null
+++ b/.werks/611
@@ -0,0 +1,8 @@
+Title: nfsexports.solaris: fix in determination of path prefix
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1399564395
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 1e56f2d..c1fb9a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -68,6 +68,7 @@
* 0158 FIX: dell_om_disks: Handle hotspares more correctly
* 0161 FIX: cisco_fru_power: Exluded not existing devices from the inventory
* 0969 FIX: blade_health: correctly output error message in non-OK state
+ * 0611 FIX: nfsexports.solaris: fix in determination of path prefix
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/agents/solaris/nfsexports.solaris b/agents/solaris/nfsexports.solaris
index 39c6443..c953a08 100644
--- a/agents/solaris/nfsexports.solaris
+++ b/agents/solaris/nfsexports.solaris
@@ -31,7 +31,7 @@ if [ -r $clusterconfigdir ]; then
# is a clustered nfs server
nfsconfig=/etc/cluster/ccr/global/`grep rgm $clusterconfigdir | grep nfs | grep
rg_`
if [ -r $nsconfig ]; then
- Pathprefix=`grep Path $nfsconfig | awk {'print $2'}`/SUNW.nfs
+ Pathprefix=`grep Pathprefix $nfsconfig | awk {'print $2'}`/SUNW.nfs
dfstabfile=$Pathprefix/dfstab.`grep -v FilesystemMountPoints $nfsconfig | grep
SUNW.nfs | \
awk {'print $1'} | sed -e 's/RS_//'`
if [ -r $dfstabfile ]; then