SSH monitor fails to login sometimes
Offline

Hi,
We have a couple of SSH active monitors that login to one server to run a some scripts. Lately I've been noticing that the login fails with the following error:
"Thursday, April 14, 2011 12:39:48 AM","SSH Monitor","Down at least 2 min","1m ","FAILED.
Command failed: login
Script execution failed
"
Any ideas what could be causing these occasional login failures from WUG's point of view? Are there any other logs that could provide more info?
Thanks.
-----
- 677 views
- 1 version
- 5 replies
- 0 followers
- Post Date:
- April 14, 2011
- Posted By:
- Tom W
About this forum
- 144k views
- 2234 topics
- 55 followers
Post questions and find answers for all things related to the Standard and Premium Editions of WhatsUp gold.
Viewed 677 times
Page Options
5 Replies
At what frenquency does the monitor fail? Is it every X minutes, or is it at random? I had a SSH active script that would do the same thing at random intervals, and then work again. It was complete random, and would fix itself after being down for a while. To alevieate this, I created a performance monitor instead of an active monitor and then had alert center send out the action if the monitor went outside the threshold.
How many machines and monitors do you have running?
It happens at random times.
The monitors ssh into a box and check for the existance of a file. Not sure how I could create these as performance monitors.
The ssh monitors are on only one server and there are 8 of them.
Tom,
The SSH performance monitor will only respond if a number is returned. If you could code your script to return a 1 if the file is found you could use a performance monitor. How long is your SSH script? I found that if your script "wraps" in the text box that anything out of the box range will be included with the script output. I had to write a shell script on my servers with a short name to get everything to fit in the text box and that fixed some of the issues for me.
You might try making a shell script on the server like the following and see if you get the correct output.
#!/bin/bash
FILE=$1
if [ -f $FILE ];
then
echo "0"
else
echo "1"
fi
You could then have alarm center alert you if the monitor goes to 1.hmm...not a bad idea. I'll give it a shot. Thanks!
Would you like to comment?
You must be a member. Sign In if you are already a member.