Page 3 of 4
Re: Monitor remote machine's memory using Nagios Core
Posted: Wed Dec 11, 2013 4:36 pm
by slansing
You should be able to get a bit more info out of the remote host's syslog, for centos/rhel the syslog is normally in the below location, please share the output of this command:
Re: Monitor remote machine's memory using Nagios Core
Posted: Thu Dec 12, 2013 1:29 pm
by vinothsethuram
Dec 12 11:33:46 nagios kernel: type=1400 audit(1386866026.908:29795): avc: denied { module_request } for pid=16153 comm="httpd" kmod="net-pf-10" scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system
Re: Monitor remote machine's memory using Nagios Core
Posted: Thu Dec 12, 2013 2:22 pm
by slansing
There was absolutely nothing else in your syslog besides on entry at "Dec 12 11:33:46"? Are you sure?
Re: Monitor remote machine's memory using Nagios Core
Posted: Thu Dec 12, 2013 2:59 pm
by vinothsethuram
Then there was no inform about connection refused in the logs.
Re: Monitor remote machine's memory using Nagios Core
Posted: Thu Dec 12, 2013 3:02 pm
by abrist
vinothsethuram wrote:Dec 12 11:33:46 nagios kernel: type=1400 audit(1386866026.908:29795): avc: denied { module_request } for pid=16153 comm="httpd" kmod="net-pf-10" scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system
This is an selinux context error. Is selinux enabled?
Re: Monitor remote machine's memory using Nagios Core
Posted: Thu Dec 12, 2013 3:10 pm
by vinothsethuram
If I run the above command , I'm getting output as "Permissive"
Re: Monitor remote machine's memory using Nagios Core
Posted: Thu Dec 12, 2013 5:10 pm
by lmiltchev
Run the following command and show the output:
Re: Monitor remote machine's memory using Nagios Core
Posted: Mon Dec 16, 2013 9:43 am
by vinothsethuram
-bash-4.1# iptables -L -n | grep 5666
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
Re: Monitor remote machine's memory using Nagios Core
Posted: Mon Dec 16, 2013 11:56 am
by sreinhardt
From the nagios system run:
Code: Select all
nmap -p 5666 [Hostname\IP of the remote system]
(Please be sure to enter your host\IP not just copy paste, it also cannot be localhost)
On the remote system that you have installed nrpe on, and want to monitor the memory run:
Code: Select all
service xinetd status
ps -ef | grep nrpe
ps -ef | grep xinetx
netstat -naop | grep 5666
Re: Monitor remote machine's memory using Nagios Core
Posted: Mon Dec 16, 2013 12:30 pm
by vinothsethuram
Do I need to install nrpe in remote system too?