Service: fetchmail Prozess

(old) #1

g´day everone,

I receive the following message from icinga-monitoring, mail service:

PROCS CRITICAL: 66 processes with command name 'fetchmail’object Service “fetchmail Prozess”

Unfortunately, I can not find the settings for the service on the system
can someone help please?

content of the host file:
import “generic-service”
host_name = “Mail-Server”
check_command = “by_ssh”
vars.by_ssh_logname = “root”
vars.by_ssh_identity = “/etc/icinga2/keys/mail01_check_fetchmail_proc”
vars.by_ssh_command = “return”

greetings old.buffer

(Aflatto) #2

There is missing data in the config you shown us.

To help you understand this we need to see the service configuration, what you shared is showing only the host name and the method of connecting, but not the actual check to run

(old) #3

hello,

this is the config from the services.conf /etc/icinga2/conf.d# cat services.conf

  • Service apply rules.
  • The CheckCommand objects ping4, ping6, etc
  • are provided by the plugin check command templates.
  • Check the documentation for details.
  • Tip: Use icinga2 object list --type Service to
  • list all service objects after running
  • configuration validation (icinga2 daemon -C).
    */

/*

  • This is an example host based on your
  • local host’s FQDN. Specify the NodeName
  • constant in constants.conf or use your
  • own description, e.g. “db-host-1”.
    */

/*

  • These are generic ping4 and ping6
  • checks applied to all hosts having the
  • address resp. address6 attribute
  • defined.
    */
    apply Service “ping4” {
    import “generic-service”

check_command = “ping4”

assign where host.address
}

apply Service “ping6” {
import “generic-service”

check_command = “ping6”

assign where host.address6
}

/*

  • Apply the ssh service to all hosts
  • with the address attribute defined and
  • the custom attribute os set to Linux.
    */
    apply Service “ssh” {
    import “generic-service”

check_command = “ssh”

assign where (host.address || host.address6) && host.vars.os == “Linux”
}

apply Service for (http_vhost => config in host.vars.http_vhosts) {
import “generic-service”

check_command = “http”

vars += config
}

apply Service for (disk => config in host.vars.disks) {
import “generic-service”

check_command = “disk”

vars += config
}

apply Service “icinga” {
import “generic-service”

check_command = “icinga”

assign where host.name == NodeName
}

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
}

apply Service “procs” {
import “generic-service”

check_command = “procs”

assign where host.name == NodeName
}

apply Service “users” {
import “generic-service”

check_command = “users”

assign where host.name == NodeName
}

cheers

(Aflatto) #4

These are the basic services that are applied based on the assign logic.

The issue with your specific check should be shown in the definition of that command, which is not listed here.

try using grep to find the service definition in the icinga configuration files, and see if you can find a “vars.procs_critical” definition , that is the place where you define the critical threshold for a procs check.

(old) #5

ty Aflatto,

my bad!

I have searched the wrong place, the mail-procc service is not on the icinga system but on my mail system

I report next week if I found it, now first weekend

cheers, gl&hf