RE: [Nagios-users] nagios not notifying by email

2006-02-27 Thread Ryan Wilcox
I am having a similar type problem... I have searched around, didn't
find anything that was exactly the same. Here are my settings:

enable_notifications=1
retain_state_information=1

Notifications were working fine in our 1.x build, after I upgraded to
2.x my email, pager, etc., notifications stopped working.

Viewing my event log, I see that the notifications are actually getting
logged, however they are not being sent to the recipients. Thinking
about this more, it sounds like a linux problem not my nagios configs?

Any help would be greatly appreciated. 


 
  I just tried disabling all state_retention (was previously on) and
 bounced
  nagios and finally got a message.   so perhaps state retention was
set
  incorrectly. What I'd like to do is have it retain state when I
bounce
 
 The 'Retention Notes' at
 http://nagios.sourceforge.net/docs/2_0/xodtemplate.html will provide
 insight into how retention works.
 
  nagios st I don't get msgs about those I know are down on restart.
 Here's
  what I have:
 
  nagios.cfg:
  log_initial_states=0
  retain_state_information=0
  state_retention_file=/usr/local/stow/nagios/var/status.sav
  use_retained_program_state=0
 
  host.cfg:
   retain_status_information   0
   retain_nonstatus_information0
 
  services.cfg:
retain_status_information   0
retain_nonstatus_information0
 
 We use --
 
 nagios.cfg -
 retain_state_information=1
 use_retained_program_state=0
 state_retention_file=/usr/local/nagios/var/status.sav
 
 host template -
 
 retain_status_information   1
 retain_nonstatus_information1
 
 service template -
 
 retain_status_information   1
 retain_nonstatus_information1
 
 Notifications are not sent out on restart.
 
 --
 Marc



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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 not notifying by email

2006-02-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Ryan Wilcox
 Sent: Monday, February 27, 2006 10:36 AM
 To: nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] nagios not notifying by email
 
 I am having a similar type problem... I have searched around, didn't
 find anything that was exactly the same. Here are my settings:
 
 enable_notifications=1
 retain_state_information=1
 
 Notifications were working fine in our 1.x build, after I upgraded to
 2.x my email, pager, etc., notifications stopped working.
 
 Viewing my event log, I see that the notifications are actually
getting
 logged, however they are not being sent to the recipients. Thinking
 about this more, it sounds like a linux problem not my nagios configs?
 
 Any help would be greatly appreciated.

What have you tried to diagnose or correct the problem before coming
here?

It appears that your host and service definitions are probably OK if
you're seeing notification attempts in nagios.log.

Did you verify you're using the correct (new) macros in your
notification command?

Have you tried running your notification command from the command line
as the nagios user, substituting in appropriate text for the macros?
What happens?

Have you looked in your mail server logs to determine if it sees the
notification attempt? Queues the mail? Attempts to deliver it? Bounces
it?

Have you tried 'echo'ing your notification command to a file to verify
that it has the correct syntax and format?

--
Marc



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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 not notifying by email [RESOLVED]

2006-02-27 Thread Ryan Wilcox
error existed between chair and keyboard... thanks for your suggestions
marc, it made me think of something that i didn't check before my
inquiry.

thanks
ryan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Marc Powell
 Sent: Monday, February 27, 2006 1:53 PM
 To: nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] nagios not notifying by email
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
[mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Ryan Wilcox
  Sent: Monday, February 27, 2006 10:36 AM
  To: nagios-users@lists.sourceforge.net
  Subject: RE: [Nagios-users] nagios not notifying by email
 
  I am having a similar type problem... I have searched around,
didn't
  find anything that was exactly the same. Here are my settings:
 
  enable_notifications=1
  retain_state_information=1
 
  Notifications were working fine in our 1.x build, after I upgraded
to
  2.x my email, pager, etc., notifications stopped working.
 
  Viewing my event log, I see that the notifications are actually
 getting
  logged, however they are not being sent to the recipients. Thinking
  about this more, it sounds like a linux problem not my nagios
configs?
 
  Any help would be greatly appreciated.
 
 What have you tried to diagnose or correct the problem before coming
 here?
 
 It appears that your host and service definitions are probably OK if
 you're seeing notification attempts in nagios.log.
 
 Did you verify you're using the correct (new) macros in your
 notification command?
 
 Have you tried running your notification command from the command
line
 as the nagios user, substituting in appropriate text for the macros?
 What happens?
 
 Have you looked in your mail server logs to determine if it sees the
 notification attempt? Queues the mail? Attempts to deliver it?
Bounces
 it?
 
 Have you tried 'echo'ing your notification command to a file to
verify
 that it has the correct syntax and format?
 
 --
 Marc
 
 
 
 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the live
 webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
 ___
 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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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 not notifying by email [RESOLVED]

2006-02-27 Thread jeff vier
On Mon, 2006-02-27 at 15:30 -0600, Ryan Wilcox wrote:
 error existed between chair and keyboard... thanks for your suggestions
 marc, it made me think of something that i didn't check before my
 inquiry.

what was it, for people searching the archives in the future?


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Marc Powell
  Sent: Monday, February 27, 2006 1:53 PM
  To: nagios-users@lists.sourceforge.net
  Subject: RE: [Nagios-users] nagios not notifying by email
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:nagios-users-
   [EMAIL PROTECTED] On Behalf Of Ryan Wilcox
   Sent: Monday, February 27, 2006 10:36 AM
   To: nagios-users@lists.sourceforge.net
   Subject: RE: [Nagios-users] nagios not notifying by email
  
   I am having a similar type problem... I have searched around,
 didn't
   find anything that was exactly the same. Here are my settings:
  
   enable_notifications=1
   retain_state_information=1
  
   Notifications were working fine in our 1.x build, after I upgraded
 to
   2.x my email, pager, etc., notifications stopped working.
  
   Viewing my event log, I see that the notifications are actually
  getting
   logged, however they are not being sent to the recipients. Thinking
   about this more, it sounds like a linux problem not my nagios
 configs?
  
   Any help would be greatly appreciated.
  
  What have you tried to diagnose or correct the problem before coming
  here?
  
  It appears that your host and service definitions are probably OK if
  you're seeing notification attempts in nagios.log.
  
  Did you verify you're using the correct (new) macros in your
  notification command?
  
  Have you tried running your notification command from the command
 line
  as the nagios user, substituting in appropriate text for the macros?
  What happens?
  
  Have you looked in your mail server logs to determine if it sees the
  notification attempt? Queues the mail? Attempts to deliver it?
 Bounces
  it?
  
  Have you tried 'echo'ing your notification command to a file to
 verify
  that it has the correct syntax and format?



signature.asc
Description: This is a digitally signed message part


RE: [Nagios-users] nagios not notifying by email [RESOLVED]

2006-02-27 Thread Ryan Wilcox
for some reason, my sendmail server had lost its settings and was
queuing up all the notifications. once i resolved the sendmail problem,
the flood gates opened up.

another great example of doing the *proper* research before hand...
would have been a good move on my part.


 -Original Message-
 From: jeff vier [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 27, 2006 3:43 PM
 To: Ryan Wilcox
 Cc: nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] nagios not notifying by email [RESOLVED]
 
 On Mon, 2006-02-27 at 15:30 -0600, Ryan Wilcox wrote:
  error existed between chair and keyboard... thanks for your
suggestions
  marc, it made me think of something that i didn't check before my
  inquiry.
 
 what was it, for people searching the archives in the future?
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
[mailto:nagios-users-
   [EMAIL PROTECTED] On Behalf Of Marc Powell
   Sent: Monday, February 27, 2006 1:53 PM
   To: nagios-users@lists.sourceforge.net
   Subject: RE: [Nagios-users] nagios not notifying by email
  
  
  
-Original Message-
From: [EMAIL PROTECTED]
  [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Ryan Wilcox
Sent: Monday, February 27, 2006 10:36 AM
To: nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] nagios not notifying by email
   
I am having a similar type problem... I have searched around,
  didn't
find anything that was exactly the same. Here are my settings:
   
enable_notifications=1
retain_state_information=1
   
Notifications were working fine in our 1.x build, after I
upgraded
  to
2.x my email, pager, etc., notifications stopped working.
   
Viewing my event log, I see that the notifications are
actually
   getting
logged, however they are not being sent to the recipients.
 Thinking
about this more, it sounds like a linux problem not my nagios
  configs?
   
Any help would be greatly appreciated.
  
   What have you tried to diagnose or correct the problem before
coming
   here?
  
   It appears that your host and service definitions are probably
OK if
   you're seeing notification attempts in nagios.log.
  
   Did you verify you're using the correct (new) macros in your
   notification command?
  
   Have you tried running your notification command from the
command
  line
   as the nagios user, substituting in appropriate text for the
macros?
   What happens?
  
   Have you looked in your mail server logs to determine if it sees
the
   notification attempt? Queues the mail? Attempts to deliver it?
  Bounces
   it?
  
   Have you tried 'echo'ing your notification command to a file to
  verify
   that it has the correct syntax and format?



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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 not notifying by email

2006-02-23 Thread Dave Stern

On Thu, 23 Feb 2006, Toto Capuccino wrote:


Hi,

Did you check the timeperiods.cfg file as you are using workhours
notification for services, you wont receive notification out of this period.
2006/2/23, Dave Stern [EMAIL PROTECTED]:


I didn't include timeperiods.cfg because this was the generic one. 
We're using workhours and 24x7 for all hosts.
Basically, notification_period is 24x7 for all, 
{service|host_notification_period} is either 24x7 or workhours.

I presume it's not a problem if a host is set to notification_period=work
in contacts but 24x7 in hosts.cfg and services.cfg

 =-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=
 David SternUniversity of Maryland
   Institute for Advanced Computer Studies


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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 not notifying by email

2006-02-23 Thread Mrutyunjaya Dash
Hi,

You can check you services.cfg file to verify you have notifications_options to 
w c u r. This might be one of the reason if you had copied services.cfg file 
from the sample config file.

Regards,
Dash

--
Sent from my BlackBerry Wireless Handheld


-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net nagios-users@lists.sourceforge.net
Sent: Thu Feb 23 06:27:03 2006
Subject: Re: [Nagios-users] nagios not notifying by email


Hi,

Did you check the timeperiods.cfg file as you are using workhours notification 
for services, you wont receive notification out of this period.

2006/2/23, Dave Stern  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] :

Continuing with the problem of nagios not sending email notifications, 

miscommands.cfg uses the default commands for 
host/service-notify-by-email
and the paths to mail are correct. I tested the command, and it works.
I replaced it with echo ... params/tmp/somefile but this is not being 
activated so it must be one of the config params:

contacts.cfg:
# 'others' contact definition
define contact{
 contact_nameothers
 alias   Undefined hosts 
 service_notification_period workhours
 host_notification_periodworkhours
 service_notification_optionsw,u,c
 host_notification_options   d,u
 service_notification_commands   notify-by-email 
 host_notification_commands  host-notify-by-email
 email   [EMAIL PROTECTED]

 }
..
hosts.cfg :
# Generic host definition template
 define host{
 namegeneric-host
 notifications_enabled   1
 event_handler_enabled   1
 flap_detection_enabled  1
 process_perf_data   1 
 retain_status_information   1
 retain_nonstatus_information1
 register0
 }

# 'host1' host definition
define host{
 use generic-host 
 host_name   host1
 alias   host1
 address  10.8.122.129
 check_command   check-host-alive 
 max_check_attempts  10
 notification_interval   1
 notification_period 24x7
 notification_period 24x7
 notification_optionsd,u 
 }
...

nagios.cfg includes
log_notifications=1
notification_timeout=30
enable_notifications=1


services.cfg:
# Generic service definition template
define service{
 namegeneric-service
 active_checks_enabled   1
 passive_checks_enabled  1
 parallelize_check   1
 obsess_over_service 1
 check_freshness 1 
 notifications_enabled   1
 event_handler_enabled   1
 flap_detection_enabled  1
 process_perf_data   1
 retain_status_information   1
 retain_nonstatus_information1 
 register0
 }

# Service definition
define service{
   use generic-service
   host_name   host1
   service_description AVAILABLE 
   is_volatile 0
   check_period24x7
   max_check_attempts  3
   normal_check_interval   10
   retry_check_interval1
   contact_groups   others 
   notification_interval   11
   notification_period 24x7
   notification_optionsw,u,c
  check_command   check-host-alive
   }


Can anyone see where notification by email may have been turned off 
or have any other ideas on diagnosing?
TIA


  =-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=
  David SternUniversity of Maryland
Institute for Advanced Computer Studies 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting

Re: [Nagios-users] nagios not notifying by email

2006-02-23 Thread Dave Stern

On Thu, 23 Feb 2006, Mrutyunjaya Dash wrote:


Hi,

You can check you services.cfg file to verify you have notifications_options to 
w c u r. This might be one of the reason if you had copied services.cfg file 
from the sample config file.



services.cfg has notification options currently set to w,u,c. I added 
recover.


One hint, on the webpage for a host availability, it says in the upper
left corner Notifications are disabled

This is in contrast to the fact that 
enable_notifications=1

is set in nagios.cfg
(and cgi.cfg says main_config_file=/some/path/nagios.cfg)

I just tried disabling all state_retention (was previously on) and bounced
nagios and finally got a message.   so perhaps state retention was set
incorrectly. What I'd like to do is have it retain state when I bounce
nagios st I don't get msgs about those I know are down on restart. Here's
what I have:

nagios.cfg:
log_initial_states=0
retain_state_information=0
state_retention_file=/usr/local/stow/nagios/var/status.sav
use_retained_program_state=0

host.cfg:
retain_status_information   0
retain_nonstatus_information0

services.cfg:
 retain_status_information   0
 retain_nonstatus_information0

 =-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=
 David SternUniversity of Maryland
   Institute for Advanced Computer Studies


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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 not notifying by email

2006-02-23 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Dave Stern
 Sent: Thursday, February 23, 2006 9:49 AM
 To: Mrutyunjaya Dash
 Cc: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] nagios not notifying by email
 

[chop]

 
 I just tried disabling all state_retention (was previously on) and
bounced
 nagios and finally got a message.   so perhaps state retention was set
 incorrectly. What I'd like to do is have it retain state when I bounce

The 'Retention Notes' at
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html will provide
insight into how retention works.

 nagios st I don't get msgs about those I know are down on restart.
Here's
 what I have:
 
 nagios.cfg:
 log_initial_states=0
 retain_state_information=0
 state_retention_file=/usr/local/stow/nagios/var/status.sav
 use_retained_program_state=0
 
 host.cfg:
  retain_status_information   0
  retain_nonstatus_information0
 
 services.cfg:
   retain_status_information   0
   retain_nonstatus_information0

We use --

nagios.cfg -
retain_state_information=1
use_retained_program_state=0
state_retention_file=/usr/local/nagios/var/status.sav

host template -

retain_status_information   1
retain_nonstatus_information1

service template -

retain_status_information   1
retain_nonstatus_information1

Notifications are not sent out on restart.

--
Marc



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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 not notifying by email

2006-02-20 Thread Dave Stern

We have two iterations at our site, one running the old netsaint (which
works flawlessly) and one running nagios 1.2 on RHEL E3-AS. The latter
rebuilds its config files each night based on various site-specific
files detailing what hosts we have, what to monitor on them etc.

The Linux version is not notifying when hosts/services go down. I suspect 
this is nothing more than the notify-by-email command.


On netsaint, it's

command[notify-by-email]=/usr/bin/printf '%s\n%s\n%s\n%s' '* NetSaint 0.0.7 
* $SERVICESTATE$ alert/notification'  'Host: $HOSTNAME$ Address: 
$HOSTADDRESS$', 'Additional Info: $OUTPUT$' | /usr/bin/mailx -s 'Service alert: 
$HOSTNAME$ is $SERVICESTATE$ **, $SERVICEDESC$' $CONTACTEMAIL$

and on linux its

# 'notify-by-email' command definition
define command{
command_namenotify-by-email
command_line/usr/bin/printf %b * Nagios  *\n\nNotificati
on Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddre
ss: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
 Info:\n\n$OUTPUT$ | /bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$
SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}

Does anyone know what the command should look like and how to test the above?
Thanks



 =-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=
 David SternUniversity of Maryland
   Institute for Advanced Computer Studies


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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 not notifying by email

2006-02-20 Thread Bill Jacqmein
My notify-by-email=snip==define command {command_name notify-by-emailcommand_line
/usr/bin/printf %b * Nagios *\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
Info:\n\n$OUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
}=snip==Does /bin/mail exist on your system? Is /bin/mail accessible by the nagios user?What I can think of off the top of my head. Bill
On 2/20/06, Dave Stern [EMAIL PROTECTED] wrote:
We have two iterations at our site, one running the old netsaint (whichworks flawlessly) and one running nagios 1.2 on RHEL E3-AS. The latterrebuilds its config files each night based on various site-specificfiles detailing what hosts we have, what to monitor on them etc.
The Linux version is not notifying when hosts/services go down. I suspectthis is nothing more than the notify-by-email command.On netsaint, it'scommand[notify-by-email]=/usr/bin/printf '%s\n%s\n%s\n%s' '* NetSaint 
0.0.7 * $SERVICESTATE$ alert/notification''Host: $HOSTNAME$ Address: $HOSTADDRESS$', 'Additional Info: $OUTPUT$' | /usr/bin/mailx -s 'Service alert: $HOSTNAME$ is $SERVICESTATE$ **, $SERVICEDESC$' $CONTACTEMAIL$
and on linux its# 'notify-by-email' command definitiondefine command{ command_namenotify-by-email command_line/usr/bin/printf %b * Nagios*\n\nNotificati
on Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditionalInfo:\n\n$OUTPUT$ | /bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$
SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ }Does anyone know what the command should look like and how to test the above?Thanks=-=-=-=-=-=-=-=-=-=-generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=
David SternUniversity of MarylandInstitute for Advanced Computer Studies---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://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