Right in that moment when I sent my mail everything started to work fine. So you can ignore my mail. :-)
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Gesendet: Donnerstag, 04. Mai 2017 um 00:32 Uhr
Von: mweinberg...@email.de
An: icinga-users@lists.icinga.org
Betreff: [icinga-users] Local checks on satellites in a cluster
Von: mweinberg...@email.de
An: icinga-users@lists.icinga.org
Betreff: [icinga-users] Local checks on satellites in a cluster
Hi,
I have the following problem. I guess I either misunderstood something or just did a stupid mistake.
Setup:
Master -> 2 Satellites in a satellite zone -> Clients
Master -> 2 Satellites in a satellite zone -> Clients
Is it possible to run local checks on the satellites? (well, I guess it is, but how?) For example mem, disk and swap checks... At the moment, I configured the services and assigned them to the host but the result of the services is the same for both hosts.
Example service (ignore the ii):
apply Service "diisk" {
import "generic-service"
import "generic-service"
check_command = "disk"
command_endpoint = host.name
assign where host.name == "tick-eval-3" || host.name == "tick-eval-1"
}
}
Example host configuration in /etc/icinga2/zones.d/tick-eval/hosts.conf:
object Host "tick-eval-1" {
check_command = "hostalive"
address = "10.0.0.25"
check_command = "hostalive"
address = "10.0.0.25"
/* Define disks and attributes for service apply rules in `services.conf`. */
vars.disks["disk"] = {
disk_local = "true"
}
vars.disks["disk /"] = {
disk_partitions = "/"
disk_local = "true"
}
vars.disks["disk"] = {
disk_local = "true"
}
vars.disks["disk /"] = {
disk_partitions = "/"
disk_local = "true"
}
/* Define notification mail attributes for notification apply rules in `notifications.conf`. */
vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
groups = [ "icingaadmins" ]
}
vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
groups = [ "icingaadmins" ]
}
zone = "tick-eval"
vars.client_enpoint = "tick-eval-1"
vars.os = "Linux"
vars.nosms = "1"
vars.local_agent = "yes"
vars.sla = "24x7"
}
vars.nosms = "1"
vars.local_agent = "yes"
vars.sla = "24x7"
}
object Host "tick-eval-3" {
check_command = "hostalive"
address = "10.0.0.26"
check_command = "hostalive"
address = "10.0.0.26"
/* Define disks and attributes for service apply rules in `services.conf`. */
vars.disks["disk"] = {
disk_local = "true"
}
vars.disks["disk /"] = {
disk_partitions = "/"
disk_local = "true"
}
vars.disks["disk"] = {
disk_local = "true"
}
vars.disks["disk /"] = {
disk_partitions = "/"
disk_local = "true"
}
/* Define notification mail attributes for notification apply rules in `notifications.conf`. */
vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
groups = [ "icingaadmins" ]
}
vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
groups = [ "icingaadmins" ]
}
zone = "tick-eval"
vars.client_enpoint = "tick-eval-3"
vars.os = "Linux"
vars.nosms = "1"
vars.local_agent = "yes"
vars.sla = "24x7"
}
vars.nosms = "1"
vars.local_agent = "yes"
vars.sla = "24x7"
}
So I used fallocate to create a file with a size of 5 GB. So I should get 8GB of free disk space on the tick-eval-3 and 3 GB on tick-eval-1. But I either get 3 or 8 GB for both.
What am I doing wrong?
Best regards,
What am I doing wrong?
Best regards,
Marcel
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users