Aller au contenu principal

Telnet Scenario

Prerequisites​

Centreon Plugin​

Install this plugin on each needed poller:

yum install centreon-plugin-Applications-Protocol-Telnet

Remote server​

The remote server must have a Telnet service running and available. You need to create a JSON scenario file. An example:

[
{"cmd": "open", "options": { "Host": "10.0.0.1", "Port": "23", "Timeout": "30" } },
{"cmd": "login", "options": { "Name": "admin", "Password": "pass", "Timeout": "5" } },
{"cmd": "waitfor", "options": { "Match": "/string/", "Timeout": "5" } },
{"cmd": "put", "options": { "String": "/mystring/", "Timeout": "5" } },
{"cmd": "close" }
]

Centreon Configuration​

Create a new Telnet Scenario server​

Go to "Configuration > Hosts" and click "Add". Then, fill the form as shown by the following table :

FieldValue
Host nameName of the host
AliasHost description
IPHost IP Address
Monitored fromMonitoring Poller to use
Host Multiple TemplatesApp-Protocol-Telnet-custom

Click "Save" button.