small problems with upgrading from nagios 1x to nagios 2x

Arno Lehmann al at its-lehmann.de
Tue Apr 5 21:25:50 CEST 2005


Hello

Deedra Waters wrote:

> I understand the macros have changed, but unless I've been reading the
> docs wrong, all of the ones in my notify-by-email command are the same,
> which is why I'm not understanding what the problem is.  Since this is
> the only place where it's happening though, i suspect it's something
> about that command that's the issue.

In that case it might be helpful if you posted the command definitions - 
how else could anyone help you?

Arno

> On Tue, 5 Apr 2005, Arno Lehmann wrote:
> 
> 
>>Date: Tue, 05 Apr 2005 20:51:45 +0200
>>From: Arno Lehmann <al at its-lehmann.de>
>>To: Deedra Waters <watersd at onid.oregonstate.edu>
>>Cc: nagios-users at lists.sourceforge.net
>>Subject: Re: [Nagios-users] small problems with upgrading from nagios 1x
>>    to nagios 2x (fwd)
>>
>>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