<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<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:0cm;
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
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=NO-BOK link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Is this a distributed
setup?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>If so, are you sure you’re
not receiving notifications from 2 servers? <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
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 <st1:country-region w:st="on"><st1:place
w:st="on">uk</st1:place></st1:country-region><br>
<b><span style='font-weight:bold'>Sent:</span></b> 1. februar 2006 11:50<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><span
lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><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 <o:p></o:p></span></font></p>
</div>
</body>
</html>