[Nagiosplug-help] Help compiling .c plugins from contrib/ folder

Robert Hassing robert at cable2000.nl
Wed Oct 17 09:50:45 CEST 2007


Hi

 

When copying al the files (and dependencies) to the same folder as the
source of the plugin, it goed wrong.

 

The output starts with an error telling me this:

 

undefined reference to `spopen

 

I'm realy stuck wright now

 

If someone compiled a c plugin from the contrib. folder, please tell me how
you did it

 

Robert

 

Van: Anthony Montibello [mailto:amontibello at gmail.com] 
Verzonden: woensdag 17 oktober 2007 0:19
Aan: Robert Hassing
CC: nagiosplug-help at lists.sourceforge.net
Onderwerp: Re: [Nagiosplug-help] Help compiling .c plugins from contrib/
folder

 

Most of the C  plugins depend on those files.

so If compiling any of these plugins seperatly, then locate those files;
they are somewhere in the directories after you uncompressed the plugins.  

 

Once you locate the .h files if you choose to copy them make sure you copy
the .c files as well.

 

Hope this helps, (Note my test server is currenlty offline so I could not
verify the directory structure or command line)


Tony (Author of NC_Net)

 

 

On 10/16/07, Robert Hassing <robert at cable2000.nl> wrote: 

Hi

Is there anybody who can tell me what the steps are in order to compile any
.c plugin provided in the contrib. folder? 

I'm trying to compile the check_uptime.c plugin at this moment but it ends
up with the following error:

fw2:~/nagios-plugins-1.4.7/contrib# gcc ./check_uptime.c
./check_uptime.c:24: config.h: No such file or directory 
./check_uptime.c:25: common.h: No such file or directory
./check_uptime.c:26: utils.h: No such file or directory
./check_uptime.c:27: popen.h: No such file or directory

Is there a specific location to put the source and then compile it or? 

Hope someone can help me

Regards
Robert


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop. 
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ 
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help 
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20071017/a8c166d7/attachment.html>


More information about the Help mailing list