`
brucectl
  • 浏览: 173381 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Nagios external commands not working

阅读更多
Problem:
When external commands are enabled, and accessing a page that requieres to write 'nagios.cmd', it displays the following error:

Error: Could not stat() command file '/var/lib/nagios2/rw/nagios.cmd'!

The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.

An error occurred while attempting to commit your command for processing.

Solution:
Set correct permissions to directories where 'nagios.cmd' file gets created.

Procedure:
# /etc/init.d/nagios2 stop

# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios2/rw

# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios2
/etc/nagios2

# /etc/init.d/nagios2 start
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics