My nagios won't work any more, STRANGE

EXT-Fuentes, James P James.P.Fuentes at boeing.com
Thu Jun 9 21:54:43 CEST 2005


I had to "chcon -R system_u:object_r:httpd_sys_script_exec_t /usr/local/nagios/sbin(or nagios CGI bin)" to get by a what sounds like a similar situation on Fedora. Do a search on that if it looks like the same deal.
-Jim

________________________________

From: funraps too [mailto:funraps at yahoo.com]
Sent: Thu 6/9/2005 11:05 AM
To: EXT-Fuentes, James P; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Re: My nagios won't work any more, STRANGE


Thanks,
I figured it out, although the nagios -v check didn't see any problems, some of the log files indicated issues.
Now I have nagios working but the web CGI isn't working.
I even redid the httpd.conf and .htapasswd just like the docs, still not working!
I changed permissions to the file below to nagios, nagioscmd, apache but still getting:
(13)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users
Web interface shows:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
==> error_log <==
[Thu Jun :2:7 25] [notice] caught SIGTERM, shutting down
[Thu Jun :2: 25] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jun :2: 25] [notice] Digest: generating secret for digest authentication 
[Thu Jun :2: 25] [notice] Digest: done
[Thu Jun :2: 25] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jun :2: 25] [notice] LDAP: SSL support unavailable
[Thu Jun :2: 25] [notice] mod_python: Creating session mutexes based on 256 max processes and max threads
[Thu Jun :2: 25] [notice] Apache/252 (CentOS) configured -- resuming normal operations
[Thu Jun :2:23 25] [error] [client ] (3)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswdusers, referer: http://2/nagios/sidehtml
[Thu Jun :2:23 25] [error] [client ] user not found: /nagios/cgi-bin/statuscgi, referer: http://2/nagios/sidehtml
[Thu Jun :7:6 25] [error] [client ] (3)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswdusers, referer: http://2/nagios/sidehtml
[Thu Jun :7:6 25] [error] [client ] user not found: /nagios/cgi-bin/statuscgi, referer: http://2/nagios/sidehtml
[Thu Jun :7: 25] [error] [client ] (3)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswdusers, referer: http://2/nagios/sidehtml
[Thu Jun :7: 25] [error] [client ] user nagios not found: /nagios/cgi-bin/statuscgi, referer: http://2/nagios/sidehtml
[Thu Jun :: 25] [error] [client ] (3)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswdusers, referer: http://2/nagios/sidehtml
[Thu Jun :: 25] [error] [client ] user nagios not found: /nagios/cgi-bin/configcgi, referer: http://2/nagios/sidehtml
[Thu Jun ::3 25] [error] [client ] (3)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswdusers, referer: http://2/nagios/sidehtml
[Thu Jun ::3 25] [error] [client ] user nagios not found: /nagios/cgi-bin/configcgi, referer: http://2/nagios/sidehtml
==> error_log <==
Thu Jun :5:2 25] [error] [client ] (3)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswdusers, referer: https://monitor/top_Framehtm
[Thu Jun :5:2 25] [error] [client ] user dcn not found: /nagios/cgi-bin/statuscgi, referer: https://monitor/top_Framehtm
ls -al /usr/local/nagios/etc/htpasswd.users
-rw-r--r--  1 nagios nagios 21 Jun  9 10:07 /usr/local/nagios/etc/htpasswd.users


"EXT-Fuentes, James P" <James.P.Fuentes at boeing.com> wrote:

	This says that there either is no PID or the wrong PID
	
	"kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill...."
	
	Do a "ps" to see what's running.
	
	-Jim
	
	________________________________
	
	From: funraps too [mailto:funraps at yahoo.com]
	Sent: Thu 6/9/2005 6:44 AM
	To: funraps too; nagios-users at lists.sourceforge.net
	Subject: [Nagios-users] Re: My nagios won't work any more, STRANGE
	
	
	Good Morning,
	
	Can anyone assist me with this?
	Been a few days since my Nagios has worked... driving me nuts...
	
	Thanks
	
	funraps too wrote:
	
	Good Morning,
	
	I had Nagios working fine then I installed Monarch and it was still working, then it just stopped!
	There are no errors when I issue nagios -v but the service will not start, I even tried to reinstall it. There is no status file
	/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
	Nagios 2.0b3
	Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org )
	Last Modified: 04-03-2005
	License: GPL
	Reading configuration data...
	Running pre-flight check on configuration data...
	Checking services...
	Checked 59 services.
	Checking hosts...
	Checked 32 hosts.
	Checking host groups...
	Checked 5 host groups.
	Checking service groups...
	Checked 0 service groups.
	Checking contacts...
	Checked 7 contacts.
	Checking contact groups...
	Checked 5 contact groups.
	Checking service escalations...
	Checked 0 service escalations.
	Checking service dependencies...
	Checked 0 service dependencies.
	Checking host escalations...
	Checked 0 host escalations.
	Checking host dependencies...
	Checked 23 host dependencies.
	Checking commands...
	Checked 28 commands.
	Checking time periods...
	Checked 3 time periods.
	Ch! ec! king extended host info definitions...
	Checked 32 extended host info definitions.
	Checking extended service info definitions...
	Checked 0 extended service info definitions.
	Checking for circular paths between hosts...
	Checking for circular host and service dependencies...
	Checking global event handlers...
	Checking obsessive compulsive processor commands...
	Checking misc settings...
	Total Warnings: 0
	Total Errors: 0
	Things look okay - No serious problems were detected during the pre-flight check
	[root at nagios-monitor nagios-2.0b3]# /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
	/etc/init.d/nagios restart
	Running configuration check...done
	Stopping network monitor: nagios
	kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
	Starting network monitor: nagios
	[root at nagios-monitor nagios-2.0b3]# /etc/init.d/nagios stop
	Stopping network monitor: nagios
	kill: usage: kill [-s! s! igspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
	[root at nagios-monitor nagios-2.0b3]# /etc/init.d/nagios start
	Starting network monitor: nagios
	[root at nagios-monitor nagios-2.0b3]# ps -ef | grep nagios
	
	
	
	________________________________
	
	Discover Yahoo!
	Stay in touch with email, IM, photo sharing & more. Check it out! 
	
	________________________________
	
	Discover Yahoo!
	Get on-the-go sports scores, stock quotes, news & more. Check it out! 
	

________________________________

Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out! <http://us.rd.yahoo.com/evt=32658/*http://discover.yahoo.com/weekend.html> 


-------------------------------------------------------
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 
_______________________________________________
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