new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / debian / ossec-hids / var / ossec / agentless / sshlogin.exp
1 #!/usr/bin/env expect
2
3 # Agentless monitoring
4 #
5 # Copyright (C) 2009 Trend Micro Inc.
6 # All rights reserved.
7 #
8 # This program is a free software; you can redistribute it
9 # and/or modify it under the terms of the GNU General Public
10 # License (version 2) as published by the FSF - Free Software
11 # Foundation.
12
13 expect {
14     "Permission denied" {
15         send_user "\nERROR: Incorrect password to remote host: $hostname .\n"
16         exit 1;
17     }
18     eof {
19         send_user "\nERROR: EOF while logging to host: $hostname .\n"
20         exit 0;
21     }
22     timeout {
23         send_user "\nERROR: Timeout while running on host: $hostname .\n"
24         exit 1;
25     }
26     "*\\\$" {
27         send_user "\nINFO: Started.\n"
28     }
29     "*#" {
30         send_user "\nINFO: Started.\n"
31     }
32 }