How can I prevent the popup windows - cmd.exe - box???

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

Moderators: Developers, Moderators

Post Reply
ghostwolf
Posts: 4
Joined: Mon Sep 19, 2005 6:12 pm

How can I prevent the popup windows - cmd.exe - box???

Post by ghostwolf »

Hello,

I'm a beginner in cacti and I'm really happy with it so far, exept for one point!
I use cacti with Windows XP and anytime when I look to the graphs, refresh or change the presentation of the graphs in any way the cmd.exe - window appears. when I have cacti configured to collect bandwidth of 50 interfaces then the cmd.exe - window is appearing 50 times.

I read in different posts that the problem with the cmd.exe - window can be fixed by create a new user and use this user by the sheduler while work with another user.
This solution works as long as I've closed cacti's graph view but as soon as I open the graph view in cacti to look on my graphs in the graph view the console windows appearing again! I change the view the cmd.exe-window is appearing again and again and again...

Is there any possibility to prevent the popup of the cmd.exe - window???


Thanks,
Ghostwolf
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You have 2 options:

1) Create a local Cacti account and run the scheduled task as that user. If you have problems, you will be able to cancel.
2) Use the system account. In the scheduler, just type the userID "SYSTEM" with a blank password. The only downside of this method is that if you get hung processes, you will have to reboot.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ghostwolf
Posts: 4
Joined: Mon Sep 19, 2005 6:12 pm

How can I prevent the popup windows - cmd.exe - box???

Post by ghostwolf »

THANK YOU for this very fast answer!!!!

I've created a local user and I...

(1) ...logged in as local user create a task for the cacti poller but with my local user-accout I can't start the web-server so it doesn't work on my system

(2) ...logged in with the system-accout create a task for the cacti poller by using the local-accout. This works and no cmd.exe-popup-window appears but only as long as I not open the graph view in cacti.


I test the second one.

I logged in with the system-account and create a task for the cacti poller by using SYSTEM as UserID and without a password. But the result is the same as in (2). It works but when I open the graph view the cmd.exe-windows appears.


I don't understand how cacti works but I think that the popups don't only has it's reason by the task in the sheduler?
When I deactivate the task for the cacti poller and open the graph view in cacti to look at my graphs the cmd.exe-windows appears again. When I click the refresh button the cmd.exe-windows appears once again and this without a running poller-task!

Is it possible that some functions within the cmd.php or another php-script are the reason for the cmd.exe-window popups? Is it possible to change the command line calls in php so that no cmd.exe-windows appear?


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

Post by BSOD2600 »

For the windows environment, it's all about the user accounts. I bet your web server is running under the same login you use daily, so when cacti gets a graph request and launches rrdtool (via cmd.exe), you once again see window(s) open.

The fix for these windows is to run your cacti scheduled task and web server account (in your case) under a different user account than you use daily. For example, create a user called 'cactiuser' and give it the proper permissions to do the tasks Cacti needs.
ghostwolf
Posts: 4
Joined: Mon Sep 19, 2005 6:12 pm

How can I prevent the popup windows - cmd.exe - box???

Post by ghostwolf »

Hi,

you're right! I've made a new install from my webserver under a new user account and use another user account for the scheduler.

...and now I have no popups of the cmd.exe - windows!!
That's the solution!

Thank you very much BSOD2600!!!!!!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest