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 ~]$

Thanks,

Comments

  • Hi,

    you are a bit wrong above, command is /usr/sbin/multipath no /sbin/multipathd

    Can you try it with sudo?

Sign In or Register to comment.