Bug 1009425 - pnp4nagios dependent on nagios
pnp4nagios dependent on nagios
Status: NEW
Product: Fedora EPEL
Classification: Fedora
Component: pnp4nagios (Show other bugs)
el6
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Jan ONDREJ
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-18 08:16 EDT by Franky Van Liedekerke
Modified: 2014-09-02 13:01 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-09-02 09:16:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Franky Van Liedekerke 2013-09-18 08:16:27 EDT
Description of problem:

When trying to install the latest pnp4nagios rpm from EPEL onto a centos server, I saw it was requiring nagios to be installed. Since pnp4nagios can run with icinga as well, I think this requirement should be removed.


Version-Release number of selected component (if applicable):
0.6.20 and 0.6.21


Additional info:
I checked the SPEC file for pnp4nagios and have come up with some improvements:
- remove the line "Requires: nagios"
- make it possible to give a username and groupname to be used when building the RPM from the spec file. The advantage is that then people can use "icinga/icinga" as user/group as well. The extra configure options for these 2 are "--with-nagios-user" and "--with-nagios-group"
- remove the extra subpath "nagios/html" everywhere: pnp4nagios stands on it's own, it has no need to be installed inside a nagios subtree
- also add a init-file for pnp_gearman_worker (a basic init script is included, but it's not redhat/fedora/centos compliant)
Comment 1 Jan ONDREJ 2014-09-02 09:16:57 EDT
Icinga is not a part of Fedora/EPEL, so I think there is no need to make these changes. Configuring pnp4nagios without nagios dependency should be difficult for most users.

I don't think, that there are many users, which can use feature of recompilation of source packages with icinga support.

Closing this bug, but please reopen it, if:
- you can provide patches for pnp4nagios to help usage with icinga
- icinga will be included in Fedora/EPEL repositories
Comment 2 Franky Van Liedekerke 2014-09-02 10:04:44 EDT
I guess I didn't make my case strong enough. I took icinga as an example, but in fact pnp4nagios can even be installed on a different server than nagios and have nagios forward the performance data via gearman to pnp4nagios (pnp4nagios fully supports gearman). So needing to install nagios there also is a bit overkill then.

If wanted, let me know and I can provide a patch for the spec file that at least makes it easier:
- remove the line "Requires: nagios"
- remove the extra subpath "nagios/html" everywhere: pnp4nagios stands on it's own, it has no need to be installed inside a nagios subtree
- also add a init-file for pnp_gearman_worker (a basic init script is included, but it's not redhat/fedora/centos compliant)
Comment 3 Jan ONDREJ 2014-09-02 13:01:26 EDT
OK, I can review your patch, but still I don't think removing of nagios dependency is a good solution for most users.

pnp4nagios usage wihout nagios is a bit complicated. I can't imagine, how to use it. But it's possible to make it configurable in spec file.

Note You need to log in before you can comment on or make changes to this bug.