LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-25-2011, 04:48 AM   #1
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Rep: Reputation: Disabled
Smile 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
 
Old 05-25-2011, 04:55 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LinuxQuestions,

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.

Kind regards,

Eric
 
Old 05-25-2011, 05:26 AM   #3
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
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..
 
Old 05-25-2011, 06:33 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Hi Shahnawaz,
I am no expert but I configured it successfully using these links.

http://www.thegeekstuff.com/2008/05/...configuration/
http://www.thegeekstuff.com/2008/06/...ing-nagios-30/
http://www.linuxquestions.org/questi...r-page-830355/
 
Old 05-25-2011, 06:42 AM   #5
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-25-2011, 06:47 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 05-25-2011, 06:56 AM   #7
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
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..

regards
Shahnawaz Uqaili
 
Old 05-25-2011, 07:02 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Do you have Apache (httpd) set up with VirtualHosts? You might need to add a directory statement for your Nagios directory.

Kind regards,

Eric
 
Old 05-25-2011, 07:02 AM   #9
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
Sounds like you've forgotten the URL alias for Nagios in your Apache conf.
 
Old 05-25-2011, 07:11 AM   #10
redhawk1973
Member
 
Registered: Jul 2003
Location: Woodbridge VA
Distribution: Red Hat, Suse, AIX, Fedora, Cent OS, Ubuntu, Mint Linux
Posts: 58

Rep: Reputation: 18
Nagios

please run the following commands and post resluts

rpm -qa httpd php gcc glibc glibc-common gd gd-devel

iptables -nL

chkconfig --list httpd

sestatus
 
Old 05-25-2011, 07:26 AM   #11
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
[root@support ~]# rpm -qa httpd php gcc glibc glibc-common gd gd-devel
glibc-common-2.5-58.el5_6.3
glibc-2.5-58.el5_6.3
httpd-2.2.3-45.el5.centos.1
gd-2.0.33-9.4.el5_4.2
gcc-4.1.2-50.el5
gd-devel-2.0.33-9.4.el5_4.2
php-5.1.6-27.el5_5.3

---------- Post added 05-25-11 at 05:27 PM ----------

[root@support ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_IN:'
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
target prot opt source destination
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_OUT:'
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_IN:'
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_OUT:'

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
 
Old 05-25-2011, 07:29 AM   #12
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
[root@support ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_IN:'
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
target prot opt source destination
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_OUT:'
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_IN:'
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 7 prefix `BANDWIDTH_OUT:'

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
 
Old 05-25-2011, 07:46 AM   #13
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
Eric how do i check that my http.d is configured for nagios?
regards
Shahnawaz
 
Old 05-25-2011, 07:55 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 05-25-2011, 08:02 AM   #15
Shahnawaz Uqaili
Member
 
Registered: May 2011
Location: Karachi, Sindh Pakistan
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Error!!! anishkumarv Linux - Server 3 04-19-2011 04:45 AM
nagios error Rahul Kolan Linux - Software 1 11-13-2009 03:08 AM
Error when access Nagios! son_th02 Linux - Newbie 12 03-04-2009 04:21 AM
Nagios Login Error sbhupati Linux - Software 8 06-01-2006 06:21 PM
nagios error messages kenji1903 Linux - Networking 9 08-21-2004 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration