|
View previous topic :: View next topic |
Author |
Message |
Thomas
Joined: 26 Mar 2005 Posts: 13
|
Posted: Mon Apr 04, 2005 5:59 am Post subject: Couple of "How to" questions. |
|
|
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 |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Apr 04, 2005 12:51 pm Post subject: |
|
|
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 |
|
|
|
|
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
|