mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 05:04:30 +02:00
Bugfixes.
This commit is contained in:
parent
4c658eb889
commit
9338362bf8
@ -23,12 +23,12 @@
|
|||||||
namespace icinga
|
namespace icinga
|
||||||
{
|
{
|
||||||
|
|
||||||
struct ServiceNextCheckLessComparer
|
struct ServiceNextCheckGreaterComparer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool operator()(const Service& a, const Service& b)
|
bool operator()(const Service& a, const Service& b)
|
||||||
{
|
{
|
||||||
return a.GetNextCheck() < b.GetNextCheck();
|
return a.GetNextCheck() > b.GetNextCheck();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ public:
|
|||||||
typedef shared_ptr<CheckerComponent> Ptr;
|
typedef shared_ptr<CheckerComponent> Ptr;
|
||||||
typedef weak_ptr<CheckerComponent> WeakPtr;
|
typedef weak_ptr<CheckerComponent> WeakPtr;
|
||||||
|
|
||||||
typedef priority_queue<Service, vector<Service>, ServiceNextCheckLessComparer> ServiceQueue;
|
typedef priority_queue<Service, vector<Service>, ServiceNextCheckGreaterComparer> ServiceQueue;
|
||||||
|
|
||||||
virtual string GetName(void) const;
|
virtual string GetName(void) const;
|
||||||
virtual void Start(void);
|
virtual void Start(void);
|
||||||
|
@ -28,10 +28,18 @@ abstract object service "ping" inherits "nagios-service" {
|
|||||||
check_interval = 30
|
check_interval = 30
|
||||||
}
|
}
|
||||||
|
|
||||||
object service "localhost-ping" inherits "ping" {
|
object service "localhost-ping1" inherits "ping" {
|
||||||
host_name = "localhost",
|
host_name = "localhost",
|
||||||
|
|
||||||
macros += {
|
macros += {
|
||||||
address = "localhost"
|
address = "localhost"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object service "localhost-ping2" inherits "ping" {
|
||||||
|
host_name = "localhost",
|
||||||
|
|
||||||
|
macros += {
|
||||||
|
address = "localhost"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user