Thursday, May 23rd 2013, 8:14am UTC+2

You are not logged in.

  • Login
  • Register

Edison

Trainee

Posts: 49

Birthday: Nov 18th

Gender: male

Location: Österreich

Occupation: Informatiker, SysAdmin

Number of monitoring servers: 9

Hobbies: IT

Nagios Version: 3.x

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 4500

OS: Linux, Windows, AIX

Plugin Version: 1.4.16

NagVis Version: 1.7.x

Other Addons: PNP4Nagios, check_MK, NagTrap

1

Sunday, August 21st 2011, 2:35pm

WATO Permission denied

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 13Permission denied'/etc/check_mk/conf.d//.wato'

Traceback (most recent call last):
  File "/usr/share/check_mk/web/htdocs/index.py"line 236in handler
    handler()
  File "/usr/share/check_mk/web/htdocs/wato.py"line 111in page_handler
    result modefunc("action")
  File "/usr/share/check_mk/web/htdocs/wato.py"line 3224in 
    "newfile"        lambda phasemode_editfolder(phase"file"True),
  File "/usr/share/check_mk/web/htdocs/wato.py"line 395in mode_editfolder
    save_folder_config()
  File "/usr/share/check_mk/web/htdocs/wato.py"line 1646in save_folder_config
    save_folder_info(g_root_folder)
  File "/usr/share/check_mk/web/htdocs/wato.py"line 1652in save_folder_info
    config.write_settings_file(fnclean_dict(the_folder))
  File "/usr/share/check_mk/web/htdocs/lib.py"line 89in write_settings_file
    create_user_file(path"w").write(pprint.pformat(content) + "\n")
  File "/usr/share/check_mk/web/htdocs/lib.py"line 76in create_user_file
    f file(pathmode0)
IOError: [Errno 13Permission 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
-------------------------------------------

mkettner

Intermediate

Posts: 259

Gender: male

Location: München

Occupation: Geschäftsführer - Mathias Kettner GmbH

Number of monitoring servers: 1

Nagios Version: OMD

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1

Number of services: 1

OS: Alle

Plugin Version: Check_MK 1.2.2

2

Saturday, August 27th 2011, 11:41am

Hi,

a chmod 664 to a directory (conf.d) removes the access right for all. Directories need always 755 or (in your case) 775.

Mathias
Check_MK / MK Livestatus / MK Multisite 1.2.2 ist da!
OMD - Open Monitoring Distribution
Das Check_MK Monitoring System

Edison

Trainee

Posts: 49

Birthday: Nov 18th

Gender: male

Location: Österreich

Occupation: Informatiker, SysAdmin

Number of monitoring servers: 9

Hobbies: IT

Nagios Version: 3.x

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 4500

OS: Linux, Windows, AIX

Plugin Version: 1.4.16

NagVis Version: 1.7.x

Other Addons: PNP4Nagios, check_MK, NagTrap

3

Saturday, August 27th 2011, 1:12pm

Hi,

thanks for the info, but a chmod 775 still hadn't solved the problem.
Only a chmod 777 solved the WATO permission problem.

Maybe there is a problem in the check_MK install procedure.
I installed check_MK on a clean Nagios / CentOS 5.6 installation and the permissons for /etc/check_mk/conf.d was not set correct.
Here on the clean install I got the permissions problem.

Many thanks for help
Wolfgang

mkettner

Intermediate

Posts: 259

Gender: male

Location: München

Occupation: Geschäftsführer - Mathias Kettner GmbH

Number of monitoring servers: 1

Nagios Version: OMD

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1

Number of services: 1

OS: Alle

Plugin Version: Check_MK 1.2.2

4

Saturday, August 27th 2011, 2:03pm

Hi,

the setup procedure of Check_MK does not (yet) setup permissions for WATO yet - your right. Most people use OMD nowadays, where everything works out of the box.. hhhh
Check_MK / MK Livestatus / MK Multisite 1.2.2 ist da!
OMD - Open Monitoring Distribution
Das Check_MK Monitoring System

dsodermanns

Beginner

Posts: 22

Birthday: May 7th 1968 (45)

Gender: male

Location: Duisburg

Occupation: Security Admin

Number of monitoring servers: 3

Hobbies: Hunde: Erziehung

Nagios Version: 3.2.3

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 451

Number of services: 685

OS: Opensuse 12.2

Plugin Version: 1.4.15

NagVis Version: 1.6.5

Other Addons: OMD

5

Saturday, January 14th 2012, 1:09pm

Hi,

setting the permission to 777 is not really a good solution.
I ran into the same issue on OpenSuse 12.1 and changing the owner of "conf.d" to wwwrun corrected the problem.

Hope that helps

Dieter