Hi, <br>
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. <br>
_________________________________<br>
log_file=/usr/local/nagios/var/nagios.log
<br>
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
<br>
cfg_file=/usr/local/nagios/etc/misccommands.cfg
<br>
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
<br>
cfg_file=/usr/local/nagios/etc/contacts.cfg
<br>
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
<br>
cfg_file=/usr/local/nagios/etc/hosts.cfg
<br>
cfg_file=/usr/local/nagios/etc/services.cfg
<br>
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
<br>
illegal_macro_output_chars=`~$&|'"<>
<br>
resource_file=/usr/local/nagios/etc/resource.cfg <br>
nagios_user=root
<br>
nagios_group=nagios <br>
check_external_commands=1
<br>
command_check_interval=-1
<br>
command_file=/usr/local/nagios/var/rw/nagios.cmd <br>
use_syslog=1
<br>
log_notifications=1 <br>
log_service_retries=1 <br>
log_host_retries=1
<br>
log_event_handlers=1ocal/nagios/etc/resource.cfg
<br>
log_initial_states=1mesh/nagios-logs/status.log <br>
log_external_commands=1
<br>
service_reaper_frequency=10 <br>
sleep_time=1 <br>
service_check_timeout=60
<br>
host_check_timeout=30 <br>
event_handler_timeout=30
<br>
notification_timeout=30 <br>
ocsp_timeout=5 <br>
perfdata_timeout=5
<br>
use_agressive_host_checking=0 <br>
execute_service_checks=1
<br>
accept_passive_service_checks=1 <br>
enable_notifications=1
<br>
enable_event_handlers=1 <br>
process_performance_data=0
<br>
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
<br>
retain_state_information=1
<br>
state_retention_file=/usr/local/nagios/var/status.sav
<br>
retention_update_interval=60 <br>
use_retained_program_state=1
<br>
interval_length=60 <br>
admin_email=nkaranuk@localhost <br>
______________________________<br>
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. <br>
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. <br>
<br>
ran 'ps axuw | grep nagios' ..got only single nagios process as below <br>
<span style="font-weight: bold;">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</span><br>
<br>
looking
forward to your thoughts, <br>
nkaranUk <br>