Raven писал(а):Показывай конфиги апача, содержимое htpasswd.users. Телепатически проблема не решаема, все ж таки.
file:///etc/apache2/conf.d/nagios.conf
Код: Выделить всё
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi"
<Directory "/usr/lib/nagios/cgi">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/share/nagios"
<Directory "/usr/share/nagios">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios Access"
# AuthType Basic
# AuthUserFile /etc/nagios/htpasswd.users
# Require valid-user
# <IfDefine KOHANA2>
# DirectoryIndex index.html index.php
# </IfDefine>
</Directory>
file:///etc/nagios/htpasswd.users
В
file:///var/log/apache2/error_log
проскакивала вот такая строка
Код: Выделить всё
[Thu Oct 09 17:11:33.559671 2014] [autoindex:error] [pid 22812] [client 127.0.0.1:53823] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var,index.php,index.php4,index.php5,index.php) found, and server-generated directory index forbidden by
только я не разобрался кто такой этот клиент 53823 с локальной машины.
Лог самого нагиоса-последние строки
Код: Выделить всё
1412852911] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412852951] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412853171] Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412853211] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412853251] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412853471] Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412853511] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1412853550] Caught SIGTERM, shutting down...
[1412853553] Successfully shutdown... (PID=16289)
SSH авторизацию заккоментировал вроде как