Submit passive check result for a service sending out duplicate alert mails?

Mike Koponick mkoponick at redhawk.info
Wed Feb 1 17:25:46 CET 2006


Karan,

 

If this is a distributed monitoring setup, you will need to turn off
notifications on the "sensor" at that is doing the checking.
Notifications should be turned on the central server where Nagios/NSCA
is accepting the checks.

 

Thanks!

 

Mike

 

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Karan uk
Sent: Wednesday, February 01, 2006 2:50 AM
To: Nagios-Users (E-mail)
Subject: [Nagios-users] Submit passive check result for a service
sending out duplicate alert mails?

 

Hi, 
I've got Nagios-1.3 installed on rh7.3.The nagios.cfg i'm using is as
below.Rest cfg files are as per the docs. 
_________________________________
log_file=/usr/local/nagios/var/nagios.log 
cfg_file=/usr/local/nagios/etc/checkcommands.cfg 
cfg_file=/usr/local/nagios/etc/misccommands.cfg 
cfg_file=/usr/local/nagios/etc/contactgroups.cfg 
cfg_file=/usr/local/nagios/etc/contacts.cfg 
cfg_file=/usr/local/nagios/etc/hostgroups.cfg 
cfg_file=/usr/local/nagios/etc/hosts.cfg 
cfg_file=/usr/local/nagios/etc/services.cfg 
cfg_file=/usr/local/nagios/etc/timeperiods.cfg 
illegal_macro_output_chars=`~$&|'"<> 
resource_file=/usr/local/nagios/etc/resource.cfg 
nagios_user=root 
nagios_group=nagios 
check_external_commands=1 
command_check_interval=-1 
command_file=/usr/local/nagios/var/rw/nagios.cmd 
use_syslog=1 
log_notifications=1 
log_service_retries=1 
log_host_retries=1 
log_event_handlers=1ocal/nagios/etc/resource.cfg 
log_initial_states=1mesh/nagios-logs/status.log 
log_external_commands=1 
service_reaper_frequency=10 
sleep_time=1 
service_check_timeout=60 
host_check_timeout=30 
event_handler_timeout=30 
notification_timeout=30 
ocsp_timeout=5 
perfdata_timeout=5 
use_agressive_host_checking=0 
execute_service_checks=1 
accept_passive_service_checks=1 
enable_notifications=1 
enable_event_handlers=1 
process_performance_data=0 
illegal_object_name_chars=`~!$%^&*|'"<>?,()= 
retain_state_information=1 
state_retention_file=/usr/local/nagios/var/status.sav 
retention_update_interval=60 
use_retained_program_state=1 
interval_length=60 
admin_email=nkaranuk at localhost 
______________________________
The issue i'm facing is that when an external command is run like
"Submitting a passive check for a service" i receive two email alerts
rather that just one. 
I've checked the no.of entries of this external command made in the
nagios.cmd n found that just one entry is made per external command,is
something like<div class='indent'>[1138685516]
PROCESS_SERVICE_CHECK_RESULT;nkaranuk;GENERIC_DB_CONNECTION;2;submitting
a passive check manually</div>.So is this a normal behavior or i'm
missing some key configuration that is causing these duplicate alerts. 

ran 'ps axuw | grep nagios' ..got only single nagios process as below 
root 1105 0.0 0.0 1816 840 pts/0 S 22:07 0:00
/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg

looking forward to your thoughts, 
nkaranUk 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060201/9f06233f/attachment.html>


More information about the Users mailing list