I did get sendmail to work by using the -f flag in commands.cfg, and
modifying some permissions, but mailx worked perfectly after the install,
so I went with that.
Thanks for the help!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
try linking mail to sendmail.
ls -aFl /usr/bin/mail
lrwxrwxrwx 1 root root 18 Jun 12 2006 /usr/bin/mail -> /usr/sbin/sendmail*
-Robert
Josh Yost wrote:
>> I inserted "sendmail", but still get the err. I am working on the syntax
>> to see if I can resolve the error. What does everyone else have
[EMAIL PROTECTED] wrote:
This is within your MTA - you'll have to read up (in sendmail's
documentation) on how to set your nagios shell user as a trusted user
within sendmailhassles tells sendmail the users that are allowed to
usehasslehasslehassle
it in "program-mode" (i.e. local submi
> This is within your MTA - you'll have to read up (in sendmail's
> documentation) on how to set your nagios shell user as a trusted user
> within sendmailhassles tells sendmail the users that are allowed to
usehasslehasslehassle
> it in "program-mode" (i.e. local submission, not over an SMTP conne
[EMAIL PROTECTED] wrote:
The trick is to (while logged in or "su'd" to the Nagios user) manually
type out a command and keep adjusting until it works - then put that
into Nagios.
e.g. echo "Test e-mail"|/usr/sbin/sendmail -s "Host DOWN" [EMAIL PROTECTED]
OK, now we're getting somewhere...
> I inserted "sendmail", but still get the err. I am working on the syntax
> to see if I can resolve the error. What does everyone else have installed
> that the "mail" command works. I really don't care what MTA is used, just
> so I can get the sample, and new configs to work. I assumed on the ins
> The trick is to (while logged in or "su'd" to the Nagios user) manually
> type out a command and keep adjusting until it works - then put that
> into Nagios.
> e.g. echo "Test e-mail"|/usr/sbin/sendmail -s "Host DOWN" [EMAIL PROTECTED]
OK, now we're getting somewhere. Here is the error I g
[EMAIL PROTECTED] wrote:
If you "su" to the Nagios user, and just run "mail" - does it yield
anything, or "command not found"?
The error seems to be (as someone previously said) it's piping your
notification text to " -s "Host DOWN..."" which isn't a valid command.
You need to change your notifi
> If you "su" to the Nagios user, and just run "mail" - does it yield
> anything, or "command not found"?
>
> The error seems to be (as someone previously said) it's piping your
> notification text to " -s "Host DOWN..."" which isn't a valid command.
> You need to change your notification command t
[EMAIL PROTECTED] wrote:
That looks fine to me. The problem is in your host-notify-by-email
definition in the misccommands.cfg file. If you look below you have;
sterilizing
Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
> 2007\n" | -s "Host DOWN alert for relay-1.domain.c
> That looks fine to me. The problem is in your host-notify-by-email
> definition in the misccommands.cfg file. If you look below you have;
>sterilizing
> Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
> > 2007\n" | -s "Host DOWN alert for relay-1.domain.com!"
> [EMAIL PROT
>Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
> 2007\n" | -s "Host DOWN alert for relay-1.domain.com!" [EMAIL PROTECTED]"
> resulted in a return code of 127. Make sure the script or binary you are
> trying to execute actually exists...
>
There is a quoting error causing y
[EMAIL PROTECTED] wrote:
> define contact{
> contact_namenagiosadmin
> alias Nagios Admin
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
>
[EMAIL PROTECTED] wrote:
> I am running 2.7 on an Ubuntu server, with sendmail. I have read the docs,
> but am having trouble here. According to the examples given I have "define
> contact" set up correctly. I also have an alias "nagiosadmin" in
> /etc/aliases. Here is my config, and the error I am
I am running 2.7 on an Ubuntu server, with sendmail. I have read the docs,
but am having trouble here. According to the examples given I have "define
contact" set up correctly. I also have an alias "nagiosadmin" in
/etc/aliases. Here is my config, and the error I am getting below. The
error is occu
15 matches
Mail list logo