Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Rep:
Nagios Error.
Hello everyone. I am new to this forum. I have installed Nagios on my centOS server, everything seems to be okay but when i go to www.my-server-ip.com/nagios. It asks for user name and password and after that it gives
Not Found
The requested URL /nagios/ was not found on this server.
Please help me out.
Thanks
kind regards
Shahnawaz
Did you create the htpasswd file for the Nagios user? And did you configure Apache for Nagios? What version of CentOS are you running and what version of Nagios did you install.
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Original Poster
Rep:
Thanks for quick replying EricTRA. I am using centOS 5.6 and i installed latest Nagios and Nagios plugins on my server via yum(RPMFORGE). I have created the htpasswd file for nagiosadmin. Now i have confussion that should i install NRPE on server? I have only installed 'yum --enablerepo=rpmforge install nagios nagios-plugins'
How shoul i configure apache? sorry for asking this question Eric i'm new..
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Original Poster
Rep:
Dear vikas.
I have installed nagios and nagios plugins. My boss ordered me to just install nagios on server(not to configure). But when i try my server ip, it gives error. I'm unable to know the error that is there need to install nrpe on my server? or anything else i'm missing.
Thanks for your reply
Check if you have a file apache2.conf or httpd.conf in your nagios configuration directory (/etc/nagios ?). That file holds what needs to be configured on Apache in order to access Nagios.
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Original Poster
Rep:
Dear Eric
There is no any httpd.conf file in /etc/nagios.
I have another server working properly nagios and there is also no any http.conf file in /etc/nagios.
All other files/configuration are same in both the servers but one (which i installed) not working on nagios. I don't know what is missing..
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 172.16.0.1 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:80 state NEW
ACCEPT udp -- 0.0.0.0/0 my.ip.address udp dpt:1194 state NEW
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:26883 state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 state NEW
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53 state NEW
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:22 state NEW
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:25 state NEW
ACCEPT tcp -- 172.16.0.5 0.0.0.0/0 tcp state NEW
ACCEPT udp -- 172.16.0.5 0.0.0.0/0 udp state NEW
ACCEPT icmp -- 172.16.0.5 0.0.0.0/0 state NEW
ACCEPT tcp -- 172.16.0.21 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.21 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.21 0.0.0.0/0 state NEW icmp type 255
ACCEPT tcp -- 172.16.0.9 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.9 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.9 0.0.0.0/0 state NEW icmp type 255
ACCEPT tcp -- 172.16.0.13 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.13 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.13 0.0.0.0/0 state NEW icmp type 255
ACCEPT tcp -- 172.16.0.17 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.17 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.17 0.0.0.0/0 state NEW icmp type 255
DROP all -- 0.0.0.0/0 0.0.0.0/0
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 172.16.0.1 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:80 state NEW
ACCEPT udp -- 0.0.0.0/0 my.ip.address udp dpt:1194 state NEW
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:26883 state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 state NEW
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53 state NEW
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:22 state NEW
ACCEPT tcp -- 0.0.0.0/0 my.ip.address tcp dpt:25 state NEW
ACCEPT tcp -- 172.16.0.5 0.0.0.0/0 tcp state NEW
ACCEPT udp -- 172.16.0.5 0.0.0.0/0 udp state NEW
ACCEPT icmp -- 172.16.0.5 0.0.0.0/0 state NEW
ACCEPT tcp -- 172.16.0.21 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.21 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.21 0.0.0.0/0 state NEW icmp type 255
ACCEPT tcp -- 172.16.0.9 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.9 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.9 0.0.0.0/0 state NEW icmp type 255
ACCEPT tcp -- 172.16.0.13 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.13 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.13 0.0.0.0/0 state NEW icmp type 255
ACCEPT tcp -- 172.16.0.17 0.0.0.0/0 state NEW tcp
ACCEPT udp -- 172.16.0.17 0.0.0.0/0 state NEW udp
ACCEPT icmp -- 172.16.0.17 0.0.0.0/0 state NEW icmp type 255
DROP all -- 0.0.0.0/0 0.0.0.0/0
Check if you have a file for it in /etc/httpd/conf.d/ or if not, if you have the directory statement present in /etc/httpd/conf/httpd.conf for your Nagios installation. Have a look at this site for specifications on what to set up.
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Original Poster
Rep:
Dear Eric
I have nagios.conf in /etc/httpd/conf.d/ and i don't understand /etc/httpd/conf/httpd.conf file, because there are many other things running on our server like RT and some other applications. should i need to do something in /etc/httpd/conf/httpd.conf file?
Thanks for continuing replying Eric.
Kind Regards
Shahnawaz
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.