Working with binary plugin - check_procs_perf.c

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
John12
Posts: 48
Joined: Fri Nov 11, 2011 6:16 am

Working with binary plugin - check_procs_perf.c

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

Re: Working with binary plugin - check_procs_perf.c

Post 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.
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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Working with binary plugin - check_procs_perf.c

Post 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.
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.
John12
Posts: 48
Joined: Fri Nov 11, 2011 6:16 am

Re: Working with binary plugin - check_procs_perf.c

Post 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.
Locked