I'm trying to run multiple show commands via the SSH Agent item type against a router (Cisco, Juniper, etc.). Per the documentation I am putting multiple commands in the External scripts box, each on a new line. However when Zabbix tries to run the commands on the host, it seems like it's sending all the commands at once and I'm getting back syntax errors as output. Almost seems like it's not sending a line feed correctly? When I look in the database I'm seeing there are CRLF characters after each line, but the router is seeing it as one long line?
When i send a single command it works. When i send more than one it does not.
Ex.
term length 0
show running-config
When i send a single command it works. When i send more than one it does not.
Ex.
term length 0
show running-config
Comment