v-zhuravlev / zbx-smartctl

Templates and scripts for monitoring disks health with Zabbix and smartmontools
https://share.zabbix.com/storage-devices/smartmontools/smart-monitoring-with-smartmontools-lld
GNU General Public License v3.0
245 stars 127 forks source link

Perl gives error from Server #150

Open wangel opened 3 years ago

wangel commented 3 years ago

See the following command; [root@appliance ~]# zabbix_get -s 192.168.1.1 -k "uSSD.discovery" --tls-connect psk --tls-psk-identity fw_key --tls-psk-file /tmp/key-pfsense-01 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). { "data":[ { "{#DISKMODEL}":"ADATA SU650NS38", "{#DISKSN}":"2K352L1S5AJW", "{#DISKNAME}":"/dev/ada0", "{#DISKCMD}":"/dev/ada0 -d atacam", "{#SMART_ENABLED}":"1", "{#DISKTYPE}":"1" } ] } However I can run the command from the command line correctl; ' root/scripts: ./smartctl-disks-discovery.pl { "data":[ { "{#DISKMODEL}":"ADATA SU650NS38", "{#DISKSN}":"2K352L1S5AJW", "{#DISKNAME}":"/dev/ada0", "{#DISKCMD}":"/dev/ada0 -d atacam", "{#SMART_ENABLED}":"1", "{#DISKTYPE}":"1" } ] } ` At first I thought it was because it was sending environment variables.... so I tuned that stuff off in ssh, thinking that might be it.

Any help would be appreciated. Thank you.