Monitor remote machine's memory using Nagios Core

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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor remote machine's memory using Nagios Core

Post 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:

Code: Select all

tail -50 /var/log/messages
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor remote machine's memory using Nagios Core

Post by slansing »

There was absolutely nothing else in your syslog besides on entry at "Dec 12 11:33:46"? Are you sure?
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

Then there was no inform about connection refused in the logs.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitor remote machine's memory using Nagios Core

Post 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?

Code: Select all

getenforce
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.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

If I run the above command , I'm getting output as "Permissive"
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor remote machine's memory using Nagios Core

Post by lmiltchev »

Run the following command and show the output:

Code: Select all

iptables -L -n | grep 5666
Be sure to check out our Knowledgebase for helpful articles and solutions!
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

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

Re: Monitor remote machine's memory using Nagios Core

Post 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
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.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

Do I need to install nrpe in remote system too?
Locked