No email alerts ??

Nedim Bicic nedo72 at gmail.com
Thu Oct 4 20:01:37 CEST 2007


OK check this out..funny thing is regarding the path /bin/mail doesnt exist
anywhere from the root i tryed tracing back so
i tryed executing this from the command line and i am able to recieve the
email which now at least i know MTA is defintly working:   "I didnt put any
argumetns as u can see this is just to test"

usr/bin/sendmail -s  nedo72 at gmail.com works from command line but not from
commands.cfg??

Now i editted the commands.cfg file copy and pasted the same exact above
line, but doesnt send anything when i take down the host, I also had to
tweak the linux firewall to allolw 25 in and out of that port.

I did add nagios user and group that was when i configured apache and to
accept external commands

I cant answer that last question i dont even know wat kselinux is not to
mention enabled , in one sentence wat is it and how does this affect emails
for nagios on my issue


thanks

On 10/4/07, Hugo van der Kooij <hvdkooij at vanderkooij.org> wrote:
>
> On Wed, 3 Oct 2007, Nedim Bicic wrote:
>
> > Hey sounds good but what exctly am i exucuting at the commadn line
> >
> > is this the line i am executing: i replaced $CONTACTEMAIL$ with my email
> > address but says cant find directory i tried executing from root:
> > su nagios s /bin/sh but says cant find directory ?? help please
>
> Where did you leave all those dashes?
>
> I said:
>        su - nagios -s /bin/sh
>
> > */bin/mail -s  "Host $HOSTSTATE$ alert for $HOSTNAME$!" $nedo72@
> gmail.com$*
>
> Loose the $ signs. They mark variables.so they are most definitly wrong
> around your email address.
>
> PS: Uberquotes sucks ;-)
>
> --
>        hvdkooij at vanderkooij.org         http://hugo.vanderkooij.org/
>            This message is using 100% recycled electrons.
>
> A: Yes.
> >Q: Are you sure?
> >>A: Because it reverses the logical flow of conversation.
> >>>Q: Why is top posting frowned upon?
>
>        Some men see computers as they are and say "Windows"
>        I use computers with Linux and say "Why Windows?"
>        (Thanks JFK, for this quote of George Bernard Shaw.)
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071004/d6f2b751/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
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