KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Couple of "How to" questions.

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Thomas



Joined: 26 Mar 2005
Posts: 13

PostPosted: Mon Apr 04, 2005 5:59 am    Post subject: Couple of "How to" questions. Reply with quote

There are a few things I'd like to do that I can't quite figure out how to accomplish.

1. Create a test that executes a command on a linux box if an alert condition is met. (seems that all commands have to come from the machine that HM is on).

Example: restart ftp daemon on machine if the daemon doesn't respond for 10 test intervals. (/etc/init.d/ftpd restart)

2. Send a linux command and have the response displayed in the "reply" field.

Example: send uptime command every 4 hours and have results displayed in "reply" field.

Thanks,
Thomas
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Apr 04, 2005 12:51 pm    Post subject: Reply with quote

Quote:
2. Send a linux command and have the response displayed in the "reply" field.


Use Shell Script test method.
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell

Quote:
1. Create a test that executes a command on a linux box if an alert condition is met. (seems that all commands have to come from the machine that HM is on).


Linux version of the agent cannot execute actions, yet. As workaround you may create additional "External" or "Shell Script" test that will start command. You should configure this test as dependant test using expression like ('%::MasterTest::SimpleStatus%'=='DOWN') and (%::MasterTest::Recurrences%==10)

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index