When I try to create a new host list in WATO i will receive this error:
|
PHP Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Internal error:: [Errno 13] Permission denied: '/etc/check_mk/conf.d//.wato'
Traceback (most recent call last):
File "/usr/share/check_mk/web/htdocs/index.py", line 236, in handler
handler()
File "/usr/share/check_mk/web/htdocs/wato.py", line 111, in page_handler
result = modefunc("action")
File "/usr/share/check_mk/web/htdocs/wato.py", line 3224, in
"newfile" : lambda phase: mode_editfolder(phase, "file", True),
File "/usr/share/check_mk/web/htdocs/wato.py", line 395, in mode_editfolder
save_folder_config()
File "/usr/share/check_mk/web/htdocs/wato.py", line 1646, in save_folder_config
save_folder_info(g_root_folder)
File "/usr/share/check_mk/web/htdocs/wato.py", line 1652, in save_folder_info
config.write_settings_file(fn, clean_dict(the_folder))
File "/usr/share/check_mk/web/htdocs/lib.py", line 89, in write_settings_file
create_user_file(path, "w").write(pprint.pformat(content) + "\n")
File "/usr/share/check_mk/web/htdocs/lib.py", line 76, in create_user_file
f = file(path, mode, 0)
IOError: [Errno 13] Permission denied: '/etc/check_mk/conf.d//.wato'
|
Server or Configuration Problem
A Server problem occurred. You'll find details in the error log of Apache. One possible reason is, that the file /usr/local/nagios/etc/htpasswd.users is missing. You can create that file with htpasswd or htpasswd2. A better solution might be to use your existing htpasswd file from your Nagios installation. Please edit /etc/httpd/conf.d/check_mk and change the path there. Restart Apache afterwards.
The file usr/local/nagios/etc/htpasswd.users exists and is used in /etc/httpd/conf.d/check_mk
The file .wato will not be created.
permissions for directory
drwxr-xr-x 2 root root 4096 Aug 21 14:21 conf.d
Which permissions must be checked/adjusted?
I tried
chgrp apache conf.d
chmod 664 conf.d
but still same troubles.
Used version:
-------------------------------------------
OS: CentOS release 5.6 (Final)
PHP: 5.2.10
Nagios Core: 3.2.3
check_mk: 1.1.11i2
-------------------------------------------