From: Patrick H. <pha...@fz...> - 2003-07-31 14:04:11
|
If you cannot get to http://machinename/, you have bigger problems than just nagios. There is a misconfiguration somewhere in your httpd.conf file, or something happened during the installation of apache and file were not properly copied. Take a look at your httpd.conf file and check the settings to make sure they are correct for your installation. If you want to send me your httpd.conf file (off-list), I will take a look at it to see if I can find any issues with it. Pat. >>> <rah...@sg...> 07/31/03 7:49:46 AM >>> hi i have checked httpd.conf file the entries are as below and i gave "chgrp apache htpasswd.users" perm are below and httpd.conf User/Group: The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group #-1 on these systems! # User apache Group apache -rw-r--r-- 1 root apache 26 Jul 30 19:02 htpasswd.users http://mymachine/ i get this error and Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster Error 404 http://mymachine/nagios i get this error Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster Error 403 got stuck with nagios for 2 days not unable to view anything . Regards R.Shailendra Singh TEL:(080) 8095142 |---------+----------------------------> | | "Patrick | | | Hasenjager" | | | <phasenjager@fzac| | | pa.com> | | | | | | 07/30/03 07:55 PM| | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: Rahatpuri SINGH/ia/socgen@socgen | | cc: | | Subject: RE: [Nagios-users] help | >--------------------------------------------------------------------------------------------------------------| you need to run "chgrp apache htpasswd.users" I would suggest changing the owner back to root "chown root htpasswd.users" All this is contingent on your apache install running as user/group apache. Take a look at your httpd.conf file and find what user/group apache is running with. >>> <rah...@sg...> 07/30/03 8:57:46 AM >>> Thanks , but how do i do it . i am following the installation PDF's and nothing is mentioned . pls let me know how do i it . i used the below mentioned command ie"chown apache htpasswd.users" and if i do ls -l these are the permissions -rw------- 1 apache root 26 Jul 30 19:02 htpasswd.users and i am opening the web page as http://mymachine/nagios i get the following error Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster Error 404 Regards R.Shailendra Singh TEL:(080) 8095142 |---------+----------------------------> | | "Patrick | | | Hasenjager" | | | <phasenjager@fzac| | | pa.com> | | | | | | 07/30/03 07:02 PM| | | | |---------+----------------------------> > --------------------------------------------------------------------------------------------------------------| | | | To: Rahatpuri SINGH/ia/socgen@socgen | | cc: <nag...@li...> | | Subject: RE: [Nagios-users] help | > --------------------------------------------------------------------------------------------------------------| I had the same problem. You need to set the group owner on your password file to the group for apache. (In my case, I did a "chown apache htpasswd.users"). Restart nagios and apache and your set. Pat. >>> <rah...@sg...> 07/30/03 7:44:36 AM >>> hi , thankyou for you response , i have checked all the cfg files and it looks that all the entries are correct. but still i am not able to view nagios graphics ie ( http://hostname/nagios) the page opens and if i click any links in the Monitoring panel , it asks for authentication ie i think you have to give user as nagiosadmin and password XXXXXX . but i get the following error Authentication required! > > This server could not verify that you are authorized to access > the > > URL "/nagios/sbin/status.cgi". You either supplied the wrong > > credentials (e.g., bad password), or your browser doesn't > understand > > how to supply the credentials required. > > In case you are allowed to request the document, please check > your > > user-id and password and try again. > > If you think this is a server error, please contact the > webmaster > > Error 401 Regards R.Shailendra Singh TEL:(080) 8095142 |---------+----------------------------> | | "Ian Davidson" | | | <idavidso@juniper| | | .net> | | | | | | 07/30/03 05:58 PM| | | | |---------+----------------------------> > --------------------------------------------------------------------------------------------------------------| | | | To: Rahatpuri SINGH/ia/socgen@socgen | | cc: | | Subject: RE: [Nagios-users] help | > --------------------------------------------------------------------------------------------------------------| This isn't a real-user on your system, just a username/passwd combination to access the cgi scripts on the Nagios web-pages. > -----Original Message----- > From: nag...@li... > [mailto:nag...@li...] On Behalf > Of rah...@sg... > Sent: 30 July 2003 07:53 > To: Marc Powell > Cc: nag...@li... > Subject: RE: [Nagios-users] help > > > > > > In httpd logs ie access.log file the following are the entries, > the installaton doc says to create a nagiosadmin user and > password using the following command > > htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin > , do i have > to create this user being on the root or su to nagios user > > > > > - - [30/Jul/2003:12:09:50 +051800] "GET > /nagios/sbin/status.cgi?hostgroup=all&style=grid HTTP/1.1" 404 117 > > IPADDRESS - - [30/Jul/2003:12:15:24 +051800] "GET > /nagios/sbin/status.cgi?host=all HTTP/1.1" 404 1196 > "http://hostn. ame/side.html" "Mozilla/4.0 (compatible; MSIE > 5.5; Windows NT 4.0)" > - nagiosadmin [30/Jul/2003:12:17:01 +051800] "GET /nagios > HTTP/1.1" 301 308 "-" "Mozilla/4.0 (compatible; MSIE 5.5; > Windows NT 4.0)" > - - [30/Jul/2003:12:17:01 +051800] "GET /nagios/ HTTP/1.1" > 403 1055 "-" "Mozilla/4.0 (compatible; MSIE 5.5 ; Windows NT 4.0) > > Regards > R.Shailendra Singh > TEL:(080) 8095142 > > > > > |---------+----------------------------> > | | "Marc Powell" | > | | <mp...@en...>| > | | | > | | 07/29/03 07:40 PM| > | | | > |---------+----------------------------> > > >------------------------------------------------------------- > -------------------------------------------------| > | > | > | To: Rahatpuri SINGH/ia/socgen@socgen > | > | cc: > | > | Subject: RE: [Nagios-users] help > | > > >------------------------------------------------------------- > -------------------------------------------------| > > > > > The error you are receiving is a response from your web > server indicating that the username and password you are > supplying are incorrect. If you are absolutely certain that > the username and password you are using match what is in > /usr/local/nagios/etc/htpasswd.user then your web server may > not be able to read the htpasswd.users file or it may be > corrupt. Was that file generated with the htpasswd command? > Your httpd error log might have some useful information. It > could also be that your web server is not set up properly to > process htaccess although I suspect that if you are being > prompted for a username and password that it is. I would > review any documentation for your web server that applies to > configuring htaccess with it. > > -- > Marc > > > -----Original Message----- > > From: rah...@sg... [mailto:rah...@sg...] > > Sent: Tuesday, July 29, 2003 7:46 AM > > To: Marc Powell > > > > > > hi > > > > > > the following entries are there in the > /usr/local/nagios/sbin/.htaccess > > and /usr/local/nagios/etc/.htaccess > > > > AuthName "Nagios Access" > > AuthType Basic > > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > require valid-user > > > > > > Regards > > R.Shailendra Singh > > TEL:(080) 8095142 > > > > > > > > > > |---------+----------------------------> > > | | "Marc Powell" | > > | | <mp...@en...>| > > | | | > > | | 07/29/03 05:46 PM| > > | | | > > |---------+----------------------------> > > > >------------------------------------------------------------- > ---------- > > ---------------------------------------| > > | > > | > > | To: Rahatpuri SINGH/ia/socgen@socgen, <nagios- > > us...@li...> | > > | cc: > > | > > | Subject: Re: [Nagios-users] help > > | > > > >------------------------------------------------------------- > ---------- > > ---------------------------------------| > > > > > > > > > > The .htaccess file in that directory and the htpasswd file it > references. > > Its not a nagios error. > > > > > > -- > > Marc > > > > Sent from a very tiny wireless device with a very tiny > unlit keyboard. > > > > > > -----Original Message----- > > From: rah...@sg... <rah...@sg...> > > To: nag...@li... <nagios- > > us...@li...> > > Sent: Tue Jul 29 07:10:25 2003 > > Subject: [Nagios-users] help > > > > > > > > hi , > > > > when ever i am trying to login and try using > monitoring utility > i > > get this error message , i am giving the right username and > password > > . i want to know in which config file > > i have to editr > > > > > > > > > > > > Authentication required! > > This server could not verify that you are authorized to access > the > > URL "/nagios/sbin/status.cgi". You either supplied the wrong > > credentials (e.g., bad password), or your browser doesn't > understand > > how to supply the credentials required. > > In case you are allowed to request the document, please check > your > > user-id and password and try again. > > If you think this is a server error, please contact the > webmaster > > Error 401 > > > > > > > > Regards > > R.Shailendra Singh > > TEL:(080) 8095142 > > > > > > > > > > > > > > ***************************************************************** > > The addressee's email address has changed to firstname.lastname@ > > sgcib.com. You may want to update your personal address > book. Please > > see http://www.sgcib.com for more information. > > > > This message and any attachments (the "message") are > confidential and > > intended solely for the addressee(s). Any unauthorised use or > > dissemination is prohibited.E-mails are susceptible to alteration. > > Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates > > shall be liable for the message if altered, changed or falsified. > > ***************************************************************** > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click- > > url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > Nagios-users mailing list > > Nag...@li... > > 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 > > > > > > > > > > > > > > ***************************************************************** > > The addressee's email address has changed to firstname.lastname@ > > sgcib.com. You may want to update your personal address > book. Please > > see http://www.sgcib.com for more information. > > > > This message and any attachments (the "message") are > confidential and > > intended solely for the addressee(s). Any unauthorised use or > > dissemination is prohibited.E-mails are susceptible to alteration. > > Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates > > shall be liable for the message if altered, changed or falsified. > > ***************************************************************** > > > > > > > > > ***************************************************************** > The addressee's email address has changed to > firstname.lastname@ sgcib.com. You may want to update your > personal address book. Please see http://www.sgcib.com for > more information. > > This message and any attachments (the "message") are > confidential and intended solely for the addressee(s). Any > unauthorised use or dissemination is prohibited.E-mails are > susceptible to alteration. Neither SOCIETE GENERALE nor any > of its subsidiaries or affiliates shall be liable for the > message if altered, changed or falsified. > ***************************************************************** > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites > including Data Reports, E-commerce, Portals, and Forums are > available now. Download today and enter to win an XBOX or > Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 _______________________________________________ Nagios-users mailing list Nag...@li... 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 ***************************************************************** The addressee's email address has changed to firstname.lastname@ sgcib.com. You may want to update your personal address book. Please see http://www.sgcib.com for more information. This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ***************************************************************** ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Nagios-users mailing list Nag...@li... 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 ************************************************************************** This e-mail and any attachments are intended only for the addressee. If you are not the addressee you should not disseminate, distribute or copy this e-mail or attachments. Please immediately notify the sender if you have received this e-mail by mistake and delete it from your system. E-mail transmission cannot be guaranteed secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender does not accept liability for errors or omissions in the contents of this message which arise or occur during transmission. We will provide a "hard-copy" version of the message and attachments upon request. Although reasonable precautions are taken to assure this e-mail is virus free, we do not accept responsibility for the loss or damage arising from the use of this e-mail or attachments. ***************************************************************** The addressee's email address has changed to firstname.lastname@ sgcib.com. You may want to update your personal address book. Please see http://www.sgcib.com for more information. This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ***************************************************************** ************************************************************************** This e-mail and any attachments are intended only for the addressee. If you are not the addressee you should not disseminate, distribute or copy this e-mail or attachments. Please immediately notify the sender if you have received this e-mail by mistake and delete it from your system. E-mail transmission cannot be guaranteed secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender does not accept liability for errors or omissions in the contents of this message which arise or occur during transmission. We will provide a "hard-copy" version of the message and attachments upon request. Although reasonable precautions are taken to assure this e-mail is virus free, we do not accept responsibility for the loss or damage arising from the use of this e-mail or attachments. ***************************************************************** The addressee's email address has changed to firstname.lastname@ sgcib.com. You may want to update your personal address book. Please see http://www.sgcib.com for more information. This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ***************************************************************** ************************************************************************** This e-mail and any attachments are intended only for the addressee. If you are not the addressee you should not disseminate, distribute or copy this e-mail or attachments. Please immediately notify the sender if you have received this e-mail by mistake and delete it from your system. E-mail transmission cannot be guaranteed secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender does not accept liability for errors or omissions in the contents of this message which arise or occur during transmission. We will provide a "hard-copy" version of the message and attachments upon request. Although reasonable precautions are taken to assure this e-mail is virus free, we do not accept responsibility for the loss or damage arising from the use of this e-mail or attachments. |