Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:087:4_help.1_faq [2009/03/23 06:59]
anon_bugs
manual:087:4_help.1_faq [2009/08/23 02:44] (current)
BSOD2600 added various key FAQ items from my faq
Line 63: Line 63:
  
     mysql> update user_auth set password=md5('admin') where username='admin';     mysql> update user_auth set password=md5('admin') where username='admin';
 +
 +=== How do I repair my Cacti database? ===
 +Run either of the following from the command prompt:
 +  * <code>php <cactipath>\cli\repair_database.php</code>
 +  * <code>mysqlcheck --auto-repair --databases cacti</code>
  
 ==== Monitoring ==== ==== Monitoring ====
Line 110: Line 115:
  
 If only some of your graphs are not updating correctly, double check the Maximum Value field for all data sources used by these graphs. If the value being fed to the .rrd file exceeds its Maximum Value, RRDTool will insert an Unknown and you will see no data on the graph. If only some of your graphs are not updating correctly, double check the Maximum Value field for all data sources used by these graphs. If the value being fed to the .rrd file exceeds its Maximum Value, RRDTool will insert an Unknown and you will see no data on the graph.
 +
 +=== I don't see any graphs on the main graph page, but when I click on one, I see 4 graphs with data. ===
 +This happens because you have the wrong version of RRDTool selected in Cacti.  Set it by going to Settings and applying the proper RRDTool Utility Version.
  
 === A lot of my graphs contain long ifAlias names, but they are being truncated to 15 characters === === A lot of my graphs contain long ifAlias names, but they are being truncated to 15 characters ===
Line 126: Line 134:
  
 ==== Windows Related ==== ==== Windows Related ====
 +
 +=== How does SNMP work on Windows? ===
 +  * [[http://technet.microsoft.com/en-us/library/bb726987.aspx|SNMP Technical Overview]]
 +
 +=== How do I configure Microsoft SNMP? ===
 +  * [[http://support.microsoft.com/kb/324263|HOW TO: Configure the Simple Network Management Protocol (SNMP) Service in Windows Server 2003]]
 +
  
 === I get a "Fatal error: Cannot redeclare title_trim()" error message from Cacti === === I get a "Fatal error: Cannot redeclare title_trim()" error message from Cacti ===
  
 Contrary to previous versions of Cacti, you must not put Cacti in your PHP include path. Check your php.ini file to make sure there is not something like include_path = C:/Apache2/htdocs/cacti. Contrary to previous versions of Cacti, you must not put Cacti in your PHP include path. Check your php.ini file to make sure there is not something like include_path = C:/Apache2/htdocs/cacti.
 +
 +=== Call to undefined function mysql_connect() in \cacti\lib\adodb\drivers\adodb-mysql.inc.php ===
 +
 +This is caused because newer versions of PHP [[http://www.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5|no longer support]] the new client libraries for MySQL 4.1.0 and beyond.  The universal fix is to apply the [[http://dev.mysql.com/doc/refman/5.1/en/old-client.html|old client hack]], outlined in the [[manual:087:1_installation.2_install_windows.5_install_mysql|MySQL section]]. Cacti will not work with the php_mysql**i** extension.
 +
 +=== How do I stop the command windows from opening every 5 minutes? ===
 +
 +This is occurring because your Cacti scheduled task is using the same user name you've logged onto the computer with. There are two possible fixes:
 +  - Use a different user name to run the Cacti scheduled task
 +  - Use a windows script to hide the command windows.  Only do this after your cacti installation is fully functional! 
 +    - Create a file called invisible.vbs.  Place it where ever you like.
 +    - Edit invisible.vbs and paste the following
 +<code vb>
 +     Set objWSHShell = WScript.CreateObject("WScript.Shell")
 +     objWSHShell.Run "poller.php", 0, False
 +</code>
 +    - Edit the Cacti scheduled task and change the Run to:
 +<code>
 +     C:\Windows\system32\wscript.exe "C:\invisible.vbs" "C:\Inetpub\wwwroot\cacti\poller.php"
 +</code>
 +
 +=== Why doesn't Windows return Disk or CPU usage via SNMP? ===
 +Open up the SNMP Service and click on the Agent tab. Make sure all the service checkboxes are marked (they are not by default). Restart the SNMP service. Also try increasing the SNMP timeout and decreasing the Maximum OID's Per Get Request.
 +
 +=== ERROR: change root is not supported by your OS or at least by this copy of rrdtool.  ===
 +This error message occurs when you use the Win32 version of rrdtool instead of the Cygwin one.  RRDTool 1.2.15 and later work with the Win32 build.
 +
 +=== Why doesn't a WMI counter say it exists when I know it should? ===
 +It's possible you need to run [[http://msdn.microsoft.com/en-us/library/aa394528%28VS.85%29.aspx|wmiadap /f]] which will re-parses all the performance libraries on the system.
 +
 +=== I'm getting errors with something like: //Warning: fgets(): supplied argument is not a valid stream resource: <filename>// ===
 +This is most likely due to incorrect NTFS permissions on that file/folder. This prevents Cacti from accessing the file(s) to execute the code.  Read in the installation guide on what NTFS permissions need to be set.





Personal Tools