Why cron daemon sends error message '/var/run/pcp/pmlogger_daily.pid: No such file or directory' to '/var/mail/pcp' in RHEL 7?
Issue
- Cron daemon throws error message /var/run/pcp/pmlogger_daily.pid: No such file or directory to
/var/mail/pcp. - These message generated by
/etc/cron.d/pcp-pmloggerscript. /etc/cron.d/pcp-pmloggershould not log errors in /var/mail/pcp as pcp service is not running on system.- Below error message sent by cron service.
/usr/libexec/pcp/bin/pmlogger_daily: line 365: /var/run/pcp/pmlogger_daily.pid: No such file or directory
pcpmails/var/mail/pcpgive below errors.
mkdir: cannot create directory '/var/run/pcp': Permission denied
chown: cannot access '/var/run/pcp': No such file or directory
/usr/libexec/pcp/bin/pmlogger_daily: line 393: /var/run/pcp/pmlogger_daily.pid: No such file or directory
Environment
- Red Hat Enterprise Linux 7.0
- pcp-3.8.10-8.el7.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
