CentOS 7 -இல் memcached- க்கான Monit கண்காணிப்பு நிரலை உள்ளமைக்கும்போது , memcached-ஆல் pid கோப்பைக் கண்டுபிடிக்க முடியவில்லை என்ற சிக்கலை நான் எதிர்கொண்டேன்...

கூகிளிங்கில் நாம் காணக்கூடிய அனைத்து கட்டமைப்புகளும் இந்த வரியைக் கொண்டிருக்கின்றன:
check process memcached with pidfile /var/run/memcached/memcached.pid
ஆனாலும்,/var/run உள் இல்லை memcached.pid கோப்பு, அல்லது /var/run/memcached கோப்புறை.
சரிபார்க்கப்பட்டது /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
- எனவே, .pid கோப்புக்கு பாதை இல்லை.
- .pid கோப்பு இல்லாமல் memcached என்பதைச் சரிபார்த்தால்?
- மேலும், இந்த .pid கோப்பு வேறொரு இடத்தில் இருக்க முடியுமா?
Memcache pid கோப்பின் இருப்பிட முகவரியை CentOS 7 எவ்வாறு குறிப்பிடுகிறது?
Monit கண்காணிப்பு உள்ளமைவில் நீங்கள் குறிப்பிட்ட memcache pid கோப்பு முகவரியைக் குறிப்பிடுவதே தீர்வாகும்▼
check process memcached with pidfile /var/run/memcached/memcached.pid
பின்வரும் memcached pid▼ கோப்பு முகவரியுடன் மாற்றவும்
check process memcached with match memcached
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
Centos 7 Monit கண்காணிப்பு 5.14 இன் நிறுவல் முறைக்கு, பின்வரும் டுடோரியலைப் பார்க்கவும்▼
சென் வெய்லியாங்கின் வலைப்பதிவில் ( https://www.chenweiliang.com/ ) பகிரப்பட்ட "memcached cannot find the pid file? Specifying the memcache pid in CentOS 7" என்ற கட்டுரை உங்களுக்குப் பயனுள்ளதாக இருக்கும் என நம்புகிறேன்.
இந்தக் கட்டுரையின் இணைப்பைத் தாராளமாகப் பகிரவும்: https://www.chenweiliang.com/cwl-26685.html

