Update in script not visible in performance graph
Update in script not visible in performance graph
Hi all,
Basically I have a script with the following output:
“Total CCS_HPLMN_MO_TMNL OK - 4682 | CCS_HPLMN_MO_TMNL=4682; “
The performance graph in Nagios XI works perfectly graphing the part "CCS_HPLMN_MO_TMNL=4682;"
I then modified the script to give us more outputs in the graph as follows:
“Total CCS_HPLMN_MO_TMNL OK - 4682 | CCS_HPLMN_MO_TMNL=4682; High=5446; Low=3630;”
I expected that the performance graph would have changed a few minutes after, but it was still stuck to the first one. The only thing that was updated were the gauges.
It seems the only way was to completely remove the service and add it again or else rename it.
Is there another way of making this work without losing the performance graph history?
Rgds,
Basically I have a script with the following output:
“Total CCS_HPLMN_MO_TMNL OK - 4682 | CCS_HPLMN_MO_TMNL=4682; “
The performance graph in Nagios XI works perfectly graphing the part "CCS_HPLMN_MO_TMNL=4682;"
I then modified the script to give us more outputs in the graph as follows:
“Total CCS_HPLMN_MO_TMNL OK - 4682 | CCS_HPLMN_MO_TMNL=4682; High=5446; Low=3630;”
I expected that the performance graph would have changed a few minutes after, but it was still stuck to the first one. The only thing that was updated were the gauges.
It seems the only way was to completely remove the service and add it again or else rename it.
Is there another way of making this work without losing the performance graph history?
Rgds,
Re: Update in script not visible in performance graph
The following KB article is a procedure you can use to update performance graphs when the the performance data points are changed.
Code: Select all
https://support.nagios.com/kb/article/nagios-xi-icmp-and-ping-checks-stopped-graphing.htmlBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Update in script not visible in performance graph
Hi
Thanks. The article is correct, but it seems there are issues in installing the perl RRD:Simple package. I tried also with cpan but am running into issues. The installation is on a CentOS release 6.9.
RRD tool has been installed successfully
Thanks. The article is correct, but it seems there are issues in installing the perl RRD:Simple package. I tried also with cpan
Code: Select all
cpan YAML cpan RRD::SimpleRRD tool has been installed successfully
Re: Update in script not visible in performance graph
What is the output when you run the following commands?
Code: Select all
yum install perl-RRD-Simple -y
cd /tmp
./fix_ds_quantity.sh -d /usr/local/nagios/share/perfdata/Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Update in script not visible in performance graph
Hi,
There's nothing available for RRD:Simple:
Then still tried to run it (or just to see the output)
As you can see Simple pm is not found, although it seems that it still tried to fix the datasources. However there were no changes, i.e graph did not update with the additional performance data
There's nothing available for RRD:Simple:
Code: Select all
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: epel.besthosting.ua
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
[b]Nothing to do[/b]
Code: Select all
This script will add datasources to RRDs. It may require
up to 3x the current disk space used by the rrds that need
updated. Please make sure you have enough free space to
run this script.
This makes changes to your RRDs, so DOUBLE CHECK that you
have made a recent backup of the RRDs.
This script can take a long time to run (1h+), so it may
be best to run it during maintenance.
Are you sure? (y/n) y
Batch job confirmed by user.
Batch process started at Thu Jun 22 09:42:45 CEST 2017
Populating list of RRDs from the dircetory: /usr/local/nagios/share/perfdata/
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_invalid.rrd
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_skipped.rrd
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_rows.rrd
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_create.rrd
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_update.rrd
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_runtime.rrd
Ignoring pnp-internal RRD: /usr/local/nagios/share/perfdata/.pnp-internal/runtime_errors.rrd
Backing up: /usr/local/nagios/share/perfdata/KPI1_-_TOP-SIM-Data_Service_Availability/Active_Data_sessions.rrd
Can't locate RRD/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Can't locate RRD/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Fixing permissions for file: /usr/local/nagios/share/perfdata/KPI1_-_TOP-SIM-Data_Service_Availability/Active_Data_sessions.rrd
/usr/local/nagios/share/perfdata/KPI1_-_TOP-SIM-Data_Service_Availability/Active_Data_sessions.rrd updated with 2 additional datasource(s)
Batch job finished at Thu Jun 22 09:42:46 CEST 2017.
A total of 1 file(s) were updated with a total of 2 datasource(s).
Changes logged to the file /tmp/fix_rrd_ds.log
Re: Update in script not visible in performance graph
Can you run the following commands, and show the output?
Code: Select all
uname -a
cat /etc/*release
which perl
perl --version
which rrdtool
rpm -qa | grep rrdtool
yum install mlocate -y && updatedb && locate RRDs.pm
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Update in script not visible in performance graph
Hi
Thanks
Code: Select all
[root@am1nms-nagiosxi ~]# uname -a
Linux am1nms-nagiosxi 2.6.32-696.1.1.el6.x86_64 #1 SMP Tue Apr 11 17:13:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@am1nms-nagiosxi ~]# cat /etc/*release
CentOS release 6.9 (Final)
CentOS release 6.9 (Final)
CentOS release 6.9 (Final)
[root@am1nms-nagiosxi ~]# which perl
/usr/bin/perl
[root@am1nms-nagiosxi ~]# perl --version
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
[root@am1nms-nagiosxi ~]# which rrdtool
/usr/bin/rrdtool
[root@am1nms-nagiosxi ~]# rpm -qa | grep rrdtool
rrdtool-1.3.8-10.el6.x86_64
rrdtool-perl-1.3.8-10.el6.x86_64
rrdtool-python-1.3.8-10.el6.x86_64
[root@am1nms-nagiosxi ~]# yum install mlocate -y && updatedb && locate RRDs.pm
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 25 kB 00:00
* base: centos.mirror.iweb.ca
* epel: epel.besthosting.ua
* extras: centos.mirror.iweb.ca
* updates: centos.mirror.iweb.ca
base | 3.7 kB 00:00
cr | 2.9 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:10
extras | 3.4 kB 00:00
nagios-base | 1.5 kB 00:00
nagiosxi-deps | 1.5 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.0 MB 00:00
Resolving Dependencies
--> Running transaction check
---> Package mlocate.x86_64 0:0.22.2-6.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================
Installing:
mlocate x86_64 0.22.2-6.el6 base 86 k
Transaction Summary
===========================================================================================================================
Install 1 Package(s)
Total download size: 86 k
Installed size: 279 k
Downloading Packages:
mlocate-0.22.2-6.el6.x86_64.rpm | 86 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : mlocate-0.22.2-6.el6.x86_64 1/1
Verifying : mlocate-0.22.2-6.el6.x86_64 1/1
Installed:
mlocate.x86_64 0:0.22.2-6.el6
Complete!
/usr/lib64/perl5/vendor_perl/RRDs.pm
Re: Update in script not visible in performance graph
Instead of using yum to install the RRD Simple module, lets see if the cpan utility can do it.
Run the following as root
If it installs then run the fix_ds_quantity script to see if it updates the graphs for you.
Run the following as root
Code: Select all
cpan -i RRD::SimpleCode: Select all
cd /tmp
./fix_ds_quantity.sh -d /usr/local/nagios/share/perfdata/Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Update in script not visible in performance graph
Hi tgriep,
Yes have tried cpan, but it seems there are prerequisites that won't install. Have attached the output since it's exceed the max allowed.
Yes have tried cpan, but it seems there are prerequisites that won't install. Have attached the output since it's exceed the max allowed.
You do not have the required permissions to view the files attached to this post.
Re: Update in script not visible in performance graph
Lets see if you can force the install of the perl modules, run the following as root.
If they install, try installing the RRD::Simple module again.
If more modules are missing, go ahead and install them and repeat the RRD::Simple install.
Code: Select all
cpan -f -i IPC::Cmd
cpan -f -i Module::Load::Conditional
cpan -f -i Module::MetadataCode: Select all
cpan -i RRD::SimpleBe sure to check out our Knowledgebase for helpful articles and solutions!