implementing cacti

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

Moderators: Developers, Moderators

Post Reply
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

implementing cacti

Post by Herminator »

I want to intsall cacti to monitor a windows server environment. About 10 server and maybe some printers.

I have tested the poller.php on a local system. I see it uses almost 100% proc usage when it is polling. Is it possible to place the poller or maybe cactid on a server wich can take care about the load. The server where the cacti webpage would be installed is a busy web server. So i prefer to take off the load of the poller.

Is there a solution for this?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, it is possible to place the cactid.exe poller on another machine... but first you really should fix the problem of the cmd.php poller using 100% cpu.

Do you have working graphs and rrd files?
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

Post by Herminator »

Every graph does work. So it isn't normal that the poller uses so much proc when it runs? I now have 3 server in cacti and takes about 15-20 sec when the taks scheduler runs the cmd.php poller.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, it is normal for it to use a lot of CPU when the poller runs, especially if you have a lot of pollers.
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

Post by Herminator »

I have turned on cactid. It runs now without problems.
All hosts are Up.
But the graphs won't update. I have no errors when i run cactid with debug.
Did i miss a setting somewhere?
I also have update cactid from 0.8.6e to 0.8.6f

Update.
When i use the task manager is gives the following
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6f starting
NO log handling enabled - turning on stderr logging
//.snmp/snmp.conf: No such host or network path
//.snmp/snmp.local.conf: No such host or network path
//.snmp/cactid.conf: No such host or network path
//.snmp/cactid.local.conf: No such host or network path


I changed back tp cmd.php. All the graphs are working again without loss of statistics. So the cactid does log everything but it doesn't put it in the graphs somehow.


Is it right when i select cactid in de settings. The poller.php wil choose cactid.exe? First i scheduled cacti.exe itself and then it won't update the graphs. But when i select the cactid in the website and schedule the poller.php it takes also quit long so im not sure if im using cactid.exe right now.


update
I think it works well and i did things i did not had to do.
when i select cmp.php it takes about 15 sec. when i select cactid it takes about 15seconds. with the same taks scheduler of poller.php. Cactid should be faster?


And a last question. It it possible to run cactid only on a computer with no php and apache installed. So it will only run the poller proces and take away the heavy load on the webserver.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, cactid is faster when you have mainly lots of SNMP queries. Try increasing the thread count.

Yes, you can run cactid on another computer, although it's not recommended.
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

Post by Herminator »

then how can i run cactid without php beacuase i need it to run with poller.php? If i run cactd.exe in a taks scheduler the graphs won't update until i run poller.php again.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm, well before the use of poller.php, one could simply run cactid.exe on another computer... I see your point and retract my previous statement. I don't think it's possible anymore to easily run cactid.exe on another computer.

The only method I can think of, is to remotely spawn cactid.exe to run on a seperate computer via cacti. For example, on your cacti machine, you create a batch file like:

Code: Select all

@echo off
psexec \\computer -d -w c:\cactid\ cactid.exe
Then you tell Cacti, the path to cactid is: c:\wwwroot\cactiscript.cmd. I think that *should* launch cactid on a remote computer....
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest