Community
Command Central
MVP Program
Monthly Mission
Blogs
Groups
Events
Media Vault
Products
Observability
Network Management
Application Management
IT Security
IT Service Management
System Management
Database Management
Content Exchange
SolarWinds Platform
Server & Application Monitor
Database Performance Analyzer
Server Configuration Monitor
Network Performance Monitor
Network Configuration Manager
SQL Sentry
Web Help Desk
Free Tools & Trials
Store
Home
Products
Network Performance Monitor (NPM)
Batch file triggered by an alert
RobMilman
We are trying to create an alert that plays a .wav file on a remote machine. The batch file works fine when run directly from the Orion server. But it does not work when the alert is triggered. When we test the alert, we verified the batch file runs by sending a net message to the remote machine. The .wav file does not play. We are using sysinternals psexec command to open media player on the remote machine and play the specified wav file. Like I mentioned, it works fine when we run it from a command prompt, just not when Orion triggers it. We have tried adding a username and password but it did not work either.
Here is the batch file(ip address removed for security):
net send x.x.x.x test
psexec \\x.x.x.x "c:\program files\windows media player\mplayer2.exe" -play -close c:\satellitelink1.wav
Any thoughts or suggestions would be greatly appreciated.
Thanks,
Rob Milman
Rob Milman
Find more posts tagged with
Accepted answers
All comments
Levi
When you add the action, did you enter the full path to the batch file, including the file name?
Also, since it's creating a shell to call the batch file, if psexec is not in the path, it will not find it and fail. You could try add a path statement to beginning of the file.
RobMilman
Thanks Levi,
That worked perfectly. I can't believe I didn't think of doing that myself.
Best regards,
Rob
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of