memcached-ek ezin du pid fitxategia aurkitu? CentOS 7-k memcache pid zehazten du

CentOS 7 -n memcached- erako Monit monitorizazio programa konfiguratzerakoan , arazo bat izan dut: memcached-ek ezin izan du pid fitxategia aurkitu...

memcached-ek ezin du pid fitxategia aurkitu? CentOS 7-k memcache pid zehazten du

Googlen aurki ditzakegun konfigurazio guztiek lerro hau dute:

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

baina,/var/run Inor ez memcached.pid fitxategia, ezta /var/run/memcached karpeta.

egiaztatuta /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
  • Beraz, ez dago .pid fitxategirako biderik.
  • Memcached .pid fitxategirik gabe egiaztatzen baduzu?
  • Gainera, .pid fitxategi hau beste toki batean egon al daiteke?

Nola zehazten du CentOS 7-k memcache pid fitxategiaren kokapena?

Irtenbidea Monit monitoring konfigurazioan zehaztu duzun memcache pid fitxategiaren helbidea zehaztea da

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

Ordeztu hurrengo memcached pid▼ fitxategiaren helbidearekin

check process memcached with match memcached

Memcached-erako gure konfigurazioa:

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 instalatzeko metodoa ezagutzeko, ikusi hurrengo tutorial ▼

发表 评论

您的邮箱地址不会被公开。必填项已用*标注

Igo korrituko