Couple of "How to" questions.

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Thomas
Posts: 13
Joined: Sat Mar 26, 2005 4:28 am

Couple of "How to" questions.

Post by Thomas »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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/mfra ... m#chkShell
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
Post Reply