Return-path
Brian T. O'Neill
btoneill at misplaced.net
Fri May 6 19:19:13 CEST 2005
What system are you on? Does your system have mailx? On mailx it's -r to
change the name.
Brian
Quoting Mario Sergio Candian (mscandian at FreeBSDBrasil.Com.Br) from :
>
> Hi Brian,
>
> I tested with the -r option. But, I was finding in the man page of mail,
> and I dont found nothing about -r option. Look:
>
> root at cyberdine~% mail -r
> mail: illegal option -- r
> Usage: mail [-EiInv] [-s subject] [-c cc-addr] [-b bcc-addr] [-F] to-addr
> ...
> [- sendmail-options ...]
> mail [-EHiInNv] [-F] -f [name]
> mail [-EHiInNv] [-F] [-u user]
> mail -e [-f name]
> mail -H
>
> Is the -r option correct?
>
> | /usr/bin/mail -r address at somedomain.com -s "** $NOTIFICATIONTYPE$
> alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
>
> Mario Sergio Candian
> -
> "Live your dreams and face your fears"
>
> On Thu, 5 May 2005, Brian T. O'Neill wrote:
>
> >Use -r not -f.
> >
> >Brian
> >
> >Quoting Mario Sergio Candian (mscandian at FreeBSDBrasil.Com.Br) from :
> >>
> >>Hi list,
> >>
> >>I change my misccommands.cfg, and I put the -f option with an
> >>address at somedomain.com. But, I continued receive notification by email
> >>with
> >>other address at somedomain. Eg:
> >>
> >>Date: Thu, 5 May 2005 09:32:01 -0300 (BRT)
> >>From: Nagios pseudo-user <nagios at cliente.com>
> >>To: suport at mydomain.com
> >>Subject: Host DOWN alert for ns4.domain.com.br!
> >>
> >>***** Nagios *****
> >>
> >>Notification Type: PROBLEM
> >>Host: ns4.domain.com.br
> >>State: DOWN
> >>Address: ns4.domain.com.br
> >>Info: CRITICAL - Plugin timed out after 11 seconds
> >>
> >>In this email, I wanna to change the mail From "Nagios pseudo-user
> >><nagios at cliente.com>". Now, I wanna to define it for ns5 at mydomain.com.
> >>I put the -f option and doesnt resolve. Whant I need to do?
> >>
> >>My miscommands.cfg:
> >>
> >>| /usr/bin/mail -f address at somedomain.com -s "** $NOTIFICATIONTYPE$
> >>alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
> >>
> >>What I need to do to change this?
> >>
> >>Mario Sergio Candian
> >>-
> >>"Dreams as if you'll live forever. Live as if you'll die today" -- James
> >>Dean
> >>
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by: NEC IT Guy Games.
> >>Get your fingers limbered up and give it your best shot. 4 great events, 4
> >>opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> >>win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> >>_______________________________________________
> >>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
> >
> >--
> >btoneill at misplaced.net
> >
> >****************************************************************************
> >UNIX is simple and coherent, but it takes a genius (or at any rate a
> >programmer) to understand and appreciate the simplicity." - Dennis Ritchie
> >****************************************************************************
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: NEC IT Guy Games.
> >Get your fingers limbered up and give it your best shot. 4 great events, 4
> >opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> >win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> >_______________________________________________
> >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
> >
> >
--
btoneill at misplaced.net
****************************************************************************
UNIX is simple and coherent, but it takes a genius (or at any rate a
programmer) to understand and appreciate the simplicity." - Dennis Ritchie
****************************************************************************
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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