Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

sendemail ERROR => You must specify a 'from' field! Try --help.

#1
been banging my head for days on this one.
using gmail to send email, successfully ran the nems-mailtest without issue, email is sent and properly received at the destination.

however i'm getting zero emails from nagios. the closest clue i get is:
Dec 19 22:57:32 nems sendemail[14155]: ERROR => You must specify a 'from' field! Try --help.

this happens when i FORCE a custom notification. it also shows in the logs repeatedly as if every time it tries to send a standard notification it fails with the same error.

current /etc/nagios3/commands.cfg:

define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b%b%b%b%b%b%b" \
"***** Nagios *****\n\n" \
"Notification Type: $NOTIFICATIONTYPE$\n" \
"Host: $HOSTNAME$\n" \
"State: $HOSTSTATE$\n" \
"Address: $HOSTADDRESS$\n" \
"Info: $HOSTOUTPUT$\n\n" \
"Date/Time: $LONGDATETIME$\n" \
| /usr/bin/sendemail -v -f actualemail@mydomain.com -s $USER7$ -xu $USER9$ -xp $USER10$ \
-l /var/log/sendemail \
-t $CONTACTEMAIL$ \
-u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"
}


define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b%b%b%b%b%b%b%b%b" \
"***** Nagios *****\n\n" \
"Notification Type: $NOTIFICATIONTYPE$\n\n" \
"Service: $SERVICEDESC$\n" \
"Host: $HOSTALIAS$\n" \
"Address: $HOSTADDRESS$\n" \
"State: $SERVICESTATE$\n\n" \
"Date/Time: $LONGDATETIME$\n\n" \
"Additional Info:\n\n" \
"$SERVICEOUTPUT$" \
| /usr/bin/sendemail -v -f actualemail@mydomain.com -s $USER7$ -xu $USER9$ -xp $USER10$ \
-l /var/log/sendemail \
-t $CONTACTEMAIL$ \
-u "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
}

Note that in the above, I have also tried $USER5$ as the -f configured parameter. No good. I added -v in my attempts to get more verbose output, but this also seems to have made no change.

At a loss at this point.
 
Messages In This Thread
sendemail ERROR => You must specify a 'from' field! Try --help. - by gunkl - 12-20-2017, 03:30 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 12-20-2017, 09:30 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 12-20-2017, 09:37 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by gunkl - 12-22-2017, 11:33 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 12-22-2017, 11:35 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by gunkl - 12-22-2017, 12:23 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 12-22-2017, 12:47 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by vlamke - 01-14-2018, 04:37 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Alerty - 01-15-2018, 12:49 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-17-2018, 10:21 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-20-2018, 06:47 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-21-2018, 05:22 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Alerty - 01-21-2018, 02:03 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-21-2018, 07:55 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Alerty - 01-22-2018, 12:18 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-22-2018, 09:57 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-22-2018, 09:59 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-22-2018, 12:09 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-22-2018, 02:22 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-22-2018, 02:59 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-22-2018, 05:56 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-22-2018, 06:01 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-22-2018, 07:05 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-23-2018, 01:32 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-23-2018, 02:06 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-23-2018, 02:54 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-23-2018, 10:26 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Alerty - 01-23-2018, 10:38 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-23-2018, 10:42 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Alerty - 01-23-2018, 11:36 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-24-2018, 04:51 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-24-2018, 09:12 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by norbertooka - 01-28-2018, 09:46 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 11:10 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 11:16 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 12:55 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-28-2018, 02:05 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 04:27 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 04:40 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 04:51 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by eejit - 01-28-2018, 05:20 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-28-2018, 05:46 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 05:58 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by baggins - 01-28-2018, 06:01 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 07:52 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-28-2018, 10:07 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by BrendonKoz - 01-31-2018, 01:48 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-31-2018, 02:35 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by BrendonKoz - 01-31-2018, 03:57 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 01-31-2018, 05:11 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 06-21-2018, 02:35 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-05-2018, 07:06 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-05-2018, 08:04 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-05-2018, 10:13 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-05-2018, 10:48 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-05-2018, 11:00 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-05-2018, 11:01 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-05-2018, 11:22 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-05-2018, 12:48 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-05-2018, 01:18 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-06-2018, 09:53 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-11-2018, 03:24 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-11-2018, 12:44 PM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by xtreme010 - 09-12-2018, 04:13 AM
RE: sendemail ERROR => You must specify a 'from' field! Try --help. - by Robbie Ferguson - 09-12-2018, 12:50 PM
 
Forum Jump:

Users browsing this thread: 3 Guest(s)