Hi, im getting alerts in icinga2 (icingaweb2) for itself, ie the server icinga2 is running on. This server isn’t set up the same as my other servers/hosts. ie its not in the host files under /etc/icinga2/conf.d.
its complaining about load average being too high, but im not concerned about the results as they aren’t high enough for me to worry about.
I believe this is being run/managed by the services.conf file. but I cant see where the “load” script/plugin is being run from, or how to change the threshold ?
apply Service “load” {
import “generic-service”
check_command = “load”
/* Used by the ScheduledDowntime apply rule in downtimes.conf. */
vars.backup_downtime = “02:00-03:00”
assign where host.name == NodeName
}
Any ideas how to change the threshholds on this check. I’m assuming NodeName is itself.
Hi thanks. I have no issues with the nagios plugins for “hosts” as I use for instance
apply Service “load_by_ssh” {
import “generic-service”
check_command = “by_ssh”
vars.by_ssh_logname = “root”
vars.by_ssh_options = “StrictHostKeyChecking=no”
// the [ ] syntax below joins the strings
vars.by_ssh_command = “/ns/tec/unix/u/apps/Icinga2/rhel7-plugins/check_load”
vars.by_ssh_skip_stderr = 0
vars.by_ssh_arguments = {
“-w” = “48,38,33”
“-c” = “70,60,50”}
assign where host.vars.os == “Linux7”
}
But the check in services.conf (which checks the master icinga2 server) has the following
apply Service “load” {
import “generic-service”
check_command = “load”
/* Used by the ScheduledDowntime apply rule in downtimes.conf. */
vars.backup_downtime = “02:00-03:00”
assign where host.name == NodeName
}
I don’t understand where or what to put in this services.conf script to apply thresholds to the “load” check.
Hi thanks for the tips. however, im not talking about a regular host. I run ssh-checks (all agentless) for these and apply the following vi a file called ssh-checks.conf…
apply Service “load_by_ssh” {
import “generic-service”
check_command = “by_ssh”
vars.by_ssh_logname = “root”
vars.by_ssh_options = “StrictHostKeyChecking=no”
// the [ ] syntax below joins the strings
vars.by_ssh_command = “/ns/tec/unix/u/apps/Icinga2/rhel7-plugins/check_load”
vars.by_ssh_skip_stderr = 0
vars.by_ssh_arguments = {
“-w” = “48,38,33”
“-c” = “70,60,50”}
assign where host.vars.os == “Linux7”
}
But this doesn’t apply to the icinga2 master server. This appears to be checked via the services.conf file using the following…
apply Service “load” {
import “generic-service”
check_command = “load”
/* Used by the ScheduledDowntime apply rule in downtimes.conf. */
vars.backup_downtime = “02:00-03:00”
assign where host.name == NodeName
}
If I add the following to this sections
vars.load_warn = “19,22,24”
vars.load_crit = “24,28,30”
It makes no difference.
cool. many thanks. I added the following to the services.conf file
vars.load_wload1 = 20
vars.load_wload5 = 19
vars.load_wload15 = 17
vars.load_cload1 = 30
vars.load_cload5 = 28
vars.load_cload15 = 25
and removed the "import “generic-service” line
so
apply Service “load” {
// import “generic-service”
check_command = “load”
vars.load_wload1 = 20
vars.load_wload5 = 19
vars.load_wload15 = 17
vars.load_cload1 = 30
vars.load_cload5 = 28
vars.load_cload15 = 25
/* Used by the ScheduledDowntime apply rule in downtimes.conf. */
vars.backup_downtime = “02:00-03:00”
assign where host.name == NodeName
}