memcached pid faylni topa olmayaptimi? CentOS 7 memcache pid-ni belgilaydi

CentOS 7 da memcached uchun Monit monitoring dasturini sozlashda , memcached pid faylini topa olmagan muammoga duch keldim...

memcached pid faylni topa olmayaptimi? CentOS 7 memcache pid-ni belgilaydi

Google-da topishimiz mumkin bo'lgan barcha konfiguratsiyalar ushbu qatorni o'z ichiga oladi:

check process memcached with pidfile /var/run/memcached/memcached.pid

lekin,/var/run Emas memcached.pid fayl, na /var/run/memcached papka.

tekshirildi /usr/lib/systemd/system/memcached.service

[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/memcached
ExecStart=/usr/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS
  • Shuning uchun, .pid fayliga yo'l yo'q.
  • Agar .pid faylisiz memcached tekshirilsa?
  • Bundan tashqari, bu .pid fayli boshqa joyda bo'lishi mumkinmi?

CentOS 7 memcache pid faylining joylashuv manzilini qanday belgilaydi?

Yechim Monit monitoringi konfiguratsiyasida ko'rsatgan memcache pid fayl manzilini ko'rsatishdir▼

check process memcached with pidfile /var/run/memcached/memcached.pid

Quyidagi memkeshlangan pid fayl manzili bilan almashtiring▼

check process memcached with match memcached

Memcached uchun bizning konfiguratsiyamiz:

check process memcached with match memcached
start program = "/usr/bin/systemctl start memcached"
stop program = "/usr/bin/systemctl stop memcached"
if failed host 127.0.0.1 port 11211 protocol MEMCACHE then restart
if cpu > 70% for 2 cycles then alert
if cpu > 98% for 5 cycles then restart
if 2 restarts within 3 cycles then timeout

Centos 7 Monit monitoring 5.14 ni o'rnatish usuli uchun quyidagi qo'llanmaga qarang▼

发表 评论

língíngíngíngíngíngíngíngíngíngíngíngíngín *

Top o'ting