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

Perl gives error from Server #150

Open
wangel opened this issue Oct 23, 2020 · 0 comments
Open

Perl gives error from Server #150

wangel opened this issue Oct 23, 2020 · 0 comments

Comments

@wangel
Copy link

wangel commented Oct 23, 2020

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.

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

1 participant