<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Karan,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks!</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Mike</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Karan uk<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, February 01, 2006
2:50 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Nagios-Users (E-mail)<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] Submit
passive check result for a service sending out duplicate alert mails?</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>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>
<b><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></b><br>
<br>
looking forward to your thoughts, <br>
nkaranUk </span></font></p>

</div>

</body>

</html>