Search
Support Technical Information How-To Enable audio in op5 Monitor

Enable audio in op5 Monitor

 
 
Introduction To enable audio when viewing status.cgi you have to do some minor editing in cgi.cfg and upload your sound files to the op5 Monitor server.

Note: The audio will be played for all users, you can not restrict it.
 
 
Directories and files Where can i find/put my files?
File... is located...
cgi.cfg ... in /opt/monitor/etc/cgi.cfg
Audio files ... in /opt/monitor/share/media/
 
 
Audio files Upload your audio files to the op5 Monitor server.

Help! my "media" directory does not exist
If your media directory does not exist on your server you have to create it manually

Make sure that you have the same owner/permissions as the other directories (Normally root:root 744).
 
 
cgi.cfg Edit the file /opt/monitor/etc/cgi.cfg with your favorite editor.

Add the following entries if they does not exist:
host_unreachable_sound=<sound_file>
host_down_sound=<sound_file>
service_critical_sound=<sound_file>
service_warning_sound=<sound_file>
service_unknown_sound=<sound_file>
Examples:
host_unreachable_sound=hostu.wav
host_down_sound=hostd.wav
service_critical_sound=critical.wav
service_warning_sound=warning.wav
service_unknown_sound=unknown.wav
Note: The name of the files is case sensitive.
 
 
Test and Enable To verify that everything is correct with your configuration run the following command:
<shell># service monitor configtest

You should se something like
Total Warnings: 3
Total Errors: 0

Things look okay - No serious problems were detected \
during the pre-flight check
Then you are ready to Enable it. run:
<shell># service monitor reload