The Opmantek team was requested to add a feature to NMIS by one of our commercial customers to play a sound when events were displayed on the NMIS dashboard. This has been added to NMIS 8.5.2G and is dependant on a HTML5 compliant browser (all modern browsers are compliant, IE 6 is NOT).
Features paid for by customers are made available at no charge to the community, in this way NMIS continues to develop and grow.
The feature is fairly simple but quite powerful, it works from the Log Viewer logs.pl, when viewing all the current events or syslogs, it will count all the criticality's and then depending on the configuration, play a sound for the most critical level. This will be checked each time the widget is refreshed, which by default is 180 seconds, configured with "page_refresh_time".
The configuration for this feature is a new section in the NMIS Configuration file Config.nmis usually /usr/local/nmis8/conf/Config.nmis, the new section is called "sound" and is included in the Config template /usr/local/nmis8/install/Config.nmis, the default configuration is below. This configuration would only play a sound for fatal, critical and major events.
If you have upgraded NMIS from a previous version, the installer should have added this already, if not you can merge in new configuration changes with this command:
Disabling Sound Levels
To only play a sound for fatal and critical events, you can remove the links to the sound files, or change the sound_levels setting. The later is shown here.
Customising Sound Files
This feature uses the HTML5 audio tag, which support OGG, MP3 and WAV file formats, all the sounds must be the same type, this is set using the sound_type option, the valid options are, audio/mpeg, audio/ogg, audio/wav. There are many free utilities for converting sound files.
You might like to configure the feature to play a quiet pleasing beep or ping noise when the worst thing is normal or warning, and other sounds which are progressively more insistent and urgent as the criticality approaches fatal. The operations teams using this will normalise the "normal" sound very quickly and they will notice when they do not hear that sound.
So you can grab new sound files and replace the existing sounds with your own files, very easy to do.
Sound File Disclaimer
The current sound files were recorded by Keith Sinclair around the time of the birth of NMIS in August 1999. He makes no apologies for the 16 bit sound and static in the background, at the time, it was state of the art, clearly the art has come along way since then.