Sheduling downtime not allowed
Alexander Bruns
mailinglisten at alexander-bruns.de
Wed Apr 7 20:09:55 CEST 2004
Hi,
I want to shedule the downtime within the browser mozilla on the
nagioshomepage of our nagios-box
When I fill out the form and click on submit I get the following
error-message:
Sorry, but you are not authorized to commit the specified command.
Read the section of the documentation that deals with authentication and
authorization in the CGIs for more information.
Return from whence you came
I think I folowed the documentetion on these pages but it does not work:
- http://nagios.sourceforge.net/docs/1_0/commandfile.html
- http://nagios.sourceforge.net/docs/1_0/configcgi.html
- http://nagios.sourceforge.net/docs/1_0/cgiauth.html
I did the following:
nagios runs as user "nagios" and group "nagios"
webserver apache runs at user "nobody" and group "wwwadmin"
rhe nagios user is member of the group wwwadmin and nagios
the nobody user is member of the group wwwadmin and nagios
nagios is installed at /usr/local/nagios
the directory /usr/local/nagios/var/rw contains the file nagios.cmd and has
the following owners:
testrechner3 rw # ls -al
insgesamt 8
drwxrwsr-x 2 nagios wwwadmin 4096 7. Apr 19:46 .
drwxrwxr-x 4 nagios nagios 4096 7. Apr 19:53 ..
prw-rw---- 1 nagios wwwadmin 0 7. Apr 19:46 nagios.cmd
Authorisazion is turned on and I run the webserver with ssl to access the
nagios-webtree.
Is there anybody who got this work?
Some addittion:
my httpd.conf:
########## 8< Schnipp 8< ##########
<VirtualHost 192.168.11.136:443>
ServerAdmin admin at ourdomain
ServerName nagios.ourdomain
DocumentRoot /home/httpd/htdocs/nagios.ourdomain
ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/"
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ "/usr/local/nagios/share/"
<Directory "/usr/local/nagios/share">
Options FollowSymLinks Indexes
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache/nagios.ourdomain_ssl_error_log
TransferLog /var/log/apache/nagios.ourdomain_ssl_access_log
SSLEngine on
SSLCertificateFile /usr/local/apache/certs/nagios/nagios.crt
SSLCertificateKeyFile /usr/local/apache/certs/nagios/nagios.key
</VirtualHost>
########## 8< Schnapp 8< ##########
/usr/local/nagios/etc/nagios.cfg
########## 8< Schnipp 8< ##########
log_file=/usr/local/nagios/var/nagios.log
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
cfg_file=/usr/local/nagios/etc/misccommands.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.log
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
comment_file=/usr/local/nagios/var/comment.log
downtime_file=/usr/local/nagios/var/downtime.log
lock_file=/usr/local/nagios/var/nagios.lock
temp_file=/usr/local/nagios/var/nagios.tmp
log_rotation_method=w
log_archive_path=/usr/local/nagios/var/archives
use_syslog=0
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_service_checks=1
inter_check_delay_method=s
service_interleave_factor=s
max_concurrent_checks=0
service_reaper_frequency=10
sleep_time=1
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/usr/local/nagios/var/status.sav
retention_update_interval=60
use_retained_program_state=0
interval_length=60
use_agressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
enable_notifications=1
enable_event_handlers=1
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
obsess_over_services=0
check_for_orphaned_services=0
check_service_freshness=1
freshness_check_interval=60
aggregate_status_updates=1
status_update_interval=15
enable_flap_detection=0
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=euro
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
admin_email=nagios
admin_pager=pagenagios
########## 8< Schnapp 8< ##########
/usr/local/nagios/etc/cgi.cfg
########## 8< Schnipp 8< ##########
main_config_file=/usr/local/nagios/etc/nagios.cfg
physical_html_path=/usr/local/nagios/share
url_html_path=
show_context_help=1
nagios_check_command=/usr/local/nagios/libexec/check_nagios
/usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios'
use_authentication=1
default_user_name=nagios
authorized_for_system_information=nagios
authorized_for_configuration_information=nagios
authorized_for_system_commands=nagios
authorized_for_all_services=nagios
authorized_for_all_hosts=nagios
authorized_for_all_service_commands=nagios
authorized_for_all_host_commands=nagios
default_statusmap_layout=5
default_statuswrl_layout=4
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
host_unreachable_sound=hostdown.wav
host_down_sound=hostdown.wav
service_critical_sound=critical.wav
service_warning_sound=warning.wav
service_unknown_sound=warning.wav
normal_sound=noproblem.wav
########## 8< Schnapp 8< ##########
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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