Windows All-In-One Installer [Cacti 1.2.24] [Updated 2023-03-09]

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
mosquito2k
Posts: 3
Joined: Fri Jul 28, 2006 2:53 am

Post by mosquito2k »

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

Code: Select all

$plugins[]='mactrack';
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!
tim.shoemaker
Posts: 14
Joined: Tue Jul 25, 2006 7:30 pm

Post by tim.shoemaker »

I made all the permission changes, but still no luck! Do you think it would work better on something other than XPSP2?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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
Posts: 14
Joined: Tue Jul 25, 2006 7:30 pm

Post by tim.shoemaker »

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!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try running my security script: http://bsod2600.home.comcast.net/Cacti-Security.zip which should apply the proper security permissions.
tim.shoemaker
Posts: 14
Joined: Tue Jul 25, 2006 7:30 pm

Post by tim.shoemaker »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
DruKe
Posts: 18
Joined: Wed Jun 07, 2006 4:24 pm
Location: Wisconsin

Post by DruKe »

I think adding the plugin achitecture in the next release would be fantastic.
I'm having a beast of a time now that it's installed and configured.
tim.shoemaker
Posts: 14
Joined: Tue Jul 25, 2006 7:30 pm

Post by tim.shoemaker »

I'll do a total reinstall with just XPSP2, run all the windows updates, then run the Cacti install. I just have to make this work after all you've done to help me. BTW, I did do a manual installation of IIS and SNMP before I ran the Cacti install. Do you think that caused any problems?

Thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by 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.

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
Posts: 14
Joined: Tue Jul 25, 2006 7:30 pm

Post by tim.shoemaker »

I went through the post installation instructions, and they are all set up correctly. I've been through it about 10 times.

Is there another installation guide I'm missing?
DruKe
Posts: 18
Joined: Wed Jun 07, 2006 4:24 pm
Location: Wisconsin

Post by DruKe »

[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!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
You need to change the config.php file...

If you have problems getting it installed, post in the plugin architecture forum: http://forums.cacti.net/viewforum.php?f=20
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests