issues relating to nagios and lack of nrpe on nagios unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nagios Charm |
Won't Fix
|
Medium
|
Unassigned | ||
Rsyslog Forwarder HA Charm |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Stable charms
Bionic
When relating rsyslog-
---
2020-08-05 13:23:57 ERROR juju.worker.
2020-08-05 13:25:19 DEBUG config-changed Traceback (most recent call last):
2020-08-05 13:25:19 DEBUG config-changed File "/var/lib/
2020-08-05 13:25:19 DEBUG config-changed hooks.execute(
2020-08-05 13:25:19 DEBUG config-changed File "/var/lib/
2020-08-05 13:25:19 DEBUG config-changed self._hooks[
2020-08-05 13:25:19 DEBUG config-changed File "/var/lib/
2020-08-05 13:25:19 DEBUG config-changed update_
2020-08-05 13:25:19 DEBUG config-changed File "/var/lib/
2020-08-05 13:25:19 DEBUG config-changed nrpe_compat.write()
2020-08-05 13:25:19 DEBUG config-changed File "/var/lib/
2020-08-05 13:25:19 DEBUG config-changed self.nagios_
2020-08-05 13:25:19 DEBUG config-changed File "/var/lib/
2020-08-05 13:25:19 DEBUG config-changed with open(nrpe_
2020-08-05 13:25:19 DEBUG config-changed IOError: [Errno 2] No such file or directory: '/etc/nagios/
---
It appears the r-f-ha is expecting nrpe to be here. from the code:
---
@hooks.
@hooks.
def update_
nrpe_compat = nrpe.NRPE()
nrpe_
)
nrpe_
---
This works on all other units since we have nrpe-{host|
running 'mkdir -p /etc/nagios/nrpe.d' on the nagios unit where r-f-ha is at resolves the issue.
Yeah, seems like there's definitely an issue here.