๊ทธ๊ฒ์ ๋ฌด์์ ์๋ฏธํ๋ฉฐ ์ด๋ป๊ฒ ๊ณ ์น ์ ์์ต๋๊น?
Apr 4 14:14:36 kuchumovn collectdmon[30705]: Error: execvp(collectd) failed: No such file or directory
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
...
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: restarting collectd
Apr 4 14:14:36 kuchumovn collectdmon[30717]: Error: execvp(collectd) failed: No such file or directory
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Error: collectd is respawning too fast - disabled for 300 seconds
๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
/etc/init.d/collectd ํ์ผ์ ํธ์งํ๊ณ ๋ฐ์ด๋๋ฆฌ ๊ฒฝ๋ก๋ฅผ ์์ ํ๋ฉด ๋ฐ์ํฉ๋๋ค.
/usr/sbin/collectd -> /opt/collectd/sbin/collectd
/usr/sbin/collectdmon -> /opt/collectd/sbin/collectdmon
ํด๋น ํ์ผ์ ๊ฒฝ๋ก๋ฅผ ๋ณ๊ฒฝํ๋ ๋์ ๋ค์์ ์๋ํ์ต๋๋ค.
sudo ln --symbolic /opt/collectd/sbin/collectd /usr/sbin/collectd
sudo ln --symbolic /opt/collectd/sbin/collectdmon /usr/sbin/collectdmon
๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ ํจ๊ณผ๊ฐ ์์๋ค
ํ๋ฅญํ ์๋ฃจ์
, ์ ํํ ๊ฐ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค.
๋ง์ ๊ฐ์ฌํฉ๋๋ค.
์๋ณธ /etc/init.d/collectd ํ์ผ์ -c "$DAEMON"์ด ์๊ธฐ ๋๋ฌธ์ ์ข์ง ์์ต๋๋ค.
start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \
--exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -c "$DAEMON" -- -C "$CONFIGFILE" \
|| return 2
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
/etc/init.d/collectd ํ์ผ์ ํธ์งํ๊ณ ๋ฐ์ด๋๋ฆฌ ๊ฒฝ๋ก๋ฅผ ์์ ํ๋ฉด ๋ฐ์ํฉ๋๋ค.
ํด๋น ํ์ผ์ ๊ฒฝ๋ก๋ฅผ ๋ณ๊ฒฝํ๋ ๋์ ๋ค์์ ์๋ํ์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ ํจ๊ณผ๊ฐ ์์๋ค