Build precise queries to find exactly what you need
Press ESC to close
@philipm
Favorites0
Views
Projects0
I hope you get this message. The reason why you're getting different outputs from the browser than what's in the cli is because you could be using different user accounts for both. From the the browser itself, my best guess is the plugin is being executed as the 'nagios' user and you're using your own user account from the cli. If you try running the script, from the cli, as the service account that is running Nagios I bet you'll get the same output that your browser is displaying. It could have something to do with 'secfile'. Create/setup one as the service account used by Nagios and you should be set. #### Nice script btw, this helps a lot in monitoring our storages devices.
Reviewed 11 years ago
I'm getting an error when the plugin is trying to parse the output of "multipath -l". This happens when the mulltipath service is stopped. #multipath -ll lun-name (xxxx) dm-6 NETAPP ,LUN C-Mode size=400G features='3 pg_init_retries 50 retain_attached_hw_handler' hwhandler='1 alua' wp=rw |-+- policy='service-time 0' prio=50 status=active | |- 1:0:1:0 sdb 8:16 active ready running | |- 1:0:2:0 sdd 8:48 active ready running | |- 2:0:2:0 sde 8:64 active ready running | `- 2:0:4:0 sdg 8:96 active ready running `-+- policy='service-time 0' prio=10 status=enabled |- 1:0:5:0 sdf 8:80 active ready running |- 1:0:7:0 sdh 8:112 active ready running |- 2:0:1:0 sdc 8:32 active ready running `- 2:0:5:0 sdi 8:128 active ready running Apr 08 09:21:04 | multipath device maps are present, but 'multipathd' service is not running Apr 08 09:21:04 | IO failover/failback will not work without 'multipathd' service running
Reviewed 3 years ago