multipath monitoring on RHEL (5/6/7)
Hi,
Happy New Year
Just to make you aware to execute the multipath command on RHEL you need to be root. As the perl script is running as non-root this silently fails and is unable to collect the multipath details.
A workaround is to patch the agent to use sudo on both line number #239 and #7095. I did try to setuid the multipath binary but it did not work.
[lpar2rrd@x ~]$ multipath -ll
need to be root
[lpar2rrd@x ~]$ whoami
lpar2rrd
[lpar2rrd@x ~]$ id
uid=20355(lpar2rrd) gid=20355(lpar2rrd) groups=20355(lpar2rrd)
[lpar2rrd@x ~]$ ls -ld `which multipathd`
-rwxr-xr-x 1 root root 86720 Sep 11 2018 /sbin/multipathd
[lpar2rrd@x ~]$ lsb_release -r
Release: 6.10
[lpar2rrd@x ~]$
need to be root
[lpar2rrd@x ~]$ whoami
lpar2rrd
[lpar2rrd@x ~]$ id
uid=20355(lpar2rrd) gid=20355(lpar2rrd) groups=20355(lpar2rrd)
[lpar2rrd@x ~]$ ls -ld `which multipathd`
-rwxr-xr-x 1 root root 86720 Sep 11 2018 /sbin/multipathd
[lpar2rrd@x ~]$ lsb_release -r
Release: 6.10
[lpar2rrd@x ~]$
Thanks,
Comments
-
Hi,you are a bit wrong above, command is /usr/sbin/multipath no /sbin/multipathdCan you try it with sudo?
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle