Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1100037

Summary: Packstack: monitoring-* vs nagios-*
Product: Red Hat OpenStack Reporter: Lon Hohberger <lhh>
Component: openstack-packstackAssignee: Gilles Dubreuil <gdubreui>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: urgent    
Version: 5.0 (RHEL 6)CC: acathrow, aortega, apevec, breeler, derekh, dnavale, gdubreui, lbezdick, lhh, mmagr, ohadlevy, rrubins, sclewis, s, yeylon
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: 5.0 (RHEL 6)Flags: sclewis: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2014.1.1-0.19.dev1102.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-28 18:58:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
One Line fix none

Description Lon Hohberger 2014-05-21 21:01:01 UTC
Description of problem:

On RHEL OSP 5 beta, nagios-server.pp looks for nagios-plugins-ping, which doesn't exist.

It also tries to use /usr/lib64/nagios/plugins/check_nrpe, which should be /usr/lib64/monitoring/plugins/check_nrpe.


e.g.:

-package{['nagios', 'nagios-plugins-nrpe', 'nagios-plugins-ping']:
+package{['nagios', 'nagios-plugins-nrpe', 'monitoring-plugins-ping']:

-        command_line => '/usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$',
+        command_line => '/usr/lib64/monitoring/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$',


Version-Release number of selected component (if applicable): openstack-packstack-2014.1.1-0.12.dev1068.el6ost.noarch

Comment 1 Lon Hohberger 2014-05-21 21:07:52 UTC
Also in packstack/plugins/nagios_910.py, the paths should be /usr/lib64/monitoring 'def _copy_script(**kwargs)'.

Comment 2 Lon Hohberger 2014-05-21 21:08:24 UTC
Note that this affects both RHEL7 and RHEL6 variants.

Comment 3 Lon Hohberger 2014-05-21 21:21:13 UTC
Changing these causes installation to operate correctly with 'packstack --allinone'.

Comment 4 Gilles Dubreuil 2014-05-22 13:02:58 UTC
(In reply to Lon Hohberger from comment #2)
> Note that this affects both RHEL7 and RHEL6 variants.

RHOS5 for both RHEL6 and RHEL7 are now using the monitoring prefix instead of nagios.

So do we need to handle the condition for the older cases (RHOS3/4)? 
I'm assuming we don't unless its gets backported

Comment 5 Lon Hohberger 2014-05-22 20:38:31 UTC
There are no plans to update to monitoring-plugins in older releases.

Comment 6 Gilles Dubreuil 2014-05-23 02:53:35 UTC
Sorry, I meant, it's okay as long as the change doesn't get backported otherwise we have to add a platform test. I suppose there is no reason such cheery pick would happen.

Comment 8 Gilles Dubreuil 2014-05-23 06:04:54 UTC
Lon,

While digging, I found disparities between RHOS5 RHEL6 and RHOS5 RHEL7:

Latest corresponding repos are showing:

RHEL6:
monitoring-plugins-ping-1.5-5.el6.x86_64.rpm   
nagios-3.5.1-4.el6.x86_64.rpm                                      
nagios-plugins-nrpe-2.15-3.el6.x86_64.rpm  

versus 

RHEL7:
monitoring-plugins-nrpe-2.15-2.el7.x86_64.rpm   
monitoring-plugins-ping-1.5-5.el7.x86_64.rpm   
nagios-3.5.1-4.el7.x86_64.rpm 

Consolidating the rpm makes more sense (at least for me) than having to handle such cases in packstack.

Thanks,
Gilles

Comment 9 Lon Hohberger 2014-05-23 17:17:25 UTC
Sorry, it should be nagios-plugins-nrpe.

The change to monitoring-plugins-nrpe was premature.  I did a build revert the change but apparently forgot to put it in the repo.  I fixed this, and will have the repo updated.

Comment 13 Lon Hohberger 2014-05-23 17:38:36 UTC
The change comes from:

https://www.monitoring-plugins.org/

However, NRPE is Nagios Remote Plugin Executor, so I incorrectly renamed the sub-package.

If you think it's preferred, I can change the path for nagios-plugins-nrpe back to /usr/lib64/nagios/plugins.  It will require some other specfile changes - since there's no nagios-plugins any more.

Comment 14 Lon Hohberger 2014-05-23 17:39:49 UTC
However, monitoring-plugins-ping and /usr/lib64/monitoring/plugins/ is the correct location for that binary.

Comment 15 Lon Hohberger 2014-05-23 17:43:17 UTC
My original goal was to change nagios-plugins-nrpe -> monitoring-plugins-nrpe.  So, I can do that, too.

Comment 16 Gilles Dubreuil 2014-05-26 02:11:54 UTC
(In reply to Lon Hohberger from comment #13)
> The change comes from:
> 
> https://www.monitoring-plugins.org/
> 

It makes perfect sense in the context of the monitoring plugin project!
Very interesting evolution of the Nagios plugins making it out through the main door. Thank you for the pointer!

> However, NRPE is Nagios Remote Plugin Executor, so I incorrectly renamed the
> sub-package.
> 
> If you think it's preferred, I can change the path for nagios-plugins-nrpe
> back to /usr/lib64/nagios/plugins.  It will require some other specfile
> changes - since there's no nagios-plugins any more.

I think (I might be wrong!) keeping separated namespaces would be more beneficial on the long run. With such approach, NRPE plugin should be living into nagios directory (/usr/lib64/nagios).

Unfortunately that also means nagios-common has to be separated in two, and a monitoring-common RPM to be created to split /usr/lib64/{nagios,monitoring}


(In reply to Lon Hohberger from comment #15)
> My original goal was to change nagios-plugins-nrpe ->
> monitoring-plugins-nrpe.  So, I can do that, too.

NRPE is structurally a Nagios sub packaged, being Nagios specific events broker/agent. And it's not part of the monitoring-plugins.org list and not likely to become part of it. 

Although it doesn't have to be called plugin, for instance, on Fedora, Shinken has shinken-broker. That said it might be too disruptive for now to change it.

Comment 17 Lon Hohberger 2014-05-27 12:28:06 UTC
Okay - I'll change it back to match fedora.

Note that only nrpe will use /usr/lib64/nagios.

Ping will use /usr/lib64/monitoring

Go ahead and update packstack and I'll test it ASAP.

Comment 20 Lon Hohberger 2014-05-27 15:20:52 UTC
Actually, it doesn't even look like you deploy check_ping in the nagios config.

So it might only be the top install line that needs to be changed at this point.

Comment 22 Lon Hohberger 2014-05-27 16:28:00 UTC
Installation passes with the attached patch.

Comment 23 Lon Hohberger 2014-05-27 16:29:38 UTC
Created attachment 899582 [details]
One Line fix

Comment 24 Lon Hohberger 2014-05-27 16:32:13 UTC
I also tested that the nagios bits work (e.g. visited nagios pages).  

We don't actually deploy the ping check from packstack, so this change should be sufficient.

Comment 29 Gilles Dubreuil 2014-05-29 04:42:53 UTC
Hi Lon,

Ok so the patch is applied only at RPM build time as temporary workaround.

Also, since rhelosp5 for rhel6 and rhel7 are now using monitoring prefix for ping and nagios for nrpe, I've pushed the following patch for packstack.


https://review.openstack.org/#/c/96347/

Comment 30 Gilles Dubreuil 2014-05-29 14:01:19 UTC
Martin said there is a step back because of conflicts with EPEL7 using nagios-plugins.

Sam, 

If Fedora is going on the monitoring-plugins road then shouldn't EPEL7 follow to avoid troubles later?

Thanks

Comment 33 Sam Kottler 2014-06-18 08:39:40 UTC
(In reply to Gilles Dubreuil from comment #30)
> Martin said there is a step back because of conflicts with EPEL7 using
> nagios-plugins.
> 
> Sam, 
> 
> If Fedora is going on the monitoring-plugins road then shouldn't EPEL7
> follow to avoid troubles later?

Sorry, I'm missing some context here since there are private comments and such. The route Fedora + EPEL 7 are taking is that will both be taking is to have both available, but renaming nagios-plugins to nagios-enterprises-plugins with monitoring-plugins being provided by monitoring-plugins.

> 
> Thanks

Comment 34 Gilles Dubreuil 2014-06-18 12:37:38 UTC
(In reply to Sam Kottler from comment #33)
> Sorry, I'm missing some context here since there are private comments and
> such. 

Hi Sam,

The private comments are basically about our internal patching process for RPMs as workarounds.


> The route Fedora + EPEL 7 are taking is that will both be taking is to
> have both available, but renaming nagios-plugins to
> nagios-enterprises-plugins with monitoring-plugins being provided by
> monitoring-plugins.

Could you please clarify?

Comment 35 Sam Kottler 2014-06-20 02:10:58 UTC
(In reply to Gilles Dubreuil from comment #34)
> (In reply to Sam Kottler from comment #33)
> > Sorry, I'm missing some context here since there are private comments and
> > such. 
> 
> Hi Sam,
> 
> The private comments are basically about our internal patching process for
> RPMs as workarounds.
> 
> 
> > The route Fedora + EPEL 7 are taking is that will both be taking is to
> > have both available, but renaming nagios-plugins to
> > nagios-enterprises-plugins with monitoring-plugins being provided by
> > monitoring-plugins.
> 
> Could you please clarify?

Sorry, that last bit was a typo:

The route Fedora + EPEL 7 are taking is that both will be available. nagios-plugins will be renamed to nagios-enterprises-plugins and monitoring-plugins will then provide nagios-plugins. Therefore, users will get upgraded toward the path of the software with the same maintainers if they don't actively choose to use the nagios enterprises version.

Comment 36 Gilles Dubreuil 2014-06-23 05:25:47 UTC
(In reply to Sam Kottler from comment #35)

Makes sense. Thanks for the follow up.

Comment 37 Ami Jeain 2014-07-15 08:38:53 UTC
performed a regression test on nagios using:
# rpm -qa |grep nagios
nagios-plugins-2.0.1-1.2.el6.x86_64
nagios-3.5.1-6.el6.x86_64
nagios-common-3.5.1-6.el6.x86_64
nagios-plugins-ping-2.0.1-1.2.el6.x86_64
nagios-plugins-nrpe-2.15-4.el6.x86_64

on top of:
# rpm -qa |grep packstack
openstack-packstack-2014.1.1-0.34.dev1219.el6ost.noarch

Comment 41 Bruce Reeler 2014-07-24 05:16:04 UTC
Based on comment 40 setting flag requires_doc_text to "-".

Comment 44 errata-xmlrpc 2014-07-28 18:58:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0950.html