Upgrade to Pro — share decks privately, control downloads, hide ads and more …

tos_command

 tos_command

Geeks Who Drink in Fukuoka -モニタリング勉強会 Edition-

Kazuhiko Yamashita

October 30, 2017
Tweet

More Decks by Kazuhiko Yamashita

Other Decks in Technology

Transcript

  1. ؀ڥม਺Ͱར༻ऀଆͰ৚݅Λ෼ذ [plugin.checks.log] command = "check-log -f /path/to/file -p PATTERN" action

    = { command = "bash -c '[ \"$MACKEREL_STATUS\" != \"OK\" ]' && ruby /path/ to/something.rb", user = "someone" } ."$,&3&-@45"564ʹ͸0, 8"3/*/( $3*5*$"- 6/,/08/ͷ͍ͣΕ͔͕ೖΔ ˞ىಈ࣌͸ۭനɺ͞Βʹɺ΋͏ੈ୅લͷ."$,&3&-@13&7*064@45"564΋औಘՄೳ
  2. UPT IUUQTHJUIVCDPNQZBNBUPT [plugin.checks.log] command = "check-log -f /path/to/file -p PATTERN"

    action = { command = “/bin/tos -no ‘ruby /path/to/ something.rb’", user = "someone" }
  3. UPT $ tos -h Usage of tos: -c string CRITICAL(Short)

    -no string NotOK(Short) -o string OK(Short) -u string Unknown(Short) -w string WARNING(Short)