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:
2010-12-20 16:53:51.417 [STDERR] sh: /usr/bin/rrdtool: No such file or directory 2010-12-20 16:53:51.428 [STDERR] sh: /usr/bin/rrdtool: No such file or directory 2010-12-20 16:53:51.464 [STDERR] sh: /usr/bin/rrdtool: No such file or directory 2010-12-20 16:53:51.482 [STDERR] sh: /usr/bin/rrdtool: No such file or directory 2010-12-20 16:53:51.508 [STDERR] sh: /usr/bin/rrdtool: No such file or directory 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:
[root@corp logs]# yum install rrdtool Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.fdcservers.net * base: mirror.sanctuaryhost.com * extras: mirror.ubiquityservers.com * rpmforge: fr2.rpmfind.net * updates: mirror.steadfast.net Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package rrdtool.x86_64 0:1.4.4-1.el5.rf set to be updated --> Processing Dependency: perl(RRDs) for package: rrdtool --> Processing Dependency: perl(RRDp) for package: rrdtool --> Running transaction check ---> Package perl-rrdtool.x86_64 0:1.4.4-1.el5.rf set to be updated --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================== Installing: rrdtool x86_64 1.4.4-1.el5.rf rpmforge 909 k Installing for dependencies: perl-rrdtool x86_64 1.4.4-1.el5.rf rpmforge 54 k Transaction Summary ==================================================================================================================================== Install 2 Package(s) Upgrade 0 Package(s) Total size: 963 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : rrdtool 1/2 Installing : perl-rrdtool 2/2 Installed: rrdtool.x86_64 0:1.4.4-1.el5.rf Dependency Installed: perl-rrdtool.x86_64 0:1.4.4-1.el5.rf Complete! [root@corp logs]#
Once rrdtool was installed the cacti graphs started displaying without further issue.