Using utils.h within executables written in the C language

Mohammed Murphy mohammed.murphy at tandberg.com
Tue Mar 16 14:57:14 CET 2010


Hey all,

I am a novice at both Nagios and the C language. Whilst perusing the 
Nagios help pages, I came across a page discussing the "guidelines" for 
writing plugins. One of the points mentioned is that the use of utils.h 
(for C-written plugins) was encouraged (perhaps even expected). I was 
unable to locate this file anywhere (neither on the Nagios server 
instance I am running nor on the Nagios help pages,/documentation etc). 
So firstly, I was hoping that I could be directed to where I could get a 
copy of it.

Secondly, I would like to know how a C application is supposed to link 
to it. Are we expected to use a static linking technique (i.e. copy and 
paste the utils.h/c source into our own C plugin and then compile)? Or a 
dynamic linking technique? And if dynamic linking, is there some 
documentation/help that will guide me as to how to proceed with this 
approach?

I hope I explained that clearly enough.
Thanks in advance.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev




More information about the Developers mailing list