How to get reverse for chcon command

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.
Locked
rupace
Posts: 1
Joined: Mon Oct 28, 2013 2:03 pm

How to get reverse for chcon command

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: How to get reverse for chcon command

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked