Reminders

SSH monitor fails to login sometimes

2 years ago
OfflineTom W
Tom W

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.

-----
You liked this too0 people like this discussion.
 
Concluded

0 Conclusions:

5 Replies

OfflineBryan Yoch Bryan Yoch said 2 years ago

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?


OfflineTom W Tom W said 2 years ago

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.


OfflineBryan Yoch Bryan Yoch said 2 years ago

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.


OfflineTom W Tom W said 2 years ago

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.

  • 677 views
  • 1 version
  • 5 replies
  • 0 followers
     
Post Date:
April 14, 2011
Posted By:
Tom W

Related Content

Search this area

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