Server Management - Systems Insight Manager
1833758 Members
2631 Online
110063 Solutions
New Discussion

Re: Sound an Alert in Web interface?

 
Nick Hromyak
Frequent Advisor

Sound an Alert in Web interface?

I tried creating a custom command to be played when a Service gets disonnected (i.e. no ping because of WAN issues).

The command was a simple "alarm.wav" file.

But when I try to run it on the specific server (SIM manager), this is where the alarm.wav file is located, I get an error. I presuemd the media player would load on the SIM manager and it would play, but I get a "Fault".

Is there another way to play a sound file when a specific event happens?

Thanks
Nick
11 REPLIES 11
Terry Auspitz
Frequent Advisor

Re: Sound an Alert in Web interface?

I've not tried this, but try changing the command to

start alarm.wav

This should force Windows to handle the command, and Windows will know to launch Media Player for files with a .wav extention.

-Terry
Nick Hromyak
Frequent Advisor

Re: Sound an Alert in Web interface?

Thanks for the reply, I get the same error whether it was set for C:\alarm.wav
or
"start alarm.wav"

I get this from the STDERR tab after I try to run the command.

EXCEPTION CLASS: com.hp.mx.exceptions.MxFailedAuthenticationException
EXCEPTION: Authentication failed.

Authentication??? Where?
I am loged on the server as a Domain Administrator, this is a Win2k3 server in the domain. Also my logon account on SIM is the same (Domain Admin).

Thanks!

Nick
Terry Auspitz
Frequent Advisor

Re: Sound an Alert in Web interface?

Nick,

I did a search for your error. This seems to be a known problem within HPSIM. I turned up this thread that might be of interest to you:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542802

There are apparently a bunch of threads that mention this error, see http://www.google.com/search?q=com.hp.mx.exceptions.MxFailedAuthenticationException&hl=en&lr=&client=firefox-a&rls=org.mozilla:en-US:official&filter=0 for more.

-Terry
Nick Hromyak
Frequent Advisor

Re: Sound an Alert in Web interface?

Thanks for the search Terry.

Apparently, only the Adminstrator of the local server can access the SSH. Not sure why that it is. I tried giving my Domain Admin account inclusive rights to the local administrator and that didn't work either. I also created a local account with my Domain admin account and password that didn't work either.

I ended up creating a batch file with the alarm.bat including the alarm.wav file. The file executes, and runs, but it doesn't actually sound on the server, nor does it interact with the desktop/web interface.

I guess I will have to try something else.

Basically, I want the Web interface to sound an alert when a critical event happens. Anyone?
Rob Buxton
Honored Contributor

Re: Sound an Alert in Web interface?

Check on the HPSIM Documentation pages. There's a number of articles regarding getting SSH to work.
There's also a number of SSH Tasks that need to be done post HPSIM install.
You need SSH working if you're going to use Custom Commands.
You can try altering which account the Custom Command runs under. I found this seemed to only work using the account I installed HPSIM under.

It's been a while since I last had any SSH battles. I got enough working to do what I needed to.
Nick Hromyak
Frequent Advisor

Re: Sound an Alert in Web interface?

Thanks for the replies, but it looks like I will have to use something else to do the sound notifications.

I can't get SSH to do it.

Thanks again!
David Claypool
Honored Contributor

Re: Sound an Alert in Web interface?

Nick:

I'm not sure I understand what you're trying to accomplish. Are you trying to get the sound to play at the central management server where you have HP SIM installed or are you trying to have the sound play in the context of the web browser that a user is logged in with?
Nick Hromyak
Frequent Advisor

Re: Sound an Alert in Web interface?

I am trying to get a sound to play from the console that a helpdesk or adminstrator would be logged in with.

I have only seen larger (expensive) packages or Cisco Works for Windows with this capability (directly). This is one of the main reasons we are using Cisco Works, right now.
David Claypool
Honored Contributor

Re: Sound an Alert in Web interface?

Sorry, but the Automatic Event Handling has no context to be able to execute at a remote location based on a logged in user.
Terry Auspitz
Frequent Advisor

Re: Sound an Alert in Web interface?

Nick, I just thought of an alternate way to do what you are trying to do, and thought I would come back and post it here.

Rather than creating events that play a sound, you could create events that will send an email to an account monitored at your SIM monitoring station. Then it's just a simple matter of creating a rule in your email browser to play a specific sound upon receiving one of these emails.

I don't know why I didn't think of this sooner!

-Terry
Nick Hromyak
Frequent Advisor

Re: Sound an Alert in Web interface?

Thanks for the reply and information Terry.

I wasn't aware that you can configure your email to play a sound in the rules. I will try that and see.

I wonder if I can make SIM send the emails as a different user (IIRC - I think I can). Then I can make Outlook play a sound when it comes from "PLAYSOUND@mydomain.com".

All sorts of interesting and fun things to try.

Thanks again! I really appreciate it!