Cookbooks
keepalived
documentation
Keepalived Misc Check

keepalived_misc_check

back to resource list (opens in a new tab)

The keepalived_misc_check resource can be used to configure a MISC_CHECK health checker.

More information available at https://www.keepalived.org/manpage.html (opens in a new tab)

Actions

  • :create
  • :delete

Properties

NameTypeDefaultDescriptionAllowed Values
misc_pathStringnilExternal script or program
misc_timeoutIntegernilOptional Script execution timeout
misc_dynamictrue, falsefalseSee Manpage.
warmupIntegernilOptional random delay to start the initial check for maximum N seconds
config_directoryString/etc/keepalived/checks.ddirectory for the config file to reside in
config_fileString::File.join(config_directory, "keepalived_misc_check__#{name.to_s.gsub(/\s+/, '-')}__.conf")full path to the config file
cookbookStringkeepalivedWhich cookbook to look in for the template
sourceStringmisc_check.conf.erbName of the template to render

Examples

keepalived_misc_check 'mysql' do
  misc_path '/opt/checks/misc/mysql.sh'
  misc_timeout 5
  warmup 10
  notifies :restart, 'service[keepalived]', :delayed
end