Page 2 of 2

Re: Total process count for httpd on remote linux server

Posted: Mon Mar 14, 2016 10:53 am
by lmiltchev
Let's check if the "check_procs" plugin works correctly when run locally. Run the following command on the remote box, and show the output:

Code: Select all

/usr/lib64/nagios/plugins/check_procs httpd
It seems like, the Linux agent was not installed via our script, and the NRPE is not running under xinetd but as a standalone daemon. Try stopping xinetd on the remote box:

Code: Select all

service xinetd stop
Also, restart NRPE on the remove machine.

Next, try your check from the Nagios XI box:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote ip> -c check_procs -a httpd
It this still doesn't work, post the nrpe.cfg and common.cfg files.

Re: Total process count for httpd on remote linux server

Posted: Wed Mar 16, 2016 10:53 am
by Beena_Jogin
hi,

if we run the following commands, other than NRPE and Nagios plugins does any other system files get affected

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios

Re: Total process count for httpd on remote linux server

Posted: Wed Mar 16, 2016 10:58 am
by rkennedy
I don't believe so, but I wouldn't advise doing so. What exactly are you looking to accomplish? If you have a new question, please create a new thread.
It this still doesn't work, post the nrpe.cfg and common.cfg files.
Can you please post both of these files, if what Ludmil posted didn't work?

Re: Total process count for httpd on remote linux server

Posted: Thu Mar 17, 2016 5:42 am
by Beena_Jogin
Hi,

We need a confirmation that the following commands would not affect any other system files and other plugins

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios

After the confirmation from Nagios support we want to go ahead with the Nagios reinstallation again

Thanks,
Beena

Re: Total process count for httpd on remote linux server

Posted: Thu Mar 17, 2016 5:48 am
by Beena_Jogin
Please ignore my previous reply.

Thanks for the information.

Request you to close the thread.

Thanks,
Beena