Thursday, May 23rd 2013, 6:06pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

dol.meun

Beginner

Posts: 4

Birthday: Aug 5th 1989 (23)

Gender: male

Location: Cambodia

Occupation: System

Number of monitoring servers: 1

Nagios Version: 3.2.3

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 500

Number of services: 30

OS: CentOS

Plugin Version: 1.4

NagVis Version: 1.5

NDO Version: 1

1

Saturday, December 11th 2010, 3:22am

Problem (Backend: live_1): Unable to connect to the /usr/local/nagios/var/rw/live in backend live_1: Permission denied

Dear all,
After I install mklivestatus and configure with nagios work successful as event log
Dec 10 11:55:17 localhost nagios: Event broker module '/usr/local/lib/mk-livestatus/livestatus.o' deinitialized successfully.
Dec 10 11:55:18 localhost nagios: Nagios 3.2.3 starting... (PID=14637)
Dec 10 11:55:18 localhost nagios: Local time is Fri Dec 10 11:55:18 ICT 2010
Dec 10 11:55:18 localhost nagios: LOG VERSION: 2.0
Dec 10 11:55:19 localhost nagios: livestatus: Setting debug level to 1
Dec 10 11:55:19 localhost nagios: livestatus: Version 1.1.6p1 initializing. Socket path: '/usr/local/nagios/var/rw/live'
Dec 10 11:55:19 localhost nagios: livestatus: Livestatus has been brought to you by Mathias Kettner
Dec 10 11:55:19 localhost nagios: livestatus: Please visit us at http://mathias-kettner.de/
Dec 10 11:55:19 localhost nagios: livestatus: Created UNIX control socket at /usr/local/nagios/var/rw/live
Dec 10 11:55:19 localhost nagios: livestatus: Opened UNIX socket /usr/local/nagios/var/rw/live
Dec 10 11:55:19 localhost nagios: livestatus: successfully finished initialization
Dec 10 11:55:19 localhost nagios: Event broker module '/usr/local/lib/mk-livestatus/livestatus.o' initialized successfully.


And after I install nagvis by using live_1 as backend but when I access by web it show error message that (Backend: live_1): Unable to connect to the /usr/local/nagios/var/rw/live in backend live_1: Permission denied.
and my permission
[root@localhost ~]# ls -la /usr/local/nagios/var/rw/live
srw-rw---- 1 nagios nagios 0 Dec 10 11:55 /usr/local/nagios/var/rw/live
and alos my web user in group nagios too

could any one help me to solve this problem.
Thank in advance,
Meun DOl

Posts: 7,238

Gender: male

Number of monitoring servers: 2

Nagios Version: 3.2.1

Icinga Version: Icinga 1.7.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >70

Number of services: >200

OS: SLES11

Plugin Version: 1.4.15

Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18

2

Saturday, December 11th 2010, 9:11am

Are you able to submit commands from the Nagios web interface?
Switch to the web user and change to /usr/local/nagios/var/rw. Execute "touch testfile" to check that you have sufficient permissions ("rm testfile" afterwards).
Check the Apache logs for other messages.

dol.meun

Beginner

Posts: 4

Birthday: Aug 5th 1989 (23)

Gender: male

Location: Cambodia

Occupation: System

Number of monitoring servers: 1

Nagios Version: 3.2.3

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 500

Number of services: 30

OS: CentOS

Plugin Version: 1.4

NagVis Version: 1.5

NDO Version: 1

3

Tuesday, December 14th 2010, 3:23am

Thank for you reply I will test it.

dol.meun

Beginner

Posts: 4

Birthday: Aug 5th 1989 (23)

Gender: male

Location: Cambodia

Occupation: System

Number of monitoring servers: 1

Nagios Version: 3.2.3

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 500

Number of services: 30

OS: CentOS

Plugin Version: 1.4

NagVis Version: 1.5

NDO Version: 1

4

Saturday, December 25th 2010, 3:19am

root of error

thank Wolfgang for you help, now I can find the root of error. It because on file /etc/selinux/config I put enforced and after I change enforced to disable every think are fine. My nagios can check external command and Backend: live_1 working.
regards,
Meun Dol

Posts: 7,238

Gender: male

Number of monitoring servers: 2

Nagios Version: 3.2.1

Icinga Version: Icinga 1.7.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >70

Number of services: >200

OS: SLES11

Plugin Version: 1.4.15

Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18

5

Saturday, December 25th 2010, 9:57am

You can try to use something like "chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw/" to set the permissions. I haven't tested if it works and it might fail because the files are created during startup of Nagios.

dol.meun

Beginner

Posts: 4

Birthday: Aug 5th 1989 (23)

Gender: male

Location: Cambodia

Occupation: System

Number of monitoring servers: 1

Nagios Version: 3.2.3

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 500

Number of services: 30

OS: CentOS

Plugin Version: 1.4

NagVis Version: 1.5

NDO Version: 1

6

Monday, December 27th 2010, 5:24am

I had follow you Wolfgang, and It working. thank you that you always help me.