small problems with upgrading from nagios 1x to nagios 2x (fwd)

Arno Lehmann al at its-lehmann.de
Tue Apr 5 20:51:45 CEST 2005


Hi.

Deedra Waters wrote:

> Hi all,
> 
> I'm having some trouble trying to find docs/info on this particular
> issue.
> 
> I've upgraded from nagios 1x to 2x, and everything seems to be working
> fine, accept for this: ( i've replaced hostname and ip with hostname and
> ip.
> 
> ***** Nagios  *****
> 
> Notification Type: PROBLEM
> 
> Service: NRPE - Root partition check
> Host:HOSTNAME
> Address:IP
> State: CRITICAL


This was discussed on the list in the last few weeks,iirc.

The macros have changed. You find the valid names in the documentation 
on your nagios system.

Arno
> Date/Time: $
> 
> Additional Info:
> 
> $
> 
> I'm guessing that something is wrong with my notify-by-email command
> here, but I'm not seeing what the problem is.
> 
> define command{
>         command_name    notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState:
> $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$"
> | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$:$SERVICEDESC$
> is $SERVICESTATE$ **" $CONTACTEMAIL$
>         }
> 
> 
> Any help would be great appreciated.
> 
> Thanks!
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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