Nagios 3.4.0 complilation error (and trivial fix)

Randal, Phil phil.randal at hoopleltd.co.uk
Wed May 9 17:15:44 CEST 2012


I should have mentioned that that error only occurs if you try to compile Nagios 3.4.0 with embedded perl support.

There's also no guarantee that it'll work properly even with that patch.  I had problems check_mk with Nagios 3.4.0, but unfortunately, I haven't got the time or test environment to get to the bottom of it.

Cheers,

Phil

--
Phil Randal
Infrastructure Engineer
Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT
Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk

From: Ismael Puerto [mailto:ismael.puerto at seres.es]
Sent: 09 May 2012 12:21
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.4.0 complilation error (and trivial fix)

Thanks Phill

On 05/08/2012 04:03 PM, Randal, Phil wrote:
Hi folks,

Trying to compile nagios 3.4.0 gave me this error:

checks.c: In function 'run_async_service_check':
checks.c:714:5: error: 'temp_buffer' undeclared (first use in this function)

Patch to fix the compilation error is:

--- nagios/base/checks.c        2012-05-08 14:36:02.000000000 +0100
+++ nagios/base/checks.c        2012-05-08 14:35:45.000000000 +0100
@@ -469,6 +469,7 @@
        double old_latency = 0.0;
        dbuf checkresult_dbuf;
        int dbuf_chunk = 1024;
+       char *temp_buffer;
#ifdef USE_EVENT_BROKER
        int neb_result = OK;
#endif


Cheers,

Phil

--
Phil Randal
Infrastructure Engineer
Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT
Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk<mailto:phil.randal at hoopleltd.co.uk>

"Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.



------------------------------------------------------------------------------

Live Security Virtual Conference

Exclusive live event will cover all the ways today's security and

threat landscape has changed and how IT managers can respond. Discussions

will include endpoint security, mobile security and the latest in malware

threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/




_______________________________________________

Nagios-users mailing list

Nagios-users at lists.sourceforge.net<mailto:Nagios-users at lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/nagios-users

::: Please include Nagios version, plugin 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-lists.org/archive/users/attachments/20120509/82e6e419/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list