Problem with simultaneously alerts

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
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Problem with simultaneously alerts

Post by mp1 »

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

Post by KS-Soft »

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
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

1) Are you sure you need SMS gateway? HostMonitor version 6 offers "Send SMS" action
Unfortunatelly our SMS Gateway is connected on our network management server, but you are right:

It seems, that the problem was really the %random% variable, with %testid% I had no problems up to now :D :D

Thanks

Martin
Post Reply