cp: cannot stat `command.cfg': No such file or directory

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kaushalshriyan
Posts: 124
Joined: Fri May 22, 2015 7:12 am

cp: cannot stat `command.cfg': No such file or directory

Post by kaushalshriyan »

Hi,

I am facing the issue cp: cannot stat `command.cfg': No such file or directory when i run rpmbuild-ba nagios-plugins.spec -> http://sprunge.us/eiKe
cat nagios-plugins.spec -> http://sprunge.us/cTCG
cat /etc/redhat-release
CentOS release 6.7 (Final)
Nagios plugin version -> nagios-plugins-2.1.2.tar.gz

Any help will be highly appreciable.

Regards,

Kaushal
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: cp: cannot stat `command.cfg': No such file or directory

Post by bwallace »

This thread looks related:
https://support.nagios.com/forum/viewto ... 35&t=27761
Have you attempted to run through the steps mentioned there?
Be sure to check out the Knowledgebase for helpful articles and solutions!
jfrickson

Re: cp: cannot stat `command.cfg': No such file or directory

Post by jfrickson »

The file 'command.cfg' has not been in plugins since version 1.5 back in 2013.

I've fixed the spec file in the 'maint' branch. The fix will be in the next release.
Locked