Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had tried to login to the nagios apache web, but it comes out the below error.
Can i know what should i do now? Is the configuration error?
My nagios page.......
Code:
http://localhost/nagios/cgi-bin
Authentication required!
This server could not verify that you are authorized to access the URL "/nagios/cgi-bin". 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
localhost
Wed 24 Nov 2004 07:20:53 AM MYT
Apache/2.0.40 (Red Hat Linux)
How id you configure the authentication using http basic auth and password files? Can you post your configuration for this. Did it work ok before you added the authentication?
To add on to what David_Ross said, did you follow the directions in the Nagios documentation for how to set the ScriptAlias configure directive in your httpd.conf and then set the permissions for the /usr/local/nagios/sbin directory? I've been working on a nagios setup at work recently, and you need to be very sure that the directory attributes are set properly in Apache. There's a section in the Nagios documentation that tells you exactly how to do this.
These are the permission of the directory sbin, i think is ok...
Code:
[root@Linux-Nagios sbin]# ls -l
total 1624
-rwxrwxr-x 1 nagios nagios 143824 Nov 23 02:54 avail.cgi
-rwxrwxr-x 1 nagios nagios 144924 Nov 23 02:54 cmd.cgi
-rwxrwxr-x 1 nagios nagios 113872 Nov 23 02:54 config.cgi
-rwxrwxr-x 1 nagios nagios 160292 Nov 23 02:54 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 105764 Nov 23 02:54 history.cgi
-rwxrwxr-x 1 nagios nagios 101604 Nov 23 02:54 notifications.cgi
-rwxrwxr-x 1 nagios nagios 98072 Nov 23 02:54 outages.cgi
-rwxrwxr-x 1 nagios nagios 100292 Nov 23 02:54 showlog.cgi
-rwxrwxr-x 1 nagios nagios 145148 Nov 23 02:54 status.cgi
-rwxrwxr-x 1 nagios nagios 114864 Nov 23 02:54 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 108792 Nov 23 02:54 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 119184 Nov 23 02:54 summary.cgi
-rwxrwxr-x 1 nagios nagios 123100 Nov 23 02:54 tac.cgi
These are the http.conf file configuration, i add on this two at the end of the http.conf file.....
Code:
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Code:
Alias /nagios/ /usr/local/nagios/share/
Alias /nagios "/usr/local/nagios/share/"
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
I had a file htpasswd.users in /usr/local/nagios/etc
I had one file .htaccess in /usr/local/nagios/sbin and also in /usr/local/nagios/share
I had follow what is in the documentation. What else i am left behind or anythings go wrong?
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
linux-nagios
Sun 28 Nov 2004 11:57:55 PM MYT
Apache/2.0.40 (Red Hat Linux)
-----------------------------------------------------------------------
In http://localhost/nagios/ , i had a problem of below function when i tried to access
- Status Map (Monitoring)
- Trends (Reporting)
- Alert Histogram (Reeporting)
-----------------------------------------------------------------------
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
linux-nagios
Mon 29 Nov 2004 12:06:20 AM MYT
Apache/2.0.40 (Red Hat Linux)
I'm not sure if having multiple Alias's matter or not, but I'd make my config as simple as possible. Remove restricted access, make apache exactly like the Nagios documentation.
I had some issues getting Nagios up, but it was more than worth it. It's been rock solid for over a year.
I have been using nagios 1.1 on an Apache1.3 server for more than a year now with extreme satisfaction.
I recently updated to Apache 2.0.40 (standard issue on the flavor of Redhat I have installed) and I cannot get the authentication to work...
Nagios' CGIs run just fine, but the authentication does not. If I activate it (either with .htaccess or a <Directory> tag inside httpd.conf) and I try browsing to Nagios, the requester popup does _not_ show, but I get an "Authorization required" message from Apache as though I had tried to log in and failed. I mean, Apache doesn't even give me a try!
I am very sure I replicated my working configuration but it just doesn't work as expected.
Are you sure there is a nagios process?
or else start it
ie:
./nagios -d ../etc/nagios.cfg
and read the documentation as for authentication
ifor example, if you want to do host checks, you need to make sure you are in one of the contact and contactgroup...
I setup the web server (httpd) in both Fedora Core 2 and Red Hat 9. I found out it doesnt work in
Fedora Core 2, even with the same nagios config for httpd.conf.
I am still not sure with this yet. Any of you guys experience with the same problem as well?
I had tried in Red Hat 9 and it works only (Ping) host currently. Any of you have a good reference for the confiiguration? Other than (Check Host Alive, Ping), what are the good features in Nagios to be use?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.