<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
Assaf Flatto wrote:
<blockquote cite="mid:200904241617.19608.assaf.flatto@ssp-intl.com"
type="cite">
<pre wrap="">hello
You want to take a look at the external commands :
<a class="moz-txt-link-freetext" href="http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135">http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135</a>
</pre>
</blockquote>
<br>
I have upgraded from nagios2 to nagios3 and now when I execute the
shell script that fires the external command it runs fine. The problem
is that nagios doesn't fire a mail. I have done the following. I have
created a shell script that it should be executed via a cron task and
everytime it should send an email fired by the service.<br>
<br>
<br>
------------------------------<br>
<br>
#!/bin/sh<br>
# This is a sample shell script showing how you can submit the
SEND_CUSTOM_SVC_NOTIFICATION command<br>
# to Nagios. Adjust variables to fit your environment as necessary.<br>
<br>
now=`date +%s`<br>
commandfile='/var/lib/nagios3/rw/nagios.cmd'<br>
<br>
/usr/bin/printf "[%lu]
SEND_CUSTOM_SVC_NOTIFICATION;192.168.10.26;MAILPARSER_TEST;2;test;Testing
if everything is OK\n" $now > $commandfile<br>
--------------------------------------<br>
<br>
And I have defined the following service<br>
<br>
--------------------------------------<br>
<br>
define service {<br>
service_description MAILPARSER_TEST<br>
check_command return-critical<br>
normal_check_interval 2<br>
use generic-service<br>
notification_interval 0 <br>
}<br>
--------------------------------------<br>
<br>
And never sends a mail as it normally does with all the other services
I have. Any idea?<br>
<br>
Cheers!!<br>
<br>
<blockquote cite="mid:200904241617.19608.assaf.flatto@ssp-intl.com"
type="cite">
<pre wrap="">
Assaf
On Friday 24 April 2009 15:48:39 Arnau wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
Since few weeks ago we use Nagios as monitoring system and everytime
there is a problem it notifies sending an email. We have a system that
parses those emails and using a text to speech system it makes a phone
call. To be sure that the alarm system is running we have periodic calls
launched by emails programmed as cron tasks. I'm worried that some of
the Nagios notifications could be lost or even it wouldn't sent any
notification, so I'd like to launch to substitute those cron emails by
Nagios "fake" notifications or something similar.
Do you know if there is a way to force Nagios to send a notification
periodically?
Thank you very much
---------------------------------------------------------------------------
--- Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/businessobjects">http://p.sf.net/sfu/businessobjects</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when
::: reporting any issue. Messages without supporting info will risk being
::: sent to /dev/null
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>