Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hmm, the folder in tmp was already deleted, but I've recompiled and installed it over the current install - still those three files are not updated.
I've tried to pull the three files out of the tar and renamed it from trends.c to trends.cgi and moved it into the /sbin folder, but that didn't worked as well. In apache.log I get the error below:
config.log
69 gcc: error: unrecognized option '-V'
70 gcc: fatal error: no input files
112 conftest.c:8:28: fatal error: ac_nonexistent.h: No such file or directory
128 conftest.c:8:28: fatal error: ac_nonexistent.h: No such file or directory
348 conftest.c:68:20: fatal error: socket.h: No such file or directory
423 conftest.c:35:20: fatal error: socket.h: No such file or directory
587 conftest.c:84:17: fatal error: uio.h: No such file or directory
678 conftest.c:51:17: fatal error: uio.h: No such file or directory
775 conftest.c:92:21: error: expected expression before ')' token
880 conftest.c:92:20: error: expected expression before ')' token
985 conftest.c:92:21: error: expected expression before ')' token
1088 conftest.c:62:1: error: void value not ignored as it ought to be
1716 conftest.c:105:18: fatal error: ltdl.h: No such file or directory
1828 conftest.c:72:18: fatal error: ltdl.h: No such file or directory
Copying the .c files over won't work. They need to be compiled.
Try going through the instructions in this link to see if you can recompile Nagios and the 3 cgi scripts are updated. http://geekpeek.net/install-nagios-core-4-on-ubuntu/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re-compiling on another machine didn’t do the trick. I digged around in mail-archive and read something about trying to run the cgi from the console and a more specific error came around.
But libgd2 is installed on that machine
Ha.
I've recompiled it Nagios on the Nagios host and now it is working.
The only difference I have made is instead using the nagios account (not in sudoers) I've used our normal Linux account with sudo. Now it's working.
helloworld304423 wrote:Ha.
I've recompiled it Nagios on the Nagios host and now it is working.
The only difference I have made is instead using the nagios account (not in sudoers) I've used our normal Linux account with sudo. Now it's working.
Thanks!
Glad to hear it worked, and will definitely keep an eye out for this in the future. Am I all right to mark this one resolved and close it?