How to change alarm sound a services on nagios ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ky_pim
Posts: 7
Joined: Sat Sep 06, 2014 10:43 pm

How to change alarm sound a services on nagios ?

Post by ky_pim »

Hi all,

Very sorry for my poor english. Current, I have a nagios 4.0.8 server. On server, I've config 10 hosts and 70 services.

I'm want to change the warning sounds for a service, when the incident on that service.
Example: 3 services and 3 sound alarm.

+ ssh
+ http
+ mysql

+ 1.wav
+ 2.wav
+ 3.wav

When service httpd down, the alarm sounds 1.wav. Similarly, service mysqld stop, the alarm sounds 2.wav ....Are you understand?

Can you help me?

Thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to change alarm sound a services on nagios ?

Post by abrist »

This is not currently possible without making some big changes to the cgi source. Currently, you can only set different alarm sounds for the following things:

Code: Select all

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>
See:
http://nagios.sourceforge.net/docs/3_0/configcgi.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked