Email Notification and Web interface access
Arno Lehmann
al at its-lehmann.de
Mon Jun 13 11:50:50 CEST 2005
Hello,
Kindy Sylla wrote:
> Hello,
> I just installed and configured nagios, unfortunatly i
> didn't manage to get it work.
> For installation and configuration i followed line by
> line the article writen by Oktay Aaltunergil published
> on ONlanmp.com.
> The server is running now, but i am not able to
> receive e-mails notification. I am new to linux, what
> should I do to get email sent out?
> This is the line i got from the server while trying to
> send ails:
>
> | -s "** PROBLEM alert - Backup Monedia/HTTP is
> CRITICAL **" ksylla at boabenin.com" resulted in a return
> code of 127. Make sure the script or binary you are
> trying to execute actually exists...
This is a configuration problem. before the "|" character there should
be the program name to send mail. This is an example from my
configuration (all in one line!)
command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
This is roughly what making nagios itself set up, as far as I remember.
You can find an explanation of the macros in the documentation, of course.
> I also tried to access the web interface in vain. I
> created the web alias as mentioned in the article, the
> web interface does not come up.
Any errors? Either in the web browser, or in the server's log?
> Just to let you know, I installed the nagios
> nagios-1.2.tar.gz with the plugins
> nagios-plugins-1.4.tar.gz. Nothing else.
>
> Do you have any idea why it is not working? what to do
> to get email notification? to access to web interface?
> Do i need to install something else?
You should make sure you understand how to send mail from the shell.
Usually, `man mail` should tell you some things, but depending on which
mail transfer and mail submission programs you have things may be different.
Arno
>
> Thanks in advance for the help.
>
> Kindy_s
>
>
>
>
>
>
>
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: 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
--
IT-Service Lehmann al at its-lehmann.de
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: 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