nrpe charm creates checks with _sub postfix, breaking compatibility with nrpe-external-master

Bug #1473205 reported by JuanJo Ciarlante
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
NRPE Charm
Fix Released
Undecided
Unassigned
nrpe (Juju Charms Collection)
Won't Fix
Undecided
Unassigned

Bug Description

nrpe charm creates standard checks like e.g.:
command[check_disk_root_sub]=/usr/lib/nagios/plugins/check_disk -u GB -w 25% -c 20% -K 5% -p /

while n-e-m does:
command[check_disk_root]=/usr/lib/nagios/plugins/check_disk -u GB -w 25% -c 20% -K 5% -p /

, thus breaking nrpe <-> n-e-m compatibility.

Related branches

Revision history for this message
David Ames (thedac) wrote :

I took a quick look at the previous nrpe version lp:charms/precise/nrpe and this behaviour did not exist. It appears to have been introduced with the re-write.

Liam can you comment on whether the '_sub' extension is required?

Revision history for this message
Chris Stratford (chris-gondolin) wrote :

Could the "_sub" extension at least be made optional?

Revision history for this message
Chris Stratford (chris-gondolin) wrote :
Revision history for this message
Barry Price (barryprice) wrote :

I see Chris's merge above made it into the charm, but with a default setting of "_sub", none of our expected default check names exist on a fresh deploy.

I've proposed this MP to remove that default suffix - those who need it can obviously still set it wherever needed. But I'd really like to know the reasoning behind setting this default behaviour in the first place, as I may be missing something important here.

https://code.launchpad.net/~barryprice/nrpe-charm/+git/nrpe-charm/+merge/316532

Haw Loeung (hloeung)
Changed in nrpe (Juju Charms Collection):
status: New → Confirmed
Revision history for this message
Liam Young (gnuoy) wrote :

Checks can come from subordinates or user config I believe the sub prefix was used to differentiate them. However, it looks like this is now optional via the sub_postfix config option

Haw Loeung (hloeung)
Changed in nrpe-charm:
status: New → Confirmed
Revision history for this message
Paul Gear (paulgear) wrote :

Marked won't fix for the charms collection branch, because it's deprecated in favour of lp:nrpe-charm

Changed in nrpe (Juju Charms Collection):
status: Confirmed → Won't Fix
Changed in nrpe-charm:
status: Confirmed → Triaged
Haw Loeung (hloeung)
Changed in nrpe-charm:
status: Triaged → Fix Released
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.