Hello,
After installing and running cacti there are no graphs visible.
The debug output via Graph Management tels me this:
RRDTool Says:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="hp - Traffic - G24" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c\:\inetpub\wwwroot\cacti/rra/hp_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c\:\inetpub\wwwroot\cacti/rra/hp_traffic_in_10.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" 2>&1,rb): No error in c:\inetpub\wwwroot\cacti\lib\rrd.php on line 58
Warning: fgets(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\cacti\lib\rrd.php on line 72
What is the problem with my installation???
Thanks,
Emiel
No graphs after installing incl. debug log
Moderators: Developers, Moderators
Re: No graphs after installing incl. debug log
Hello,
After changing the permissions for the cmd.exe cacti is working.
Here is the command to do this:
c:\windows\system32\cacls cmd.exe
C:\windows\system32\cmd.exe TOOLS\IUSR_TOOLS:N
BUILTIN\Users:R
BUILTIN\Power Users:R
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
In my case TOOLS\IUSR_TOOLS (IIS - default web site properties - Directory Security - Anonymouse and ......) must have executable rights to the cmd.exe command.
To change these permissions do the following:
cacls cmd.exe /E /P IUSR_TOOLS:F (do not forget the /E)
Good luck
Emiel
After changing the permissions for the cmd.exe cacti is working.
Here is the command to do this:
c:\windows\system32\cacls cmd.exe
C:\windows\system32\cmd.exe TOOLS\IUSR_TOOLS:N
BUILTIN\Users:R
BUILTIN\Power Users:R
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
In my case TOOLS\IUSR_TOOLS (IIS - default web site properties - Directory Security - Anonymouse and ......) must have executable rights to the cmd.exe command.
To change these permissions do the following:
cacls cmd.exe /E /P IUSR_TOOLS:F (do not forget the /E)
Good luck
Emiel
Emiel wrote:Hello,
After installing and running cacti there are no graphs visible.
The debug output via Graph Management tels me this:
RRDTool Says:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="hp - Traffic - G24" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c\:\inetpub\wwwroot\cacti/rra/hp_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c\:\inetpub\wwwroot\cacti/rra/hp_traffic_in_10.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" 2>&1,rb): No error in c:\inetpub\wwwroot\cacti\lib\rrd.php on line 58
Warning: fgets(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\cacti\lib\rrd.php on line 72
What is the problem with my installation???
Thanks,
Emiel
debug output via Graph Management - Error Line 58 and Line 7
Hi
The hint that the iusr_webserver does not have enough rights to access cmd.exe was absolutely correct. But to apply the read/execute rights to the user iusr_webserver does not give the user the necessary access. The problem is that the user iusr_webserver is member in the group "Web Anonymous Users". And this group has denied access to the file cmd.exe. In Windows System Denied access always applies even if explicit rights are given to the user.
Solution:
Show the NTFS-Rights of the file cmd.exe and
a) remove the group "Web Anonymous Users"
b) add the user iusr_webserver and apply read/execute rights
Regards
Reto
The hint that the iusr_webserver does not have enough rights to access cmd.exe was absolutely correct. But to apply the read/execute rights to the user iusr_webserver does not give the user the necessary access. The problem is that the user iusr_webserver is member in the group "Web Anonymous Users". And this group has denied access to the file cmd.exe. In Windows System Denied access always applies even if explicit rights are given to the user.
Solution:
Show the NTFS-Rights of the file cmd.exe and
a) remove the group "Web Anonymous Users"
b) add the user iusr_webserver and apply read/execute rights
Regards
Reto
Who is online
Users browsing this forum: No registered users and 1 guest