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
Cant fix performance data with new metric added
-
- Posts: 17
- Joined: Tue Aug 21, 2018 1:40 pm
-
- Posts: 235
- Joined: Wed Feb 05, 2020 2:50 pm
Re: Cant fix performance data with new metric added
Does this test of the RRD module work for you?
perl -MRRDs -le 'print q(ok!)'
--Jeffrey
perl -MRRDs -le 'print q(ok!)'
--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 17
- Joined: Tue Aug 21, 2018 1:40 pm
Re: Cant fix performance data with new metric added
yep
$ perl -MRRDs -le 'print q(ok!)'
ok!
$ perl -MRRDs -le 'print q(ok!)'
ok!
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Cant fix performance data with new metric added
What is the output of this one?
Code: Select all
find / -name Simple.pm
-
- Posts: 17
- Joined: Tue Aug 21, 2018 1:40 pm
Re: Cant fix performance data with new metric added
/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
/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
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Cant fix performance data with new metric added
Try this:
Code: Select all
cpan -i RRD::Simple