Man page - ocf_heartbeat_ethmonitor(7)
Packages contas this manual
- ocf_heartbeat_rabbitmq-cluster(7)
- ocf_heartbeat_smb-share(7)
- ocf_heartbeat_lvmlockd(7)
- ocf_heartbeat_openstack-floating-ip(7)
- ocf_heartbeat_lxc(7)
- ocf_heartbeat_slapd(7)
- ocf_heartbeat_docker(7)
- ocf_heartbeat_azure-events(7)
- ocf_heartbeat_awsvip(7)
- ocf_heartbeat_iface-bridge(7)
- ocf_heartbeat_mdraid(7)
- ocf_heartbeat_iface-macvlan(7)
- ocf_heartbeat_sg_persist(7)
- ocf_heartbeat_exportfs(7)
- ocf_heartbeat_pound(7)
- ocf_heartbeat_garbd(7)
- ocf_heartbeat_ipsec(7)
- ocf_heartbeat_vmware(7)
- ocf_heartbeat_anything(7)
- ocf_heartbeat_mysql-proxy(7)
- ocf_heartbeat_varnish(7)
- ocf_heartbeat_mariadb(7)
- sfex_init(8)
- ocf_heartbeat_dnsupdate(7)
- ocf_heartbeat_mpathpersist(7)
- ocf_heartbeat_conntrackd(7)
- ocf_heartbeat_nvmet-namespace(7)
- ocf_heartbeat_gcp-vpc-move-ip(7)
- ocf-tester(8)
- ocf_heartbeat_ovsmonitor(7)
- ocf_heartbeat_docker-compose(7)
- ocf_heartbeat_ids(7)
- ocf_heartbeat_asterisk(7)
- ocf_heartbeat_dhcpd(7)
- ocf_heartbeat_mysql(7)
- ocf_heartbeat_iscsi(7)
- ocf_heartbeat_galera(7)
- ocf_heartbeat_pingd(7)
- ocf_heartbeat_portblock(7)
- ocf_heartbeat_minio(7)
- ocf_heartbeat_nginx(7)
- ocf_heartbeat_jboss(7)
- ocf_heartbeat_oralsnr(7)
- ocf_heartbeat_dovecot(7)
- ocf_heartbeat_nfsnotify(7)
- ocf_heartbeat_crypt(7)
- ocf_heartbeat_fio(7)
- ocf_heartbeat_gcp-ilb(7)
- ocf_heartbeat_gcp-vpc-move-route(7)
- ocf_heartbeat_ethmonitor(7)
- ocf_heartbeat_nvmet-port(7)
- ocf_heartbeat_gcp-vpc-move-vip(7)
- ocf_heartbeat_vsftpd(7)
- ocf_heartbeat_openstack-virtual-ip(7)
- ocf_heartbeat_storage-mon(7)
- ocf_heartbeat_lxd-info(7)
- ocf_heartbeat_awseip(7)
- ocf_heartbeat_oracle(7)
- ocf_heartbeat_osceip(7)
- ocf_heartbeat_rabbitmq-server-ha(7)
- ocf_heartbeat_jira(7)
- ocf_heartbeat_symlink(7)
- ocf_heartbeat_scsi2reservation(7)
- ocf_heartbeat_rsyncd(7)
- ocf_heartbeat_ocivip(7)
- ocf_heartbeat_powervs-subnet(7)
- ocf_heartbeat_machine-info(7)
- ocf_heartbeat_tomcat(7)
- ocf_heartbeat_gcp-pd-move(7)
- ocf_heartbeat_aliyun-vpc-move-ip(7)
- ocf_heartbeat_nvmet-subsystem(7)
- ocf_heartbeat_oraasm(7)
- ocf_heartbeat_openstack-info(7)
- ocf_heartbeat_azure-lb(7)
- ocf_heartbeat_syslog-ng(7)
- ocf_heartbeat_redis(7)
- ocf_heartbeat_pgagent(7)
- ocf_heartbeat_rsyslog(7)
- ocf_heartbeat_aws-vpc-route53(7)
- ocf_heartbeat_vdo-vol(7)
- ocf_heartbeat_iface-vlan(7)
- ocf_heartbeat_azure-events-az(7)
- ocf_heartbeat_postfix(7)
- ocf_heartbeat_rkt(7)
- ocf_heartbeat_zabbixserver(7)
- ocf_heartbeat_corosync-qnetd(7)
- ocf_heartbeat_dummypy(7)
- ocf_heartbeat_clvm(7)
- ocf_heartbeat_nfsserver(7)
- ocf_heartbeat_named(7)
- ocf_heartbeat_aws-vpc-move-ip(7)
- ocf_heartbeat_nagios(7)
- ocf_heartbeat_sfex(7)
- ocf_heartbeat_podman(7)
- ocf_heartbeat_openstack-cinder-volume(7)
- ocf_heartbeat_pgsql(7)
- ocf_heartbeat_kamailio(7)
- ocf_heartbeat_db2(7)
- ocf_heartbeat_proftpd(7)
- ocf_heartbeat_apache(7)
apt-get install resource-agents
Manual
| OCF_HEARTBEAT_ETHMON(7) | OCF resource agents | OCF_HEARTBEAT_ETHMON(7) |
NAME
ocf_heartbeat_ethmonitor - Monitors network interfaces
SYNOPSIS
ethmonitor [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
Monitor the vitality of a local network interface.
You may set up this RA as a clone resource to monitor the network interfaces on different nodes, with the same interface name. This is not related to the IP address or the network on which a interface is configured. You may use this RA to move resources away from a node, which has a faulty interface or prevent moving resources to such a node. This gives you independent control of the resources, without involving cluster intercommunication. But it requires your nodes to have more than one network interface.
The resource configuration requires a monitor operation, because the monitor does the main part of the work. In addition to the resource configuration, you need to configure some location constraints, based on a CIB attribute value. The name of the attribute value is configured in the 'name' option of this RA.
Example constraint configuration using crmsh location loc_connected_node my_resource_grp rule ="rule_loc_connected_node" -INF: ethmonitor eq 0
Example constraint configuration using pcs. Only allow 'my_resource' to run on nodes where eth0 ethernet device is available. pcs constraint location my_resource rule score=-INFINITY ethmonitor-eth0 ne 1
The ethmonitor works in 3 different modes to test the interface vitality. 1. call ip to see if the link status is up (if link is down -> error) 2. call ip and watch the RX counter (if packages come around in a certain time -> success) 3. call arping to check whether any of the IPs found in the local ARP cache answers an ARP REQUEST (one answer -> success) 4. return error
SUPPORTED PARAMETERS
interface
(unique, required, string, no default)
name
(unique, optional, string, no default)
multiplier
(optional, integer, default 1)
repeat_count
(optional, integer, default 5)
repeat_interval
(optional, integer, default 10)
pktcnt_timeout
(optional, integer, default 5)
arping_count
(optional, integer, default 1)
arping_timeout
(optional, integer, default 1)
arping_cache_entries
(optional, integer, default 5)
infiniband_device
(optional, string, no default)
infiniband_port
(optional, integer, no default)
link_status_only
(optional, boolean, default false)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
stop
status
monitor
meta-data
validate-all
EXAMPLE CRM SHELL
The following is an example configuration for a ethmonitor resource using the crm(8) shell:
primitive p_ethmonitor ocf:heartbeat:ethmonitor \
params \
interface=string \
op monitor depth="0" timeout="60s" interval="10s"
EXAMPLE PCS
The following is an example configuration for a ethmonitor resource using pcs(8)
pcs resource create p_ethmonitor ocf:heartbeat:ethmonitor \
interface=string \
op monitor OCF_CHECK_LEVEL="0" timeout="60s" interval="10s"
SEE ALSO
http://clusterlabs.org/
AUTHOR
ClusterLabs contributors (see the resource agent source for information about individual authors)
| 08/24/2025 | resource-agents 4.16.0-3+deb13 |