Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-30 Thread Arnau

Hi all,

Assaf Flatto wrote:
hello 


You want to take a look at the external commands :
 
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135
  


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.



--

#!/bin/sh
# This is a sample shell script showing how you can submit the 
SEND_CUSTOM_SVC_NOTIFICATION command

# to Nagios.  Adjust variables to fit your environment as necessary.

now=`date +%s`
commandfile='/var/lib/nagios3/rw/nagios.cmd'

/usr/bin/printf [%lu] 
SEND_CUSTOM_SVC_NOTIFICATION;192.168.10.26;MAILPARSER_TEST;2;test;Testing 
if everything is OK\n $now  $commandfile

--

And I have defined the following service

--

define service {
   service_description MAILPARSER_TEST
   check_command   return-critical
   normal_check_interval   2
   use generic-service
   notification_interval   0
}
--

And never sends a mail as it normally does with all the other services I 
have. Any idea?


Cheers!!


Assaf

On Friday 24 April 2009 15:48:39 Arnau wrote:
  

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 #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users

::: Please include Nagios version, plugin version (-v) and OS when
::: reporting any issue. Messages without supporting info will risk being
::: sent to /dev/null





  


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Arnau
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 #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Assaf Flatto
hello 

You want to take a look at the external commands :
 
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135

Assaf

On Friday 24 April 2009 15:48:39 Arnau wrote:
 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 #45; New Free Runtime and 30 Day Trial
 Check out the new simplified licensign option that enables unlimited
 royalty#45;free distribution of the report engine for externally facing
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users

 ::: Please include Nagios version, plugin version (-v) and OS when
 ::: reporting any issue. Messages without supporting info will risk being
 ::: sent to /dev/null



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Marc Powell

On Apr 24, 2009, at 9:48 AM, Arnau wrote:

  Do you know if there is a way to force Nagios to send a notification
 periodically?

I expect you're looking for the 'notification_interval' directive of  
service and host definitions.

--
Marc


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Kyle Tucker
On Fri, Apr 24, 2009 at 04:48:39PM +0200, Arnau wrote:
   Do you know if there is a way to force Nagios to send a notification
 periodically?

I'd try here with an external command.

http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135

-- 
- Kyle 
-
ky...@panix.com   http://www.panix.com/~kylet
-

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Arnau
Hi all,

  Thanks for all the replies

Assaf Flatto wrote:
 hello 

 You want to take a look at the external commands :
  
 http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135
   

  I have copiedpasted the example that appear on that link. When I 
execute it I get the following error in my nagios log

 Warning: Unrecognized external command - 
SEND_CUSTOM_SVC_NOTIFICATION;envirosensor;Water Level;3;Ethan;The NOC is 
currently flooding.  Help!

  I'm using Nagios 2.6 over debian. Any idea?

Thank you very much!!

 Assaf

 On Friday 24 April 2009 15:48:39 Arnau wrote:
   
 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


 
Cheers!!
--
Arnau

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Marc Powell

On Apr 24, 2009, at 11:00 AM, Arnau wrote:

 Assaf Flatto wrote:

 http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135

 Warning: Unrecognized external command -
 SEND_CUSTOM_SVC_NOTIFICATION;envirosensor;Water Level;3;Ethan;The  
 NOC is
 currently flooding.  Help!

  I'm using Nagios 2.6 over debian. Any idea?

Command Categories:
Notifications
Services

Nagios Version(s):
3.x   '

--
Marc



--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How configure Nagios to send periodic notifications?

2009-04-24 Thread Sean McAfee
Arnau wrote:
 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?

Another way to do it would be to schedule it as a check with a 5 minute 
timeperiod , a 10 minute check_interval, and obsession. This would cause 
it to run once a day and alert on everytime, not just when the status 
changes.

-- 
Sean McAfee
System Engineer

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null