Page 1 of 1

How to get reverse for chcon command

Posted: Mon Oct 28, 2013 2:25 pm
by rupace
Hi,

I have installed nagios core 4.0.1 with the help of installation guide, link below.
http://nagios.sourceforge.net/docs/3_0/ ... edora.html


As per this guide in section -- 8) Modify SELinux Settings

I have run these two command.

chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/

As its says now I have stared getting alter notification as followed.

***** Nagios *****

Notification Type: PROBLEM

Service: Swap Usage
Host: localhost
Address: 127.0.0.1
State: CRITICAL

Date/Time: Mon Oct 28 15:10:21 EDT 2013
------------------------

I'm a new user of linux and i don't have any idea how to reverse it. So that the alert notification could be stopped & red flag could be removed from Swap Usage service.

Re: How to get reverse for chcon command

Posted: Tue Oct 29, 2013 2:39 pm
by lmiltchev
Can you run the following command from the CLI and show us the output?

Code: Select all

/usr/local/nagios/libexec/check_swap -w 20% -c 10% -v
Note: Your path the the nagios plugins may be different. Modify the above command accordingly.