thias / puppet-nagios

Puppet Nagios module
Other
23 stars 71 forks source link

Could not find package nagios-plugins-udp #3

Closed LinguineCode closed 11 years ago

LinguineCode commented 11 years ago

I have this problem on CentOS 6.4

Error: Could not find package nagios-plugins-udp Error: /Stage[main]/Nagios::Server/Package[nagios-plugins-udp]/ensure: change from absent to present failed: Could not find package nagios-plugins-udp

thias commented 11 years ago

Since nagios related packages aren't part of RHEL, having them available depends entirely on you, and from which source will likely affect the way they're packaged (split into sub-packages, which directories they use, etc.).

So you need to make sure that you have an extra repository providing these packages available, and that the packages will play nice with my module. I have such packages available here if you need : ftp://dl.marmotte.net/rpms/redhat/el6/x86_64/

ghost commented 10 years ago

As of nagios-plugins-1.4.15, there is no longer a nagios-plugins-udp package. That functionality is now provided by the nagios-plugins-tcp package.

From the SPEC file used to build the packages on EPEL:

%package tcp
Summary: Nagios Plugin - check_tcp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Provides: nagios-plugins-ftp = %{version}-%{release}
Provides: nagios-plugins-imap = %{version}-%{release}
Provides: nagios-plugins-jabber = %{version}-%{release}
Provides: nagios-plugins-nntp = %{version}-%{release}
Provides: nagios-plugins-nntps = %{version}-%{release}
Provides: nagios-plugins-pop = %{version}-%{release}
Provides: nagios-plugins-simap = %{version}-%{release}
Provides: nagios-plugins-spop = %{version}-%{release}
Provides: nagios-plugins-ssmtp = %{version}-%{release}
Provides: nagios-plugins-udp = %{version}-%{release}
Provides: nagios-plugins-udp2 = %{version}-%{release}
Obsoletes: nagios-plugins-udp < 1.4.15-2

One option to fix this would be to use the nagios-plugins-all package instead of specifying individual nagios-plugins packages. Another option would be to add a class parameter called "manage_packages" or something similar, and allow users to install the required packages on their own.

thias commented 10 years ago

Ah! Now, that's another matter indeed...

I've removed that package from the server class now (the simplest fix), see f79d9b761c6fe4ff19b65595977643f6c4e032d5.

Thanks for the report and for the details!