mirror of https://github.com/Icinga/icinga2.git
Wrapped VERSION in #ifndef and moved it to the top of the file.
This commit is contained in:
parent
ad1207166c
commit
4f450a464c
|
@ -26,6 +26,10 @@ const String CompatIdoComponent::DefaultSocketPort = "5668";
|
||||||
const String CompatIdoComponent::DefaultInstanceName = "i2-default";
|
const String CompatIdoComponent::DefaultInstanceName = "i2-default";
|
||||||
const int CompatIdoComponent::DefaultReconnectInterval = 15;
|
const int CompatIdoComponent::DefaultReconnectInterval = 15;
|
||||||
|
|
||||||
|
#define PROGRAM_MODIFICATION_DATE "10-17-2012"
|
||||||
|
#ifndef VERSION
|
||||||
|
# define VERSION "2.0"
|
||||||
|
#endif /* VERSION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads the socket address from the config
|
* Reads the socket address from the config
|
||||||
|
@ -296,7 +300,7 @@ void CompatIdoComponent::SendHello(String instancename)
|
||||||
<< "HELLO" << "\n"
|
<< "HELLO" << "\n"
|
||||||
<< "PROTOCOL" << ": " << 2 << "\n"
|
<< "PROTOCOL" << ": " << 2 << "\n"
|
||||||
<< "AGENT" << ": " << "I2 COMPATIDO" << "\n"
|
<< "AGENT" << ": " << "I2 COMPATIDO" << "\n"
|
||||||
<< "AGENTVERSION" << ": " << "2.0" << "\n"
|
<< "AGENTVERSION" << ": " << VERSION << "\n"
|
||||||
<< "STARTTIME" << ": " << static_cast<int>(Utility::GetTime()) << "\n"
|
<< "STARTTIME" << ": " << static_cast<int>(Utility::GetTime()) << "\n"
|
||||||
<< "DISPOSITION" << ": " << "REALTIME" << "\n"
|
<< "DISPOSITION" << ": " << "REALTIME" << "\n"
|
||||||
<< "CONNECTION" << ": " << "TCPSOCKET" << "\n"
|
<< "CONNECTION" << ": " << "TCPSOCKET" << "\n"
|
||||||
|
@ -336,9 +340,6 @@ void CompatIdoComponent::CloseSink(void)
|
||||||
void CompatIdoComponent::SendStartProcess(void)
|
void CompatIdoComponent::SendStartProcess(void)
|
||||||
{
|
{
|
||||||
/* TODO */
|
/* TODO */
|
||||||
#define PROGRAM_MODIFICATION_DATE "10-17-2012"
|
|
||||||
#define VERSION "2.0"
|
|
||||||
|
|
||||||
stringstream message;
|
stringstream message;
|
||||||
message << "\n"
|
message << "\n"
|
||||||
<< 200 << "\n" /* processdata */
|
<< 200 << "\n" /* processdata */
|
||||||
|
|
Loading…
Reference in New Issue