Hi Everyone,
I am a new to using Cacti and have a few questions.
History:
I tried to manually install Cacti and after 2-3 days of no success I ran across the Windows installer. Thank you for that. So I manually uninstalled everything and deleted folders that I created. I did my best to return the box to fresh install of Windows 2003.
I downloaded the Windows installer and using this forum I fixed my permission problems and can get in. Yeahhh
I've added 5 devices so far and they are being graphed nicely.
My questions are as follows:
1) When adding a device or saving changes made to a device in Cacti, my window freezes 50% of the time and it never completes. This happens in both Firefox and IE. Yet, when I close all of my browser windows and start again, the device is there. Why is it freezing?
2) I have some Dell Switches I'd like to monitor and I'm not having success. What forum should I read to get me going? Am I supposed to go to the plugin page? What do I do with the MIBs I downloaded from Dell? Is this in the documentation site?
3) Are there known issues with monitoring devices that are on the other side of a Firewall? If so, what thread do I read to solve this?
4) Is it necessary to upgrade Cacti, PHP and MySQL if everything works?
Thanks in Advance.
Nick Rigas
Cacti Freezes
Moderators: Developers, Moderators
1) It's something with php timing out when accessing the devices. Please install the patches for cacti http://www.cacti.net/download_patches.php. Also you might need to increase the timeout and memory values in php.ini. Since you used the installer, the php error log is enabled c:\php\php-errors.txt. Look in there for problems around the same time you add a device.
2) cacti doesn't directly use MIB files, just pure OIDs. Does the 'SNMP - Interface Statistics' data query not return any data in Verbose mode? are you able to manually snmpwalk .1.3.6.1.2.1.2.2.1.1 from your Cacti server to the Dell switch? No, you don't need a plugin to monitor a switch.
3) Nothing specific... just need to correct holes in the firewall / ACLs / etc to allow snmp / ping / script traffic through. It's possible to tunnel/proxy traffic through such things with the help of net-snmp, but it's quite complicated. There is a guide for that in the informational forum.
4) It's a good idea to upgrade cacti/spine to the latest versions as they are released. As for php/mysql, more your call for bug fixes / performance upgrades.
2) cacti doesn't directly use MIB files, just pure OIDs. Does the 'SNMP - Interface Statistics' data query not return any data in Verbose mode? are you able to manually snmpwalk .1.3.6.1.2.1.2.2.1.1 from your Cacti server to the Dell switch? No, you don't need a plugin to monitor a switch.
3) Nothing specific... just need to correct holes in the firewall / ACLs / etc to allow snmp / ping / script traffic through. It's possible to tunnel/proxy traffic through such things with the help of net-snmp, but it's quite complicated. There is a guide for that in the informational forum.
4) It's a good idea to upgrade cacti/spine to the latest versions as they are released. As for php/mysql, more your call for bug fixes / performance upgrades.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Hi,
Thanks for the prompt reply.
Ahh, I isolated my problem. When creating a new device and leave the Host Template to NONE, it works great. I blink and it's done.
When I try to use the one I created, it freezes up on me. Is there something it does not like? Is there some other change you recommend?
See screen shot of Nicks Template below.
I looked at my php-error.log and Noticed the following entries.
Here is a sample of it:
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:33] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:43] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[02-Sep-2009 09:51:29] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1537
--------------------------------------------
I modified the values in php.ini. They now look as follows:
max_execution_time = 90 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit =512M ; Maximum amount of memory a script may consume (128MB)
I am also trying to do backup my cacti as per instructions and am stuck at the last step. Am I missing or forgetting a step to finish the MYSQL steps?
See screenshot I uploaded.
http://www.cacti.net/downloads/docs/html/upgrade.html
2)
When I try to snmpwalk my switch I get nothing in return.
Here's the output from cmd.
C:\Program Files\Cacti>snmpwalk -v 1 -c SJSD tcp:10.30.30.2 sysname
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
sysname: (Sub-id not found: (top) -> sysname)
3) Great
4) Is there step by step instructions on upgrading spine/php/mysql so I don't break my Cacti server?
Thanks for the prompt reply.
Ahh, I isolated my problem. When creating a new device and leave the Host Template to NONE, it works great. I blink and it's done.
When I try to use the one I created, it freezes up on me. Is there something it does not like? Is there some other change you recommend?
See screen shot of Nicks Template below.
I looked at my php-error.log and Noticed the following entries.
Here is a sample of it:
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
[27-Aug-2009 16:35:12] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:33] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[27-Aug-2009 16:35:43] PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[02-Sep-2009 09:51:29] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1537
--------------------------------------------
I modified the values in php.ini. They now look as follows:
max_execution_time = 90 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit =512M ; Maximum amount of memory a script may consume (128MB)
I am also trying to do backup my cacti as per instructions and am stuck at the last step. Am I missing or forgetting a step to finish the MYSQL steps?
See screenshot I uploaded.
http://www.cacti.net/downloads/docs/html/upgrade.html
2)
When I try to snmpwalk my switch I get nothing in return.
Here's the output from cmd.
C:\Program Files\Cacti>snmpwalk -v 1 -c SJSD tcp:10.30.30.2 sysname
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
sysname: (Sub-id not found: (top) -> sysname)
3) Great
4) Is there step by step instructions on upgrading spine/php/mysql so I don't break my Cacti server?
- Attachments
-
- HostTemplatesScreenshot.png (17.24 KiB) Viewed 2861 times
-
- CactiUpgradeScreenshot.png (9.14 KiB) Viewed 2861 times
It's simply timing out when trying to query all of the associated data queries for that host template (Windows) vs NONE. Once the device has been added to cacti, does its system info show in the top left corner of the screen? If not, this is why the page is freezing.nickrigas wrote:Ahh, I isolated my problem. When creating a new device and leave the Host Template to NONE, it works great. I blink and it's done.
When I try to use the one I created, it freezes up on me. Is there something it does not like?
lib\snmp.php was addressed with the latest 0.8.7e patches.nickrigas wrote:I looked at my php-error.log and Noticed the following entries.Here is a sample of it:
lib\functions.php is likely cacti timing out trying to index/query a device.
That "mysqldump -l --add-drop-table cacti > mysql.cacti" command is to be executed from the command prompt, NOT from inside mysql. Also, they are mostly unix commands, but the same basic principal applies to Windows; i.e. backup the cacti database, web files, scripts and rrd files.nickrigas wrote:I am also trying to do backup my cacti as per instructions and am stuck at the last step. Am I missing or forgetting a step to finish the MYSQL steps?
1) try this instead: snmpwalk -v 1 -v SJSD 10.30.30.2 system -- if that doesn't work, then I don't think that device has snmp properly configured.nickrigas wrote:When I try to snmpwalk my switch I get nothing in return.
Here's the output from cmd.
2) Cannot find module errors are due to either a missing MIBDIRS system variable and/or missing mib files from that specified directory
3) cacti cannot be installed in a path with spaces. it breaks.
You already found it and was trying to follow it earlier in the post...nickrigas wrote:4) Is there step by step instructions on upgrading spine/php/mysql so I don't break my Cacti server?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 0 guests