I have written a simple shell script that detects the invalid login attempts on Esxi(5.1) server and prints the output on screen as IPs with no of connections with failed attempts.
The script is working fine on Esxi server. But when I'm trying to execute the script from monitoring server (nagios) using check by ssh, I'm getting stale output.