Invisible cmd window not invisible anymore since v0.8.6h

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

Moderators: Developers, Moderators

Post Reply
jagbarcelo
Posts: 23
Joined: Mon Nov 21, 2005 4:28 am
Location: Spain

Invisible cmd window not invisible anymore since v0.8.6h

Post by jagbarcelo »

I used to run

through a scheduled task that run:

Code: Select all

c:\windows\system32\wscript.exe c:\inetpub\cactid\invisible.vbs c:\inetpub\cactid\poller.bat
being invisible.vbs:

Code: Select all

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run WScript.Arguments(0), 0, False
and poller.bat:

Code: Select all

<path_to_my_php_dir>\php.exe <path_to_my_cacti_dir>\poller.php
It did the job nicely and the cmd window did not appear on screen every 5 minutes to do the scheduled polling. Now, since upgraded to v0.8.6h, this annoying screen is there again every 5 minutes.

What has changed for this to occurr? Is there a new procedure to get rid of it?

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

Post by BSOD2600 »

Why are you running poller.bat instead of poller.php?

What happens when you manually run the invisable at the commandline?
jagbarcelo
Posts: 23
Joined: Mon Nov 21, 2005 4:28 am
Location: Spain

Invisible cmd window not invisible anymore since v0.8.6h

Post by jagbarcelo »

I have tried to change the command executed by the scheduled task to:

Code: Select all

c:\windows\system32\wscript.exe c:\inetpub\cactid\invisible.vbs c:\inetpub\wwwroot\cacti\poller.php
instead of calling through poller.bat, with the same results: every 5 minutes a console window appears on top of screen. The window caption is 'cactiplus'.

I have also tried to manually execute:

Code: Select all

c:\inetpub\cactid\invisible.vbs c:\inetpub\webs\wwwroot\cacti\poller.php
and also:

Code: Select all

c:\windows\system32\wscript.exe c:\inetpub\cactid\invisible.vbs c:\inetpub\webs\wwwroot\cacti\poller.php
with the very same results.

Any idea? Thanks BSOD2600 for your help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try going back to the orignal invisable.vbs

Code: Select all

Set objWSHShell = WScript.CreateObject("WScript.Shell")
objWSHShell.Run "poller.php", 0, False
Don't really know since I dont use the script. I've created a seperate user account for cacti.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests