Re: [Nagios-users] Antwort: Problem: Server is UP??

2008-06-17 Thread Mark Felder
Here are the notify commands that come with debian. I don't modify them.


  # 'host-notify-by-email' command definition
define command{
command_namehost-notify-by-email
command_line/usr/bin/printf %b * Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTALIAS$\nState: $HOSTSTATE$ for $HOSTDURATION$\nAddress:
$HOSTADDRESS$\nInfo:\n\n$HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n\nACK by: $HOSTACKAUTHOR$\nComment:
$HOSTACKCOMMENT$\n | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ alert
$NOTIFICATIONNUMBER$ - $HOSTALIAS$ host is $HOSTSTATE$ **
$CONTACTEMAIL$
}


# 'host-notify-by-epager' command definition
define command{
command_namehost-notify-by-epager
command_line/usr/bin/printf %b Host '$HOSTALIAS$' is
$HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$ | /usr/bin/mail
-s $NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$
$CONTACTPAGER$
}

# 'notify-by-email' command definition
define command{
command_namenotify-by-email
command_line/usr/bin/printf %b * Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nState: $SERVICESTATE$ for
$SERVICEDURATION$\nAddress:
$HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment:
$SERVICEACKCOMMENT$\n | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ alert
$NOTIFICATIONNUMBER$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **
$CONTACTEMAIL$
}


# 'notify-by-epager' command definition
define command{
command_namenotify-by-epager
command_line/usr/bin/printf %b Service:
$SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ |
/usr/bin/mail -s $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$ $CONTACTPAGER$
}


Thanks for looking into this

The only other thing I can possibly think of is the pattern of this
indicates that it's only doing this for Solaris servers which are
using the NRPE out of Blastwave... could this be caused by NRPE?



Mark


  On 6/17/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
   [EMAIL PROTECTED] schrieb am
   17.06.2008 04:28:23:
  
  
 I really need some help with this guys. My setup was working for the
 longest time and I can't think of any changes made to it that would
 cause this behavior. I get random (and quite annoying!) Nagios alerts
 that say Problem: $SERVER is UP! (with the actual host name) or
 sometimes it just literally says Problem: HOST is UP. Note, this
 only happens during my off hours time. I've never seen this during the
 day. I'm running Nagios on Debian Etch and I've tried version 3.02
 from the backports and that had the same issue. It has to be my config
 but I can't figure out for the life of me what it could possibly be!

 Any help you can give me will be SO much appreciated!

 I'm going to attach my configs. Thanks everyone.
  
   After looking throgh the config, I cannot find any culprits which would
   cause such behaviour. Maybe you have some bogus notification commands?
   The Problem: ... is UP doesn't seem to make sense to me and does not
   correspond to the default configuration. Recovery alerts shold start
   with Recovery: ...
  
   Please post your host-notify-by-email command definitions.
  
  
   Regards
   Sascha
  
   --
Sascha Runschke
Netzwerk-  und  Systemmanagement
Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201)
   102-1102105
  
  
GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger,
   Dr. Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522

  -
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
   ___
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
  

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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 

Re: [Nagios-users] Problem: Server is UP??

2008-06-17 Thread Mark Felder
On Tue, Jun 17, 2008 at 06:27:04PM +1200, Steve Shipway wrote:
  I really need some help with this guys. My setup was working for the
  longest time and I can't think of any changes made to it that would
  cause this behavior. I get random (and quite annoying!) Nagios alerts
  that say Problem: $SERVER is UP! (with the actual host name) or
  sometimes it just literally says Problem: HOST is UP. Note, this
  only happens during my off hours time. I've never seen this during the
  day.
 
 You have probably configured your contact details to send a RECOVERY alert 
 for hosts when it is out of hours.  This means you will get a 'host is UP' 
 alert when the host status changes to UP.  Your message format probably 
 prepends the 'Problem: ' to it.
 
 Admittedly your configuration doesn't look like this is there.  I suppose you 
 should check the message header and make sure it really originated on your 
 host, and check you don't have two versions of Nagios running (did you have 
 and old or test instance set up that might be sending these emails?)
 
 Steve


I can confirm 100% that there is no other Nagios instance running. I
also can't check the message header because it's using an email to SMS
gateway when I get these messages so I only don't have access to those
headers when it shows up on my phone.

Mark

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Problem: Server is UP??

2008-06-16 Thread Mark Felder
I really need some help with this guys. My setup was working for the
longest time and I can't think of any changes made to it that would
cause this behavior. I get random (and quite annoying!) Nagios alerts
that say Problem: $SERVER is UP! (with the actual host name) or
sometimes it just literally says Problem: HOST is UP. Note, this
only happens during my off hours time. I've never seen this during the
day. I'm running Nagios on Debian Etch and I've tried version 3.02
from the backports and that had the same issue. It has to be my config
but I can't figure out for the life of me what it could possibly be!

Any help you can give me will be SO much appreciated!

I'm going to attach my configs. Thanks everyone.



Mark


nagios.tar.gz
Description: GNU Zip compressed data
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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