Hi,
We have a little problem with our sms alerts.
Our sms gateway is unfortunatelly not directly connect to the HM server,
so we have to generate special textfiles and copy they into a folder.
It works rather without problems, only when two or more alerts will be simultaneously executed, than not all files will be created.
Our action profile looks like this:
- Send E-MAIL
- Execute program
---> C:\sms.cmd %smsvariable1% %testname% is bad)
The smd.cmd looks like this:
echo %1 %2 %3 %4 %5 %6 %7 > \\servername\share\%random%hm.txt
So up to now I tried following to solve this problem:
- non-simultaneously test execution (folder properties)
- chanced the test interval from the checks (20 seconds, 25 seconds, ...)
- we already work with dependences
Although we still have sometimes the situation, that alerts will be executed at the same time. The mailing works always fine - with the %datetime% variable in the mail, you can see that there are mails (alerts) which will be generated in the same second.
Is there a possibilty, that alerts will not be executed simulaneously or do you have any other idea?
When I execute the sms.cmd on the server very fast in series, then all files will be generated. So I think, this is not a problem from the cmd.
Thanks in advance
Martin
Thanks in advance
Martin
Problem with simultaneously alerts
1) Are you sure you need SMS gateway? HostMonitor version 6 offers "Send SMS" action
2) May be problem caused by %random% variable that returns the same value for both actions. Try to use some HostMonitor's variable, e.g. %TestID%
> C:\sms.cmd %TestID% %smsvariable1% "%testname% is bad"
> echo %2 %3 %4 %5 %6 %7 > \\servername\share\%1_hm.txt
Regards
Alex
2) May be problem caused by %random% variable that returns the same value for both actions. Try to use some HostMonitor's variable, e.g. %TestID%
> C:\sms.cmd %TestID% %smsvariable1% "%testname% is bad"
> echo %2 %3 %4 %5 %6 %7 > \\servername\share\%1_hm.txt
Regards
Alex