Re: [Nagios-users] Nagios email notification, nothing for aditional information section.

2011-02-16 Thread Andre Kruger
Yeah, for the service-by-email notification you should add
$LONGSERVICEOUTPUT$. I edited your command as follows:
 

define command{
command_name notify-service-by-email
command_line /usr/bin/printf %b * Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$\n$LONGSERVICEOUTPUT$ | /usr/bin/mail -s **
$NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$ ** $CONTACTEMAIL$
}
 

 Mirza Dedic mi...@oppy.com 2011/02/15 23:58 

Hello,
 
I recently re-installed my Nagios environment and recently found that
using my old configuration that used to work, is not working now; more
specifically the email notification parsing seems to not send
information regarding “additional information” part.
 
Example email notification message that I receive:
 
* Nagios *
 
Notification Type: PROBLEM
 
Service: DB Log Watch oppy1
Host: van-oppy
Address: 172.16.4.14
State: CRITICAL
 
Date/Time: Tue Feb 15 11:06:26 PST 2011
 
Additional Info:
 
There is nothing in for additional information, below is the email
notification command being used:
 
define command{
command_name notify-host-by-email
command_line /usr/bin/printf %b * Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ Host Alert:
$HOSTNAME$ is $HOSTSTATE$ ** $CONTACTEMAIL$
}
 
define command{
command_name notify-service-by-email
command_line /usr/bin/printf %b * Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **
$CONTACTEMAIL$

Any help on troubleshooting this?
 
Thank you!


The Oppenheimer Group  CONFIDENTIAL

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.


Please consider your environmental responsibility before printing this
e-mail or any other document. Ask yourself whether you need a hard copy.

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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] Nagios email notification, nothing for aditional information section.

2011-02-15 Thread Mirza Dedic
Hello,

I recently re-installed my Nagios environment and recently found that using my 
old configuration that used to work, is not working now; more specifically the 
email notification parsing seems to not send information regarding additional 
information part.

Example email notification message that I receive:


* Nagios *



Notification Type: PROBLEM



Service: DB Log Watch oppy1

Host: van-oppy

Address: 172.16.4.14

State: CRITICAL



Date/Time: Tue Feb 15 11:06:26 PST 2011



Additional Info:

There is nothing in for additional information, below is the email notification 
command being used:

define command{
command_name notify-host-by-email
command_line /usr/bin/printf %b * Nagios *\n\nNotification 
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | 
/usr/bin/mail -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
** $CONTACTEMAIL$
}

define command{
command_name notify-service-by-email
command_line /usr/bin/printf %b * Nagios *\n\nNotification 
Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: 
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional 
Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ Service 
Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$

Any help on troubleshooting this?

Thank you!



The Oppenheimer Group  CONFIDENTIAL

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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] Nagios Email Notification

2007-07-21 Thread Nagios
Hello

Our Nagios is configured to send email is a service is not available,
I was wondering if we can set it up to send email when service is backed 
up !

Thanks

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Nagios Email Notification

2007-07-21 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nagios
 Sent: Saturday, July 21, 2007 9:49 AM
 To: [EMAIL PROTECTED]
 Cc: Nagios Users mailinglist
 Subject: [Nagios-users] Nagios Email Notification
 
 Hello
 
 Our Nagios is configured to send email is a service is not available,
 I was wondering if we can set it up to send email when service is
backed
 up !

Yes, certainly. Set your notification_options for your services and
contacts for those alert types you wish to receive.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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