icinga_LDADD = \
${top_builddir}/base/libbase.la \
${top_builddir}/icinga/libicinga.la \
+ -dlopen ${top_builddir}/components/checker/checker.la \
-dlopen ${top_builddir}/components/configfile/configfile.la \
-dlopen ${top_builddir}/components/configrpc/configrpc.la \
-dlopen ${top_builddir}/components/demo/demo.la \
libicinga.la
libicinga_la_SOURCES = \
+ checktask.cpp \
+ checktask.h \
+ configobjectadapter.cpp \
+ configobjectadapter.h \
endpoint.cpp \
endpoint.h \
endpointmanager.cpp \
icingaapplication.h \
icingacomponent.cpp \
icingacomponent.h \
+ host.cpp \
+ host.h \
i2-icinga.h \
jsonrpcendpoint.cpp \
jsonrpcendpoint.h \
+ macroprocessor.cpp \
+ macroprocessor.h \
+ nagioschecktask.cpp \
+ nagioschecktask.h \
+ service.cpp \
+ service.h \
virtualendpoint.cpp \
virtualendpoint.h
cr.Output = output.str();
- int status, exitstatus;
+ int status, exitcode;
#ifdef _MSC_VER
status = _pclose(fp);
#else /* _MSC_VER */
if (WIFEXITED(status)) {
exitcode = WEXITSTATUS(status);
#else /* _MSC_VER */
- exitstatus = status;
+ exitcode = status;
#endif /* _MSC_VER */
- switch (exitstatus) {
+ switch (exitcode) {
case 0:
cr.State = StateOK;
break;
#ifndef _MSC_VER
} else if (WIFSIGNALED(status)) {
cr.Output = "Process was terminated by signal " + WTERMSIG(status);
- cr.Status = StateUnknown;
+ cr.State = StateUnknown;
}
#endif /* _MSC_VER */