memcached pa ka jwenn dosye pid? CentOS 7 presize memcache pid

CentOS 7 bezwen konfigirasyon pou memcached Monit siveyansLè mwen pwograme, mwen rankontre pwoblèm nan ke memcached pa ka jwenn dosye a pid ...

memcached pa ka jwenn dosye pid? CentOS 7 presize memcache pid

Tout konfigirasyon nou ka jwenn nan google genyen liy sa a:

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

men,/var/run Okenn nan memcached.pid dosye, ni /var/run/memcached katab.

tcheke /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
  • Se poutèt sa, pa gen okenn chemen nan dosye a .pid.
  • Si tcheke memcached san yon fichye .pid?
  • Epitou, èske dosye .pid sa a ka nan yon lòt kote?

Ki jan CentOS 7 presize adrès kote dosye memcache pid la?

Solisyon an se mete adrès dosye memcache pid ou espesifye nan konfigirasyon siveyans Monit ▼

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

Ranplase ak adrès dosye memcached pid sa a▼

check process memcached with match memcached

Konfigirasyon nou an pou memcached:

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

Pou metòd enstalasyon Centos 7 Monit monitoring 5.14, tanpri al gade leson patikilye sa a▼

kòmantè

Adrès imel ou p ap pibliye. Jaden obligatwa yo te itilize * Mete etikèt sou

Ki gen tèt