I'm trying to set up opsview (Nagios) on a CentOS 5 server running perl 5.8.9
When I try to start it, it can't find RRDs.pm
. Turns out, neither can I. It's not on CPAN and I've been unable to determine what package would provide it. yum provides "*/RRDs.pm"
doesn't return any results.
Edit: so we've established that it should come with the perl-rrdtool
package, but unfortunately hasn't. Where do I go from here?
Running the following fixed this issue for me on RHEL6.
RRDs.pm should be provided by perl-rrdtool, but you indicate that you've already installed this program.
Your script can't find RRDs.pm, but RRDs.pm may still be installed on your system, just not in a place where PERL expects to find it.
What do one of these commands tell you?
(You might need to update the
locate
database first, with/etc/cron.daily/mlocate
or a similar cron command)Or:
You have to install rrdtool, CentOS doesn't provide this package by default but you can use Dag Wiers' repository
insert the following lines:
and :wq (save) the file. After this, just install the package via yum.
One of the configured repositories failed (Dag RPM Repository), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:
Contact the upstream for the repository and get them to fix the problem.
Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work).
Disable the repository, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage:
Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: