Nagios Map

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Map

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Map

Post 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. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Map

Post 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)
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

If I run getenforce straight in to Linux I get "Disabled"
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

This bug should be fixed in 4.0.2:
http://tracker.nagios.org/view.php?id=470
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

abrist - Did you read my opening post?
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
flavio.lodoli
Posts: 1
Joined: Tue Dec 17, 2013 5:37 am

Re: Nagios Map

Post 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.
Locked