• Home »
  • Errors »
  • Cacti Graphs Not Displaying, [STDERR] sh: /usr/bin/rrdtool: No such file or directory
Cacti Graphs Not Displaying, [STDERR] sh: /usr/bin/rrdtool: No such file or directory

Cacti Graphs Not Displaying, [STDERR] sh: /usr/bin/rrdtool: No such file or directory

I was contacted by a client last week regarding a monitoring server they have deployed. One of the applications they have gathering data from this server is Cacti. Anyhow they were able to login to Cacti but the graphs were not displaying. After logging into the server, which is running CentOS Linux, I saw the error clearly in the Litespeed logs. Below I describe the error in more detail as well as how to resolve this problem if you run into it.

Error Displaying Cacti Graphs Via Litespeed stderr.log In /var/lsws/logs:

bash

  1. 2010-12-20 16:53:51.417 [STDERR] sh: /usr/bin/rrdtool: No such file or directory
  2. 2010-12-20 16:53:51.428 [STDERR] sh: /usr/bin/rrdtool: No such file or directory
  3. 2010-12-20 16:53:51.464 [STDERR] sh: /usr/bin/rrdtool: No such file or directory
  4. 2010-12-20 16:53:51.482 [STDERR] sh: /usr/bin/rrdtool: No such file or directory
  5. 2010-12-20 16:53:51.508 [STDERR] sh: /usr/bin/rrdtool: No such file or directory
  6. 2010-12-20 16:53:51.524 [STDERR] sh: /usr/bin/rrdtool: No such file or directory

You should initially look to make sure rrdtool is installed. In this case rrdtool had been removed for some reason so simply reinstalling rrdtool using the Yum Package Manager as shown in the example output below resolved the issue. If you want to first see if rrdtool is installed then use “locate rrdtool” but if it is not found then use the command below to install rrdtool.

Install rrdtool On CentOS Linux:

bash

  1. [root@corp logs]# yum install rrdtool
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4.  * addons: mirror.fdcservers.net
  5.  * base: mirror.sanctuaryhost.com
  6.  * extras: mirror.ubiquityservers.com
  7.  * rpmforge: fr2.rpmfind.net
  8.  * updates: mirror.steadfast.net
  9. Setting up Install Process
  10. Resolving Dependencies
  11. --> Running transaction check
  12. ---> Package rrdtool.x86_64 0:1.4.4-1.el5.rf set to be updated
  13. --> Processing Dependency: perl(RRDs) for package: rrdtool
  14. --> Processing Dependency: perl(RRDp) for package: rrdtool
  15. --> Running transaction check
  16. ---> Package perl-rrdtool.x86_64 0:1.4.4-1.el5.rf set to be updated
  17. --> Finished Dependency Resolution
  18.  
  19. Dependencies Resolved
  20.  
  21. ====================================================================================================================================
  22.  Package                          Arch                       Version                             Repository                    Size
  23. ====================================================================================================================================
  24. Installing:
  25.  rrdtool                          x86_64                     1.4.4-1.el5.rf                      rpmforge                     909 k
  26. Installing for dependencies:
  27.  perl-rrdtool                     x86_64                     1.4.4-1.el5.rf                      rpmforge                      54 k
  28.  
  29. Transaction Summary
  30. ====================================================================================================================================
  31. Install       2 Package(s)
  32. Upgrade       0 Package(s)
  33.  
  34. Total size: 963 k
  35. Is this ok [y/N]: y
  36. Downloading Packages:
  37. Running rpm_check_debug
  38. Running Transaction Test
  39. Finished Transaction Test
  40. Transaction Test Succeeded
  41. Running Transaction
  42.   Installing     : rrdtool                                                                                                      1/2
  43.   Installing     : perl-rrdtool                                                                                                 2/2
  44.  
  45. Installed:
  46.   rrdtool.x86_64 0:1.4.4-1.el5.rf
  47.  
  48. Dependency Installed:
  49.   perl-rrdtool.x86_64 0:1.4.4-1.el5.rf
  50.  
  51. Complete!
  52. [root@corp logs]#

Once rrdtool was installed the cacti graphs started displaying without further issue.

Network Flow Analysis (Paperback)


List Price: $39.95 USD
New From: $19.14 USD In Stock
Used from: $13.99 USD In Stock

Automating System Administration with Perl: Tools to Make You More Efficient (Paperback)


List Price: $39.99 USD
New From: $21.60 USD In Stock
Used from: $7.03 USD In Stock

Share