Windows All-In-One Installer [Cacti 1.2.24] [Updated 2023-03-09]
Moderators: Developers, Moderators
Sounds like a NTFS permission issue. Double check rrdtool.exe, cmd.exe and your c:\inetpub\wwwroot\cacti\ files all have read/execute permissions for the IUSR_COMPNAME and IIS_WPG users. You could also fire up Sysinternals FileMon and check for access denied errors.
| 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 |
-
- Posts: 3
- Joined: Fri Jul 28, 2006 2:53 am
thx for the installer - worked just fine!
now i want to install the mactrack plugin (used it already on unix). my first step was to install the plugin-architecture and edit the config.php file. after that i put mactrack into the pluginfolder, replaced the old files with the patched ones and added to the configfile.
when i browse the cacti page i still have the "old" page without device tracking menue and without mactrack-symbol at the page header...
//edit: when i go to settings i have the device tracking settings tab but on the left menue it is completly missing.
some suggestions?
thx!
now i want to install the mactrack plugin (used it already on unix). my first step was to install the plugin-architecture and edit the config.php file. after that i put mactrack into the pluginfolder, replaced the old files with the patched ones and added
Code: Select all
$plugins[]='mactrack';
when i browse the cacti page i still have the "old" page without device tracking menue and without mactrack-symbol at the page header...
//edit: when i go to settings i have the device tracking settings tab but on the left menue it is completly missing.
some suggestions?
thx!
-
- Posts: 14
- Joined: Tue Jul 25, 2006 7:30 pm
mosquito2k: Being you have a plugin problem, please post in the appropriate forum.
tim.shoemaker: Have you double checked the permissions with FileMon? Yes, it's better to be running SP2, but I doubt this will do anything for your problem. You DO have a NTFS permission problem... please re-double check the settings on the file listed in my windows install guide.
tim.shoemaker: Have you double checked the permissions with FileMon? Yes, it's better to be running SP2, but I doubt this will do anything for your problem. You DO have a NTFS permission problem... please re-double check the settings on the file listed in my windows install guide.
| 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 |
-
- Posts: 14
- Joined: Tue Jul 25, 2006 7:30 pm
I checked the permissions, I don't doubt that there may be a permissions problem. Do know that I am testing it on the local machine it runs on, using IE6.
I ran filemon, and didn't see anything that wasn't open, is there anything signifigant I might want to look for in that test?
Thanks for your help!
I ran filemon, and didn't see anything that wasn't open, is there anything signifigant I might want to look for in that test?
Thanks for your help!
Try running my security script: http://bsod2600.home.comcast.net/Cacti-Security.zip which should apply the proper security permissions.
| 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 |
-
- Posts: 14
- Joined: Tue Jul 25, 2006 7:30 pm
I ran this .cmd file, but it didn't seem to work.
:: Cacti security v1.0
::
:: -History-
:: 1.00: Initial release
::
@echo off
:::: Script Variables ::::
: If you change paths, make sure to leave off the trailing slash
: If the path contains spaces, make sure to enclose it with quotes
SET WEBSERVER=%1
SET WEBUSER=%2
SET MYSQL=c:\mysql
SET PHP=c:\php
SET RRDTOOL=c:\rrdtool
SET CACTID=c:\cactid
if not defined WEBSERVER goto Syntax
if not defined WEBUSER goto Syntax
if not exist xcacls.exe (echo ** xcacls missing ** &goto Syntax)
echo.
echo ** WARNING **
echo This script will modify the NTFS security permissions!!
echo This could potentially cause undesirable affects to your system.
echo You have been warned
echo.
echo Close this window if you do not wish to continue, otherwise
pause
echo.
echo This script assumes you have installed the various programs Cacti utilizes
echo into their default directories. If not, this script will not work (out of the box).
echo You would have to modify it to function in your enviroment.
echo.
echo Current locations the script will modify are:
echo CMD.exe = %WINDIR%\System32\cmd.exe
echo PHP Sessions = %WINDIR%\Temp
echo WEBSERVER = %WEBSERVER%\Cacti
echo PHP = %PHP%
echo RRDTool = %RRDTOOL%
echo Cactid = %CACTID%
echo.
echo.
pause
:::: Sets NTFS permissions ::::
echo Setting Cactid permissions
xcacls %CACTID% /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %CACTID% /T /C /E /G Everyone:R /Y > NUL
echo Setting RRDTool permissions
xcacls %RRDTOOL% /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %RRDTOOL% /T /C /E /G Everyone:R /Y > NUL
echo Setting PHP permissions
xcacls %PHP% /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %PHP% /T /C /E /G Everyone:R /Y > NUL
xcacls %WINDIR%\temp /T /C /E /G %WEBUSER%:EWX;R /Y > NUL
echo Setting Webserver permissions
xcacls %WEBSERVER%\Cacti /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %WEBSERVER%\Cacti\rra /T /C /E /G %WEBUSER%:C /Y > NUL
xcacls %WEBSERVER%\Cacti\log /T /C /E /G %WEBUSER%:C /Y > NUL
xcacls %WEBSERVER%\Cacti\rra /T /C /E /G IIS_WPG:C /Y > NUL
xcacls %WEBSERVER%\Cacti\log /T /C /E /G IIS_WPG:C /Y > NUL
echo Setting CMD.exe permission
xcacls %WINDIR%\System32\cmd.exe /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %WINDIR%\System32\cmd.exe /T /C /E /G IIS_WPG:R /Y > NUL
echo All done!
goto:EOF
:Syntax
echo.
echo cacti-security.cmd, Version 1.0
echo Sets up NTFS security permissions for Cacti and the programs it uses.
echo Requires XCACLS which is freely downloadable from:
echo http://www.microsoft.com/windows2000/te ... acls-o.asp
echo.
echo Usage: Cacti-security webserverroot webuser
echo.
echo Where: "webserverroot" is the root of the webserver were Cacti resides
echo i.e. C:\Inetpub\wwwroot. If your path contains spaces
echo you must enclose it in quotes.
echo "webuser" is the webuser account (i.e. IUSR_COMPNAME)
echo.
echo Written by BSOD2600
I still get this..........in debug mode.
RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="OLYSWITCH02 - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
AREA:#00CF00:"Inbound" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:#002A97:"Outbound" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
RRDTool Says:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="OLYSWITCH02 - Traffic" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bytes per second" --slope-mode AREA:#00CF00:"Inbound" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Maximum\:%8.2lf %s" COMMENT:"Total In\: 0 bytes\n" LINE1:#002A97:"Outbound" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Maximum\:%8.2lf %s" COMMENT:"Total Out\: 0 bytes" 2>&1,rb) [function.popen]: No error in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 94
Warning: fgets(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 117
:: Cacti security v1.0
::
:: -History-
:: 1.00: Initial release
::
@echo off
:::: Script Variables ::::
: If you change paths, make sure to leave off the trailing slash
: If the path contains spaces, make sure to enclose it with quotes
SET WEBSERVER=%1
SET WEBUSER=%2
SET MYSQL=c:\mysql
SET PHP=c:\php
SET RRDTOOL=c:\rrdtool
SET CACTID=c:\cactid
if not defined WEBSERVER goto Syntax
if not defined WEBUSER goto Syntax
if not exist xcacls.exe (echo ** xcacls missing ** &goto Syntax)
echo.
echo ** WARNING **
echo This script will modify the NTFS security permissions!!
echo This could potentially cause undesirable affects to your system.
echo You have been warned
echo.
echo Close this window if you do not wish to continue, otherwise
pause
echo.
echo This script assumes you have installed the various programs Cacti utilizes
echo into their default directories. If not, this script will not work (out of the box).
echo You would have to modify it to function in your enviroment.
echo.
echo Current locations the script will modify are:
echo CMD.exe = %WINDIR%\System32\cmd.exe
echo PHP Sessions = %WINDIR%\Temp
echo WEBSERVER = %WEBSERVER%\Cacti
echo PHP = %PHP%
echo RRDTool = %RRDTOOL%
echo Cactid = %CACTID%
echo.
echo.
pause
:::: Sets NTFS permissions ::::
echo Setting Cactid permissions
xcacls %CACTID% /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %CACTID% /T /C /E /G Everyone:R /Y > NUL
echo Setting RRDTool permissions
xcacls %RRDTOOL% /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %RRDTOOL% /T /C /E /G Everyone:R /Y > NUL
echo Setting PHP permissions
xcacls %PHP% /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %PHP% /T /C /E /G Everyone:R /Y > NUL
xcacls %WINDIR%\temp /T /C /E /G %WEBUSER%:EWX;R /Y > NUL
echo Setting Webserver permissions
xcacls %WEBSERVER%\Cacti /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %WEBSERVER%\Cacti\rra /T /C /E /G %WEBUSER%:C /Y > NUL
xcacls %WEBSERVER%\Cacti\log /T /C /E /G %WEBUSER%:C /Y > NUL
xcacls %WEBSERVER%\Cacti\rra /T /C /E /G IIS_WPG:C /Y > NUL
xcacls %WEBSERVER%\Cacti\log /T /C /E /G IIS_WPG:C /Y > NUL
echo Setting CMD.exe permission
xcacls %WINDIR%\System32\cmd.exe /T /C /E /G %WEBUSER%:R /Y > NUL
xcacls %WINDIR%\System32\cmd.exe /T /C /E /G IIS_WPG:R /Y > NUL
echo All done!
goto:EOF
:Syntax
echo.
echo cacti-security.cmd, Version 1.0
echo Sets up NTFS security permissions for Cacti and the programs it uses.
echo Requires XCACLS which is freely downloadable from:
echo http://www.microsoft.com/windows2000/te ... acls-o.asp
echo.
echo Usage: Cacti-security webserverroot webuser
echo.
echo Where: "webserverroot" is the root of the webserver were Cacti resides
echo i.e. C:\Inetpub\wwwroot. If your path contains spaces
echo you must enclose it in quotes.
echo "webuser" is the webuser account (i.e. IUSR_COMPNAME)
echo.
echo Written by BSOD2600
I still get this..........in debug mode.
RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="OLYSWITCH02 - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
AREA:#00CF00:"Inbound" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:#002A97:"Outbound" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
RRDTool Says:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="OLYSWITCH02 - Traffic" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bytes per second" --slope-mode AREA:#00CF00:"Inbound" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Maximum\:%8.2lf %s" COMMENT:"Total In\: 0 bytes\n" LINE1:#002A97:"Outbound" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Maximum\:%8.2lf %s" COMMENT:"Total Out\: 0 bytes" 2>&1,rb) [function.popen]: No error in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 94
Warning: fgets(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 117
Umm, you must have .cmd files associated with notepad or something. That script is suppose to actually execute that xcalcs program. Sounds like you've got something else seriously messed up with your XP.
| 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 |
-
- Posts: 14
- Joined: Tue Jul 25, 2006 7:30 pm
DruKe: Once the plugin architecture is officially included in Cacti, then it will be part of the installer. Since it's unofficial and adds another layer of complexity / possible problems, it won't include it.
tim.shoemaker: No, installing iis and snmp would not cause these problems. Before you reinstall, have you tried going through my install guide and making sure everything is set up?
tim.shoemaker: No, installing iis and snmp would not cause these problems. Before you reinstall, have you tried going through my install guide and making sure everything is set up?
| 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 |
-
- Posts: 14
- Joined: Tue Jul 25, 2006 7:30 pm
| 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 |
[quote="BSOD2600"]DruKe: Once the plugin architecture is officially included in Cacti, then it will be part of the installer. Since it's unofficial and adds another layer of complexity / possible problems, it won't include it.
Is there a way to debug the install? I did an overwrite install of the plugin architecture, changed the config.inc.php and cacti works, but no plugin tabs on the top when I installed thold/monitor.
THanks!
Is there a way to debug the install? I did an overwrite install of the plugin architecture, changed the config.inc.php and cacti works, but no plugin tabs on the top when I installed thold/monitor.
THanks!
You need to change the config.php file...DruKe wrote:Is there a way to debug the install? I did an overwrite install of the plugin architecture, changed the config.inc.php and cacti works, but no plugin tabs on the top when I installed thold/monitor.
If you have problems getting it installed, post in the plugin architecture forum: http://forums.cacti.net/viewforum.php?f=20
| 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 1 guest