Telnet items

In the case of a device that can neither have the Zabbix agent installed nor supports SSH, Zabbix also has a built-in method to obtain values over Telnet. With Telnet being a really old and insecure protocol, that's probably one of the least suggested methods for data gathering.

Telnet items are similar to SSH items. The simplest item key syntax is the following:

telnet.run[<unique_identifier>] 

The key itself is a fixed string, while the first parameter is a unique identifier, the same as for the SSH items. Also, the second and third parameter are IP address and port, if they're different from the host interface IP and the default Telnet port, 23. The commands to run will go in the Executed script field, and the username and password should be supplied as well.

The username and password are transmitted in plain text with Telnet. Avoid it if possible.

For the login prompt, Zabbix looks for a string that ends with : (colon). For Command Prompt, the following are supported:

  • $
  • #
  • >
  • %

When the command returns, the beginning of the string, up to one of these symbols is trimmed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.193.158