YSmetana / raid_arcconf_zabbix_lld

Zabbix LLD and monitoring script for Adaptec RAID controllers
GNU General Public License v3.0
8 stars 12 forks source link

wrong syntaxis in conf file #6

Closed dvorobiev closed 6 years ago

dvorobiev commented 6 years ago

In line UserParameter=raid.arcconf[*],/opt/zabbix_scripts/raid_arcconf_zabbix_lld/raid_arcconf_zabbix_lld.py "$1" "$2" "$3" need add "pyhon" before name of scrypt Correctly write this: UserParameter=raid.arcconf[*],python /opt/zabbix_scripts/raid_arcconf_zabbix_lld/raid_arcconf_zabbix_lld.py "$1" "$2" "$3"

YSmetana commented 6 years ago

Hello! There is shebang #!/usr/bin/env python in the script. It should run Python interpreter and execute the script as Python code. At least under the *nix OS.

Read more about shebang: https://en.wikipedia.org/wiki/Shebang_(Unix) .