Just what perms are required?
Moderators: Developers, Moderators
Just what perms are required?
I'm setting up cacti/php/mysql/rrdtool/IIS on a Windows 2000 server in an AD environment - I've got it all going aside from actually being able to run rrdtool - I get this error:
Warning: popen(c:\\rrdtool\\rrdtool.exe graph - --imgformat=PNG --start=-86400 --title="EXCH Interface" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="" 2>&1,rb): No error in C:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 58
Warning: fgets(): supplied argument is not a valid stream resource in C:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 72
I've seen some people say that you have to give cmd.exe certain permissions - but HOW? internet guest account? I see IUSR* and IWAM* accounts as builtin by Windows - is this what i'm looking for?
Someone please point out what permissions are truly required, as it's already risky to be haphazardly assigning this stuff to cmd.exe ..
thanks!
Warning: popen(c:\\rrdtool\\rrdtool.exe graph - --imgformat=PNG --start=-86400 --title="EXCH Interface" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="" 2>&1,rb): No error in C:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 58
Warning: fgets(): supplied argument is not a valid stream resource in C:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 72
I've seen some people say that you have to give cmd.exe certain permissions - but HOW? internet guest account? I see IUSR* and IWAM* accounts as builtin by Windows - is this what i'm looking for?
Someone please point out what permissions are truly required, as it's already risky to be haphazardly assigning this stuff to cmd.exe ..
thanks!
I'm replying to my own article to bump it to the top - I see people have gone through this problem, but no one has posted the actual solution, only mentioning what they've done.
I've got IIS lockdown on this server if that changes anything, both IUSR* accts (I had two, both with random looking generated names) have read/execute perms on cmd.exe - someone please help...
I've got IIS lockdown on this server if that changes anything, both IUSR* accts (I had two, both with random looking generated names) have read/execute perms on cmd.exe - someone please help...
Cacti uses cmd.exe because it runs all the scripts (in cmd.php) using shell exec (backticks execution operator).
You may try with FastCGI instead of ISAPI as described here: http://php.weblogs.com/fastcgi_with_php_and_iis
- bulek
You may try with FastCGI instead of ISAPI as described here: http://php.weblogs.com/fastcgi_with_php_and_iis
- bulek
I looked at trying to go back to the CGI PHP implementation, after I went away from it to use the ISAPI version as recommended in the instructions. Could never get the CGI version to do SNMP correctly with that version, though. I might have to try the FastCGI way. ISAPI is definitely noticeably slower.
But how do you safely work around the CMD.EXE issue? Like brundle said, he didn't feel comfortable running it as IUSR, and neither do I, especially given what can be done with CMD.EXE. I have to imagine there's some other way to do this without having to use CMD.EXE, no?
But how do you safely work around the CMD.EXE issue? Like brundle said, he didn't feel comfortable running it as IUSR, and neither do I, especially given what can be done with CMD.EXE. I have to imagine there's some other way to do this without having to use CMD.EXE, no?
AFAIK you need to run shell (cmd.exe in this case) to do some scripting and IO redirection. For example such custom script like:
type c:\apache\logs\access.log | wc -l
needs shell interpretation of "|" symbol to make pipe between processes. Such feature is of course not required in all cases but it makes custom scripting in cacti much more flexible.
- bulek
type c:\apache\logs\access.log | wc -l
needs shell interpretation of "|" symbol to make pipe between processes. Such feature is of course not required in all cases but it makes custom scripting in cacti much more flexible.
- bulek
Thanks, but might not do me much good since I'm running IIS6.
It's frustrating as my export graphs work and the cmd.php seems to execute properly. The sticky in the Win32 section says there's an issue with PHP and graphing, which could be the reason I'm having this problem. But no one here seems to have gotten internal Cacti graphing to work as advertised (or at least can't explain what they did in an IIS environment).
It's frustrating as my export graphs work and the cmd.php seems to execute properly. The sticky in the Win32 section says there's an issue with PHP and graphing, which could be the reason I'm having this problem. But no one here seems to have gotten internal Cacti graphing to work as advertised (or at least can't explain what they did in an IIS environment).
infuseweb wrote:Thanks, but might not do me much good since I'm running IIS6.
This was just an example of script with output pipelining to show you why cmd.exe is used by cacti... notthing to do with apache or IIS.
I can see quite a lot of hints in sticky post. There are some info on IIS turning into CGI mode, the same for Apache. Last post even suggests FastCGI on IIS which may be the best option for you. Main problem here is PHP 4.3.x line which has unresolved bug (btw, has anybody tried recent 4.3.4 version?). I am using PHP 4.2.3 on Windows without any problem for months.infuseweb wrote:But no one here seems to have gotten internal Cacti graphing to work as advertised (or at least can't explain what they did in an IIS environment).
- bulek
Who is online
Users browsing this forum: No registered users and 2 guests