开发者

Monarch/Groundwork won't update the hosts.cfg in Nagios

开发者 https://www.devze.com 2023-03-04 03:01 出处:网络
Given that Monarch/Groundwork is made to provide a开发者_JS百科 GUI interface to Nagios, this should be a simple question, but I\'m a little stuck.

Given that Monarch/Groundwork is made to provide a开发者_JS百科 GUI interface to Nagios, this should be a simple question, but I'm a little stuck.

How can I add a host to nagios in Groundwork? According to my GW tab, my new host is configured. If I look at the nagios hosts tab, I see that it's not present.

If I look in /usr/local/groundwork/nagios/etc/hosts.cfg, I see that the file clearly hasn't been updated. Based off the text at the top of the file, this would normally be updated by monarch.cgi.

If I add the host to the hosts.cfg file, then restart nagios, it correctly appears, but now I have to config the entire host manually, which is the entire reason to have GW or Monarch.

So, the question is, how do I get monarch to update my nagios config?


I'd first check permissions, can you show the output of these? ls -lla hosts.cfg groups

You could just try adding the GW user to whatever group the hosts.cfg file belongs to: useradd -G

And make sure the file is group-editable: chmod g+rw hosts.cfg

0

精彩评论

暂无评论...
验证码 换一张
取 消