Contact Info

Crumbtrail

ActiveXperts.com » Support » Serial Port Component » KB Article

Knowledge Base FAQ Items

 

Browse "Alert Actions" Questions:
Q7620040: I have an Action Script (.cmd batch script) that is launched when a check fails. It is working from the command prompt when I test it, but it is not working when used within ActiveXperts. What could be the reason?
When the scripts is in ActiveXperts as an Action Script, a different user context is used; it is the ActiveXpert Network Monitor service account context. So it can be a credentials issue. Besides that, there's no desktop interaction from the service. Make sure you have logging enabled, and make sure you redirect all error messages to that log file too, i.e. redirect stderr to stdout like this: 2>&1, like this in your .cmd batch script. For example @echo off set logfile=C:\ProgramData\Act...
Network Monitor > Alert Actions

Q7620035: We're trying to get the action "Reboot this server after failure" to restart a computer on the network and it's not working. Network Monitor logs the following error: "Reboot Server command is NOT sent to computer, error=[Unable to initiate a shutdown]"
Try the SHUTDOWN utility (part of the Windows Resource Kit) to reboot that machine, using the same credentials as the Network Monitor service. Check the error. Most probably, the service account has no administrative privileges on the remote computer.
Network Monitor > Alert Actions

Q7620030: Can I restart multiple services after a failure?
Yes you can. To restart multiple services, simply separate each service with a ';' character. For instance, to restart the alerter service and the messenger service, enter this string in the 'Restart service(s) after failure' box: alerter;messenger Click here for more information about restarting services.
Network Monitor > Alert Actions

Q7620010: Can I start a .NET executable when a check fails, just like a normal executable?
Yes you can. Make sure the right .NET Framework is installed on the server where ActiveXperts Network Monitor is running. If the .NET Framework is not installed, install it from the Server Manager's dashboard by selecting the Features component.
Network Monitor > Alert Actions

Q7620025: I want to restart services after failure, but I want to do this dynamically, i.e. at runtime will be decided which services to start. How can I achieve this?
It is pretty easy: just write a small VBScript program and launch it when the check fails. You can use the following script as a base for your own script: strRemoteComputer = "server05" strService = "alerter" For each Service in GetObject("winmgmts:{impersonationLevel=impersonate}!//" & strRemoteComputer)_ .ExecQuery("select * from Win32_Service where Name='" & strService & "'") Service.StartService Next
Network Monitor > Alert Actions

Q7620015: To restart a service after failure, what name should be used?
To restart a service, you should either enter its internal service name, or its long service displayname (as it appears in the Windows' services applet). For instance, to restart the Windows Time Service, you can either provide w32time (short name) or Windows Time (long displayname) in the network monitor configuration.
Network Monitor > Alert Actions

Q7620020: Can I restart multiple services after a failure?
Yes you can. To restart multiple services, simply separate each service with a ';' character. For instance, to restart the alerter service and the messenger service, enter this string in the 'Restart service(s) after failure' box: alerter;messenger
Network Monitor > Alert Actions

ActiveXperts Error Codes

Click here to view the full list of ActiveXperts error codes

Contact Support

To contact the ActiveXperts Help Desk, click here.