katnip.monitors.ssh module¶
-
class
katnip.monitors.ssh.
SSHMonitor
(name, username, password, hostname, port, status_command, restart_command=None, logger=None)¶ Bases:
kitty.monitors.base.BaseMonitor
SSHMonitor monitors target ip and runs a command over SSH in case it is not responding.
-
__init__
(name, username, password, hostname, port, status_command, restart_command=None, logger=None)¶ Parameters: - name – name of the object
- username – ssh login username
- password – ssh login password
- hostname – ssh server ip
- port – ssh server port
- status_command – command to make sure target is alive
- restart_command – command to restart the target in case it is deadore
- logger – logger for this object (default: None)
-
post_test
()¶
-
pre_test
(test_number)¶
-
teardown
()¶
-