Look for zabbix_server.conf file:
conf=$(find / -name "zabbix_server.conf")
echo $conf
Check if ExternalScripts is enabled:
path=$(grep -v "^$\|^#" $conf | grep "^ExternalScripts" | sed "s/^.*=//")
echo $path
Go to external scripts path:
cd $path
Install script:
cat > alexa.sh << EOF
#!/bin/bash
curl -s https://www.alexa.com/siteinfo/\$1#trafficstats | \\
grep 'global' | \\
sed "s/,/\n/g" | \\
grep 'global' | \\
sed 's/:\|}/\n/g' | \\
grep '^[0-9]\+'
EOF
chmod 770 alexa.sh
chown -R zabbix:zabbix $path
Or download separately:
At the Zabbix server side add template:
Test directly from command line:
curl -s https://www.alexa.com/siteinfo/zabbix.com#trafficstats | grep 'global' | sed "s/,/\n/g" | grep 'global' | sed 's/:\|}/\n/g' | grep '^[0-9]\+'