I don't know if i'm doing anything wrong but I have a script that is called that uses a hostname as a parameter. The script then adds builds the URL. It then uses lynx to call this URL, then dump to stdout, grepped, awked which returns a integer.
I am creating the item with this: script.sh(www.somehost.com)
It doesn't work though. I look at the server log file on my zabbix server and it's using the hostname the item is assigned to as the parameter so my script is calling: http://zabbixhostname/something/somepage.aspx instead of:
If I just add the hostname into the script and call it within zabbix without a parameter: script.sh() it works fine. It just doesn't work when I use a parameter.
Garry
I am creating the item with this: script.sh(www.somehost.com)
It doesn't work though. I look at the server log file on my zabbix server and it's using the hostname the item is assigned to as the parameter so my script is calling: http://zabbixhostname/something/somepage.aspx instead of:
If I just add the hostname into the script and call it within zabbix without a parameter: script.sh() it works fine. It just doesn't work when I use a parameter.
Garry
Comment