Email Notification and Web interface access
Arno Lehmann
al at its-lehmann.de
Mon Jun 13 12:29:47 CEST 2005
Hello,
please reply to the list, not only to me.
By the way, if you really followed some article concerning the setup of
nagios you might want to inform the original author that his directions
didn't work.
Kindy Sylla wrote:
> Thanks Arno for the respoonse.
> Regarding configuration, I didn't write the whole
> sentence. This is what i have:
> 1118650430] Warning: Attempting to execute the command
> "/usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: PROBLEM\n\nService:
> HTTP\nHost: Backup Monedia\nAddress:
> 100.0.17.5\nState: CRITICAL\n\nDate/Time: Mon Jun 13
> 08:13:50 GMT 2005\n\nAdditional Info:\n\nConnection
> refused" | -s "** PROBLEM alert - Backup Monedia/HTTP
You notice that here the command to send an email is missing?
Between "|" and -s should be something like mail.
> 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...
> My problem maybe related to the mail program. Do you
> know how to setup sendail or qmail to send email with
> nagios. I didn't find any thing related.
Easiest way is to follow the guidelines from your distribution or
software vendor. Setting up a mail server will require some learning,
though.
There's nothing special concerning nagios and mail sending.
> Ragarding the web interface, the apache is running but
> i a not able to access to nagios page.
> I have the following eror when trying to access to
> /localhost/nagios
>
> Not Found
> The requested URL /nagios/ was not found on this
> server
This means that the web server is not configured correctly. You should
have an Alias, a ScriptAlias directive, and then restarted the web server.
Arno
> --- Arno Lehmann <al at its-lehmann.de> a écrit :
>
>
>>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 1118650430]
>
> Warning: Attempting to execute the command
> "/usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: PROBLEM\n\nService:
> HTTP\nHost: Backup Monedia\nAddress:
> 100.0.17.5\nState: CRITICAL\n\nDate/Time: Mon Jun 13
> 08:13:50 GMT 2005\n\nAdditional Info:\n\nConnection
> refused" | -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...
> 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
>>
>
>
>
>
>
>
>
>
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
--
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