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
Couple of "How to" questions.
Use Shell Script test method.2. Send a linux command and have the response displayed in the "reply" field.
http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
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)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).
Regards
Alex