mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Bugfixes.
This commit is contained in:
parent
4c658eb889
commit
9338362bf8
@ -23,12 +23,12 @@
|
||||
namespace icinga
|
||||
{
|
||||
|
||||
struct ServiceNextCheckLessComparer
|
||||
struct ServiceNextCheckGreaterComparer
|
||||
{
|
||||
public:
|
||||
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 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 void Start(void);
|
||||
|
@ -28,10 +28,18 @@ abstract object service "ping" inherits "nagios-service" {
|
||||
check_interval = 30
|
||||
}
|
||||
|
||||
object service "localhost-ping" inherits "ping" {
|
||||
object service "localhost-ping1" inherits "ping" {
|
||||
host_name = "localhost",
|
||||
|
||||
macros += {
|
||||
address = "localhost"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object service "localhost-ping2" inherits "ping" {
|
||||
host_name = "localhost",
|
||||
|
||||
macros += {
|
||||
address = "localhost"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user