Antwort: Problem: Server is UP??

Mark Felder felderado at gmail.com
Tue Jun 17 15:34:08 CEST 2008


Here are the notify commands that come with debian. I don't modify them.


  # 'host-notify-by-email' command definition
define command{
        command_name    host-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_name    host-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_name    notify-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_name    notify-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, Sascha.Runschke at gfkl.com <Sascha.Runschke at gfkl.com> wrote:
>  >
>  > nagios-users-bounces at lists.sourceforge.net 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 at 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 at 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


More information about the Users mailing list