Page 1 of 1

Working with binary plugin - check_procs_perf.c

Posted: Wed May 15, 2013 12:54 am
by John12
Hi,

My setup is
SERVER: centos 5.7 64bit.
Nagios version: Nagios XI 2012R1.5b VMware 32bit. running in vmware workstation inside my SERVER.

I have found an enhanced version of check_procs plugin which returns perf data. http://exchange.nagios.org/directory/Pl ... rf/details

As far what i have understood on how to use it was, that this plugin is in binary format. i.e written in C. and i have to compile it with nagios-plugins-1.4.16.
my only doubt and hesitate was.. if i compile and install the check_proc_perf inside nagios-plugin-1.4.16, will the other plugins reside in nagios-pugins-1.4.16 overwrite the plugin directory (/usr/local/nagios/libexec) in my Server which is created on installed NRPE agent. If it overwrite, will it create any issue.

I may be completely wrong in my assumption or missing how to configure, kindly let me know in configuring plugins with binary format. i.e check_proc_perf.c,

THANKS and Awaiting response,
John.

Re: Working with binary plugin - check_procs_perf.c

Posted: Wed May 15, 2013 1:58 pm
by sreinhardt
Based on the comment with directions for installation, you are correct on how it is to be compiled. Downloaded the latest version of nagios plugins, copy this file into the directory and make as though it were normal nagios plugins. This WILL overwrite any existing plugins for nrpe or nagios, however it should not conflict with any others aside from check_procs if that has issues after. Give it a shot, for the most part, the worst issue would be having to rebuild the normal nagios plugins.

Re: Working with binary plugin - check_procs_perf.c

Posted: Wed May 15, 2013 2:02 pm
by abrist
If you patch the source and ./configure and make, but do not "make install", none of your current installed plugins will be overwritten (that is what "make install" does). After the "make", copy the patched/compiled binary to libexec.

Re: Working with binary plugin - check_procs_perf.c

Posted: Thu May 16, 2013 12:48 am
by John12
Thanks abrist & sreinhardt. I appreciate you for your time to reply my issue. Now i understand with your comments.

thanks once again.
John.