Have you recently upgraded Nagios?  When did you start noticing that it was missing execution runs?  Do you have enough disk space free?  What are the permissions of the script set to?  Were they recently changed?  Have you done any type of software changes with any type of supporting packages (i.e. Perl) that could have brought up this issue?<br>

<br>Here are some thoughts on where I would start looking.  Anything that you can dig up we can look at more closely to identify a potential cause for this issue.<br><br>~Chad<br><br><div class="gmail_quote">On Wed, Mar 9, 2011 at 1:29 AM, MAYER Hans <span dir="ltr"><<a href="mailto:mayer@iiasa.ac.at">mayer@iiasa.ac.at</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Dear
all</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Using
Nagios since a lot of years, I was starting with one of the first versions of “netsaint”,
and more than 25 years of experience with UNIX, I have now a strange problem I
never had before. </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">I
am running Nagios Core 3.2.3 on Solaris 10 OS. Hardware is M3000 with SPARC V9
architecture. </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">My
problem is, I see sometimes – not always – a service notification
in the log, but it is not really done. </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Here
an example, the entry in the log</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#0070C0">[03-09-2011 09:13:25] SERVICE NOTIFICATION:
sms_mayer;amazon;DISK/p14amazon;OK;notify-service-by-sms;DISK OK - free space:
/p14amazon 4531 MB (6% inode=99%):</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Here
is the definition for notify-service-by-sms</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"># 'notify-service-by-sms' command definition</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">define command{</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">       
command_name    notify-service-by-sms</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">       
command_line    $USER1$/rshsendsms $CONTACTPAGER$ \"Info:
$HOSTALIAS$/$SERVICEDESC$ $SERVICEOUTPUT$ \"</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">        }</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">As
you see I execute a command named “rshsendsms”. And this are the
first lines of the shell script:</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">:</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"># Wed Jan 19 10:12:15 MET 2011 - mayer initial</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"># Wed Feb 16 10:11:54 MET 2011 - mayer logging the UID</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"># usage:</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"># rshsendsms 0043664xxxxxxx  '"hello world - how are
you "'</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"># info: both types of apostrophes are important</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">export PATH LOG NUMBER TEXT ID UID NOTSENT RUNLOG</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">PATH=/usr/bin:$PATH</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">LOG=/var/adm/rshsendsms.log</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">RUNLOG=/var/adm/rshsendsms_run.log</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0">date '+%y%m%d %H:%M' >> $RUNLOG</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:#7030A0"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">The
first action I do, I write a log-entry. (91% of the disk is free) But in this
case I cannot find the entry. The last one is dated with  110309 06:39,
where I received a SMS really. I also switched on the process accounting weeks
ago. But there is no entry to be found, that the shell script was executed. </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">I
also switched on the debug facility of “syslog”. I can find an
equivalent entry like in the Nagios log. But there are no other messages, that
something could be wrong. </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">But
on other hand I was informed at 06:39 and nothing was changed in the meantime.
This is not the first time this problem happens. Most of the time notification
works fine, but sometimes not. This is of course a pain as notification is one
central functionality of Nagios. </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Any
idea where I can start searching for the error ? </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Kind
regards </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt">Hans</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

</div>

</div>

</div>


<br>------------------------------------------------------------------------------<br>
Colocation vs. Managed Hosting<br>
A question and answer guide to determining the best fit<br>
for your organization - today and in the future.<br>
<a href="http://p.sf.net/sfu/internap-sfd2d" target="_blank">http://p.sf.net/sfu/internap-sfd2d</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>