I am new to Cacti and need some help troubleshooting a template issue. I downloaded and imported the Dell PowerConnect 62xx Template (http://docs.cacti.net/usertemplate:host ... nnect:62xx) into my Cacti installation (its version 0.8.7i)
Now, it originally came with graphs for CPU Utilization (5min, 1min, 5sec), CPU Utilization (5sec), Temperature, Memory Usage, and Ping Latency. All of these graphs are currently working with the exception for the CPU graphs. These two graphs are only displaying -nan for their data values. In the Cacti Log File the following error is recorded:
11/13/2012 10:40:01 AM - CMDPHP: Poller[0] Host[7] DS[138] WARNING: Result from CMD not valid. Partial Result: U
Also, in the documentation for the Cacti Template it said "You will need to install the latest firmware update (at the time of writing this 3.2.0.7, plus the MIBs) before the Memory, CPU, and Temp graphs will work." The firmware is 3.3.3.3, however I did not understand the plus MIBs part.
Thanks for any help that you can provide.
Dell PowerConnect 62xx Template not Graphing
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Tue Nov 13, 2012 11:33 am
-
- Posts: 1
- Joined: Mon Apr 08, 2013 6:26 am
Re: Dell PowerConnect 62xx Template not Graphing
Hi:
Are you using Cacti on a Unix type system? Here are the problems I came across when using the 62xx template on the Cacti package for Ubuntu Server 12.10.
First, have you just imported the template into Cacti using the web based interface or did you also remember to install the "62xx_cpu.pl" script into the Cacti scripts directory and set it to be executable? On Ubuntu the correct folder is "/usr/share/cacti/site/scripts".
Then I found that the "62xx_cpu.pl" script had DOS line endings which Perl didn't like, so I had to use the command "dos2unix 62xx_cpu.pl" to remove them. (Had to install the "dos2unix" package first).
Also, I had to install the "libsnmp-perl" and "libnet-snmp-perl" packages before the script would work. These packages had not been automatically installed when I first installed Cacti.
One thing you can try is going to the location of the 62xx CPU script file and trying to run it from the command line (./62xx_cpu.pl). You should get the following help text.
If you don't get this then the script is not working (e.g. because the required Perl libraries are missing) and won't generate any data for Cacti.
Hope this helps.
Are you using Cacti on a Unix type system? Here are the problems I came across when using the 62xx template on the Cacti package for Ubuntu Server 12.10.
First, have you just imported the template into Cacti using the web based interface or did you also remember to install the "62xx_cpu.pl" script into the Cacti scripts directory and set it to be executable? On Ubuntu the correct folder is "/usr/share/cacti/site/scripts".
Then I found that the "62xx_cpu.pl" script had DOS line endings which Perl didn't like, so I had to use the command "dos2unix 62xx_cpu.pl" to remove them. (Had to install the "dos2unix" package first).
Also, I had to install the "libsnmp-perl" and "libnet-snmp-perl" packages before the script would work. These packages had not been automatically installed when I first installed Cacti.
One thing you can try is going to the location of the 62xx CPU script file and trying to run it from the command line (./62xx_cpu.pl). You should get the following help text.
Code: Select all
Usage: ./62xx_cpu.pl -H hostname -C community -version [version] -counter [counter] [OPTIONS]
where
-host|-H SNMP Hostname
-community|-C SNMP Community (Default: public)
-version SNMP Version (Default v1)
-port SNMP port number (Default: 161)
-domain SNMP domain (no default)
-user SNMP Username
-pass SNMP Password
-authkey SNMP Authenication Key
-authprotocol SNMP Auth Protocol (e.g MD5)
-privatekey SNMP Private Key
-privatepassword SNMP Private Key Pass Phrase
-privateprotocol SNMP Privacy Protocol (e.g DES)
-timeout Number of seconds until timeout
-h This help screen
Hope this helps.
Re: Dell PowerConnect 62xx Template not Graphing
I've run into this same problem, and have followed the guidance provided (very helpful by the way). The corrections provided seemed to have done the trick. I am curious however on the manual testing of the perl script, and what one should put in for "counters"
Re: Dell PowerConnect 62xx Template not Graphing
I'm running under windows and I'm having a similar issue.
I installed perl and I think I got the modules I need.
Checking the log I can see the following:
CMD: perl C:/inetpub/cacti/scripts/62xx_cpu.pl -H 10.2.240.63 -C public-version 2 -port 161 -domain -user -pass -authprotocol -privatepassword -privateprotocol -timeout 500, output: U
If I take that entire command and run it at the command prompt, as the same user running the windows tasks that starts the polling, i get results like this:
5Sec:7.47 1Min:6.89 5Min:7.76
That appears to be what I need but cacti is still saying the output is invalid and I don't know what else I can do at this point.
Can anyone help?
Thanks
I installed perl and I think I got the modules I need.
Checking the log I can see the following:
CMD: perl C:/inetpub/cacti/scripts/62xx_cpu.pl -H 10.2.240.63 -C public-version 2 -port 161 -domain -user -pass -authprotocol -privatepassword -privateprotocol -timeout 500, output: U
If I take that entire command and run it at the command prompt, as the same user running the windows tasks that starts the polling, i get results like this:
5Sec:7.47 1Min:6.89 5Min:7.76
That appears to be what I need but cacti is still saying the output is invalid and I don't know what else I can do at this point.
Can anyone help?
Thanks
Re: Dell PowerConnect 62xx Template not Graphing
If it helps anyone, I found the solution to my problem in another thread on the forums.
I had to put the full path to perl.
In the data input methods, I changed the Dell Powerconnect 62xx - CPU input string from:
perl <path_cacti>/scripts.......
to
C:\Perl\bin\perl.exe <path_cacti>/scripts.......
And now the cpu is graphing.
For anyone else who struggled and may come across this post, I ended up installing Activestate perl, adding the Net-SNMP module and then had to take a copy of SNMP.pm from C:\Perl\site\lib\Net and put it in C:\Perl\site\lib\. After that, the script would run (then I just had to fix the path above to get the data to graph). Don't know if there is a better way but that's what worked for me.
I had to put the full path to perl.
In the data input methods, I changed the Dell Powerconnect 62xx - CPU input string from:
perl <path_cacti>/scripts.......
to
C:\Perl\bin\perl.exe <path_cacti>/scripts.......
And now the cpu is graphing.
For anyone else who struggled and may come across this post, I ended up installing Activestate perl, adding the Net-SNMP module and then had to take a copy of SNMP.pm from C:\Perl\site\lib\Net and put it in C:\Perl\site\lib\. After that, the script would run (then I just had to fix the path above to get the data to graph). Don't know if there is a better way but that's what worked for me.
-
- Posts: 2
- Joined: Tue Nov 13, 2012 11:33 am
Re: Dell PowerConnect 62xx Template not Graphing
Thanks, simonhales. That has fixed all the issues I was experiencing with the Power Connect 62xx CPU graphs not working.
Re: Dell PowerConnect 62xx Template not Graphing
Thanks so much. I've inherited a bunch of these switches with a new job, and this dos2unix tweak fixed them for me.
One other note - My memory graphs weren't displaying with the template. I was receiving an error - "the RRD does not contain an RRA matching the chosen CF"
I followed instructions in another thread, and modified the graph template data sources that were listed as CF Type LAST to be CF Type Average, and that fixed them up.
Just so all tweaks for this template are in one easy to find spot.
One other note - My memory graphs weren't displaying with the template. I was receiving an error - "the RRD does not contain an RRA matching the chosen CF"
I followed instructions in another thread, and modified the graph template data sources that were listed as CF Type LAST to be CF Type Average, and that fixed them up.
Just so all tweaks for this template are in one easy to find spot.
Who is online
Users browsing this forum: No registered users and 2 guests