Page 2 of 6

Re: Nagios Map

Posted: Thu Dec 12, 2013 5:51 pm
by lmiltchev
Are you talking about running these two commands on Ubuntu?
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/

Re: Nagios Map

Posted: Fri Dec 13, 2013 6:04 am
by diverseft
Hi lmiltchev - Yes

I ran those commands and get:

Cant apply partial context to unlabeled file 'summary.cgi'
cmd.cgi, statuswrl.cgi etc etc etc - Same with the other command

Re: Nagios Map

Posted: Fri Dec 13, 2013 11:42 am
by lmiltchev
Is SELinux even enabled on your box?

Code: Select all

sestatus
If you disabled SELinux, all labels are removed. That's why you are getting the following message:

Code: Select all

chcon: can't apply partial context to unlabeled file
You can enable selinux and reboot. After that, you should be able to set the labels again. If I were you, I would leave it as is, and not enable SELinux... But that's just me - I don't like SELinux. :)

Re: Nagios Map

Posted: Fri Dec 13, 2013 11:47 am
by diverseft
Thanks lmiltchev

As you can tell my Linux skills are limited. I can get by and have done a good job of getting nagios up and running and its worked well for a few years. Just the maps have broken since upgrading. I don't really want to mess around unless you guys think its necessary to fix the issue

Re: Nagios Map

Posted: Fri Dec 13, 2013 12:10 pm
by sreinhardt
could you run the getenforce line please so we know what the current state of selinux. (I might have missed it above if you already posted it)

Re: Nagios Map

Posted: Mon Dec 16, 2013 8:59 am
by diverseft
If I run getenforce straight in to Linux I get "Disabled"

Re: Nagios Map

Posted: Mon Dec 16, 2013 12:39 pm
by abrist
This bug should be fixed in 4.0.2:
http://tracker.nagios.org/view.php?id=470

Re: Nagios Map

Posted: Mon Dec 16, 2013 2:36 pm
by diverseft
abrist - Did you read my opening post?

Re: Nagios Map

Posted: Tue Dec 17, 2013 3:37 am
by diverseft
Would someone check in their Nagios what version of Nagios is displayed in the top left corner when in the maps view. I get:

Network Map For All Hosts
Last Updated: Tue Dec 17 08:32:31 GMT 2013
Updated every 90 seconds
Nagios® Core™ 4.0.0 - www.nagios.org
Logged in as nagiosadmin

Thanks

Re: Nagios Map

Posted: Tue Dec 17, 2013 5:58 am
by flavio.lodoli
I installed Nagios 3.5.x then 4.0.1 and I get the problem but patching the source code and re-making all worked.
Then I upgrade to 4.0.2 following ivanAK list without stopping nagios and all worked perfectly without any patch.
In the corner I get Nagios 4.0.2:

Network Map For All Hosts
Last Updated: Tue Dec 17 11:52:13 CET 2013
Updated every 90 seconds
Nagios® Core™ 4.0.2 - http://www.nagios.org

I'm on CentOs.