Enable notifications sounds nagwin

2 posts / 0 new
Last post
miltonalemanrios
Offline
Last seen: 10 years 5 months ago
Joined: 17.12.2012 - 22:04
Enable notifications sounds nagwin

Hello,

 

I installed the free version of nagwin am monitoring multiple computers, in the case of sound notifications not active when a computer or service falls.

 

I have configured the file cgj.cfg and I removed the # in the following lines

 

host_unreachable_sound=Saber1.wav

host_down_sound=Flcnalrt.wav

#service_critical_sound=hostdown.wav

service_warning_sound=Saber1.wav

#service_unknown_sound=intro_converted.wav

#normal_sound=UTOPIA.wav

 

I've also put your files in the media folder that is in the html folder and does not work

 

Ultimately create a perl script that I play the alert follows

 

#!/bin/sh

 use Nagios::Plugin;

 use Win32::Sound;

    Win32::Sound::Volume('100%');

    Win32::Sound::Play("Flcnalrt.wav");

    Win32::Sound::Stop();

 

templates.cfg file and edit the following lines

define contact{

 

        name                            generic-contact     ; The name of this contact template

        

service_notification_period     24x7 ; service notifications can be sent anytime

        

host_notification_period        24x7 ; host notifications can be sent anytime

        

service_notification_options    w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events

        

host_notification_options       d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events

        

service_notification_commands   play_siren ; notify-service-by-email, send service notifications via email

        

host_notification_commands     play_siren ;  notify-host-by-emailsend host notifications via email

        

register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!

        }

and I created the following command in the file comands.cfg
 

define command{
command_name play_siren
command_line $USER1$/nagalert.pl
 
}

 

The perl script is located in the Plugins folder in ICW, not because I do not play the alert, I need your help.
 
Thank you very much for for your replies, and sorry for my bad grammar but I'm writing.

miltonalemanrios
Offline
Last seen: 10 years 5 months ago
Joined: 17.12.2012 - 22:04
solved, I installed nagwin,

solved, I installed nagwin, in Windows Server2003, and ready, Nagwin play the sound alert, before i installed nagwin in windows 7, and does  not work, ok thanks!!

Release news