Page 1 of 1

Cant fix performance data with new metric added

Posted: Thu Oct 07, 2021 9:04 am
by rb8telitcom
I found this KB article : https://support.nagios.com/kb/article.php?id=149
it describes the issue I am having, we are monitoring disk space, when a new mount point is added , the gage shows up but all graphing stops.

the reported fix dose not work though, when I run the script, I get the error:
Can't locate RRD/Simple.pm in @INC (@INC contains: /usr/lib64/perl5/vendor_perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)

even though the RRD::Simple package is installed in the path:
# find / -name RRDs.pm
/usr/lib64/perl5/vendor_perl/RRDs.pm
# rpm -q rrdtool-perl
rrdtool-perl-1.4.9-1.el7.x86_64

Thanks

Re: Cant fix performance data with new metric added

Posted: Fri Oct 08, 2021 10:48 am
by jdunitz
Does this test of the RRD module work for you?

perl -MRRDs -le 'print q(ok!)'


--Jeffrey

Re: Cant fix performance data with new metric added

Posted: Fri Oct 08, 2021 3:24 pm
by rb8telitcom
yep
$ perl -MRRDs -le 'print q(ok!)'
ok!

Re: Cant fix performance data with new metric added

Posted: Mon Oct 11, 2021 5:40 pm
by ssax
What is the output of this one?

Code: Select all

find / -name Simple.pm

Re: Cant fix performance data with new metric added

Posted: Wed Oct 13, 2021 4:18 pm
by rb8telitcom
/usr/share/perl5/vendor_perl/Pod/Simple.pm
/usr/share/perl5/vendor_perl/XML/Simple.pm
/usr/share/perl5/vendor_perl/Test/Simple.pm
/usr/share/perl5/vendor_perl/Error/Simple.pm
/usr/share/perl5/Filter/Simple.pm
/usr/share/perl5/LWP/Simple.pm

Re: Cant fix performance data with new metric added

Posted: Thu Oct 14, 2021 3:38 pm
by ssax
Try this:

Code: Select all

cpan -i RRD::Simple