mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Fixed indentation.
This commit is contained in:
parent
1055a306c9
commit
1bf945f367
@ -437,16 +437,16 @@ void CompatIdoComponent::DumpHostStatus(const Host::Ptr& host)
|
|||||||
log << "Dumping Host Status: " << host->GetName();
|
log << "Dumping Host Status: " << host->GetName();
|
||||||
Logger::Write(LogDebug, "compatido", log.str());
|
Logger::Write(LogDebug, "compatido", log.str());
|
||||||
|
|
||||||
int state;
|
int state;
|
||||||
if (!host->IsReachable())
|
if (!host->IsReachable())
|
||||||
state = 2; /* unreachable */
|
state = 2; /* unreachable */
|
||||||
else if (!host->IsUp())
|
else if (!host->IsUp())
|
||||||
state = 1; /* down */
|
state = 1; /* down */
|
||||||
else
|
else
|
||||||
state = 0; /* up */
|
state = 0; /* up */
|
||||||
|
|
||||||
stringstream message;
|
stringstream message;
|
||||||
message << "\n"
|
message << "\n"
|
||||||
<< 212 << ":" << "\n" /* hoststatusdata */
|
<< 212 << ":" << "\n" /* hoststatusdata */
|
||||||
<< 1 << "=" << "" << "\n" /* type */
|
<< 1 << "=" << "" << "\n" /* type */
|
||||||
<< 2 << "=" << "" << "\n" /* flags */
|
<< 2 << "=" << "" << "\n" /* flags */
|
||||||
@ -500,7 +500,7 @@ void CompatIdoComponent::DumpHostStatus(const Host::Ptr& host)
|
|||||||
<< 262 << "=" << "i2_customvar" << ":" << "1" << ":" << "i2_customvarmod" << "\n" /* customvariable */
|
<< 262 << "=" << "i2_customvar" << ":" << "1" << ":" << "i2_customvarmod" << "\n" /* customvariable */
|
||||||
<< 999 << "\n\n"; /* enddata */
|
<< 999 << "\n\n"; /* enddata */
|
||||||
|
|
||||||
m_IdoConnection->SendMessage(message.str());
|
m_IdoConnection->SendMessage(message.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user