Checks shipped by nrpe charm not exported

Bug #1792841 reported by Haw Loeung
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
NRPE Charm
Won't Fix
Low
Unassigned

Bug Description

NRPE charm checks, for example check_conntrack, are not exported in /var/lib/nagios/export and are not monitored by default.

We should look into fixing this.

Tags: bseng-479
Paul Gear (paulgear)
Changed in nrpe-charm:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Diko Parvanov (dparv) wrote :

The requested functionality is not a charmed way of connecting nagios and nrpe units.

NRPE units should do assumptions on the nagios unit (for example check_nrpe executable path) and duplicate command definitions for each check.

Changed in nrpe-charm:
status: Confirmed → Won't Fix
assignee: nobody → Diko Parvanov (dparv)
Revision history for this message
Haw Loeung (hloeung) wrote :

What do you mean? Any charms using charmhelper.contrib.charmsupport.nrpe drops files in /var/lib/nagios/export for a nagios host to collect.

The file there has nothing about path of check_nrpe but rather looks like this:

| #---------------------------------------------------
| # This file is Juju managed
| #---------------------------------------------------
| define service {
| use active-service
| host_name host
| service_description Verify canonical-livepatch is working
| check_command check_nrpe!check_canonical-livepatch
| servicegroups livepatch
| }

See charmhelpers code:

https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/charmsupport/nrpe.py#L129
https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/charmsupport/nrpe.py#L215

Changed in nrpe-charm:
status: Won't Fix → Confirmed
Revision history for this message
Xav Paice (xavpaice) wrote :

The functionality referred to here is the 'other' way of getting NRPE checks to Nagios, via rsync rather than relation. Although it's an older method, there are use cases still for it, and we need to continue to support it.

Next step is to review the behavior and determine which checks are missing from /var/lib/nagios/export, and figure out why.

Changed in charm-nrpe:
assignee: Diko Parvanov (dparv) → nobody
status: Confirmed → Triaged
Eric Chen (eric-chen)
tags: added: bseng-479
Revision history for this message
Andrea Ieri (aieri) wrote :

Reprioritizing this bug to low given that the COS Lite is now in GA

Changed in charm-nrpe:
importance: High → Low
Eric Chen (eric-chen)
Changed in charm-nrpe:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.