Error Could Not Stat Command File
Contents |
• All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/24114702/nagios-error-could-not-stat-command-file-usr-local-nagios-var-rw-nagios-c this site About Us Learn more about Stack Overflow the company Business Learn http://pissedoffadmins.com/nagios/nagios-error-could-not-stat-command-file-usrlocalnagiosvarrwnagios-cmd.html more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up could not Nagios : Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! up vote 0 down vote favorite I have installed Nagios on Centos 6.4. I am trying to enable notification service of SSH and http service of host. but while i commit it I got below error. Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, could not stat and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Specifiactions are as follows nagios - 4.0 centos - 6.4 user - nagios group - nagcmd linux centos nagios share|improve this question asked Jun 9 '14 at 6:23 Ronnie 1931217 Probably SELinux, you might want to check your logs. –Adrian Frühwirth Jun 9 '14 at 8:26 yaeh but i already disabled it. –Ronnie Jun 9 '14 at 9:08 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged linux centos nagios or ask your own question. asked 2 years ago viewed 521 times Related 0Nagios NDOUtils installation - can't load mysql.so error1External command error: /usr/local/bin/snmpget:
Comment if you encounter this little beauty: Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! try testing your selinux settings start with: setenforce 0 this will disable for now The following two tabs change content below.BioLatest Posts charlie rootVP of keeping it real / HNIC at pissedoffadmins.com I bring the cold coffee. Latest posts by charlie root (see all) Command line bar graph - September 29, 2016 tmux run command on idle - September 28, 2016 Fortiswitch 224d-poe screenshot - September 8, 2016 13 comments so far Add Your Comment Reply hakabesaid:2016.05.1520:30 It worked. Also you might wanna check the .cmd path in cgi.cfg. Reply Bradsaid:2015.11.0616:09 It is a nice check but how do you get it working with selinux? Reply miltonsaid:2015.10.1917:55 thanks , working Reply Nigelsaid:2014.10.2906:12 Fantastic - not sure if it was SELINUX=disable did or /etc/sysconfig/selinux and change it to SELINUX=permissive that did the trick. I am sure I needed to restart the Nagios Box - and it worked. Reply gunterzilesaid:2014.10.1605:26 Its work for me also Thank you very much guy BR Reply Amitsaid:2014.10.0806:55 Its work for me also Thank You Reply Sandersaid:2014.06.1906:38 Figured that this would solve it, thanks a lot! None of the other blogs mention selinux, only the permissions. Reply Rumpolesaid:2013.09.1021:23 Awesome, It worked! Reply amerthissaid:2013.07.3118:16 thanks, it works for me. Reply Karthiksaid:2013.04.0114:02 thanks Reply Scottsaid:2012.05.3013:52 Oh AND editing SELINUX=disable did not work for me, I had to go into /etc/sysconfig/selinux and change it to SELINUX=permissive Reply Scottsaid:2012.05.3013:38 Restart nagios after killing selinux Reply Sandeepsaid:2012.04.1901:57 Tried that. It’s working. Reply austinsaid:2011.06.0216:41 Tried that. didn't work. Your Comment Change mind? Click here to cancel. Name* : Email* : URI : Wordpress Hashcash needs javascript to work, but your browser has javascript disabled. Your comment will be queued in Akismet! Recent Posts Command line bar graph tmux run command on idle Fortiswitch 224d-poe screenshot Forgotten admin password and a Fortiswitch 224d-poe S