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();
}
};
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);
check_interval = 30
}
-object service "localhost-ping" inherits "ping" {
+object service "localhost-ping1" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
}
-}
\ No newline at end of file
+}
+
+object service "localhost-ping2" inherits "ping" {
+ host_name = "localhost",
+
+ macros += {
+ address = "localhost"
+ }
+}