Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with devices like: cciss!c0d0p6] #14

Open
happyalexkg opened this issue Sep 21, 2016 · 3 comments
Open

Issue with devices like: cciss!c0d0p6] #14

happyalexkg opened this issue Sep 21, 2016 · 3 comments

Comments

@happyalexkg
Copy link

Hello
Seems there is issue with getting data from devices like: cciss!c0d0p6

./zabbix_get -s 127.0.0.1 -k "custom.vfs.dev.write.sectors[cciss!c0d0p6]"
-bash: !c0d0p6]": event not found

can it be resolved ?

@nobody43
Copy link

What if you add a single quotes around $1 var in userparameters?
UserParameter=custom.vfs.dev.write.sectors[*],awk '{print $$7}' /sys/class/block/'$1'/stat

Please also provide the output so I can simulate the environment:
ls -l /sys/class/block/
cat /sys/class/block/'cciss!c0d0p6'/stat

@grundic
Copy link
Owner

grundic commented Oct 13, 2016

Yep, I think single quotes should do the trick.
There is more broad discussion of the topic.

@ffrediani
Copy link

Hello
/usr/local/bin/lld-disks.py works fine and shows all cciss!c0d0pX partitions, but adding the single quotes between $1 doesn't seem to have worked here.
zabbix_get keeps returning ZBX_NOTSUPPORTED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants