• Skip to primary navigation
  • Skip to main content
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!

November 26, 2013 by Sharad Chhetri 1 Comment

While installing the Nagios 4.0.2 from tarball I got this issue Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!. The problem was clearly stating about permission issue.Hence we have to only modify the permission and restart the nagios service.
The problem was occurring when I was clicking on Re-schedule the next check of this service actually it is related to commands which can be run from Nagios Dashboard.

nagios

Do the following steps:


chmod 666 /usr/local/nagios/var/rw/nagios.cmd
chown nagios.nagcmd /usr/local/nagios/var/rw 
chmod u+rwx /usr/local/nagios/var/rw
chmod g+rwx /usr/local/nagios/var/rw  
chmod g+s /usr/local/nagios/var/rw 

Now restart the nagios

/etc/init.d/nagios restart

After resolving the issue,below given is screenshot reference

nagios

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!
  2. NOTICE: nagios.cmd file not found. Please specify the location of this file in your /etc/vshell.conf file
  3. Can’t load ‘/usr/local/lib64/perl5/auto/nginx/nginx.so’
  4. VirtualBox Error: Failed to open/create the internal network
  5. /usr/bin/env: node: No such file or directory
  6. hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directory
  7. make all command error while installing nagios
  8. CHECK_NRPE: Error – Could not complete SSL handshake nagios
  9. Ansible /bin/sh: 1: /usr/bin/python: not found
  10. dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Filed Under: Linux, Monitoring Server Tagged With: Nagios

Reader Interactions

Comments

  1. Douglas says

    October 2, 2015 at 8:25 pm

    Excellent post, helped me a lot.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy