Run a web of Cacti without authentication

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
scdit46
Posts: 2
Joined: Wed May 04, 2005 10:38 am

Run a web of Cacti without authentication

Post by scdit46 »

The authenticaction is local.

In the crontab of "Cacti server" I want run:

wget http://server-host/cacti/host.php?actio ... ost_id=260

I need run this script for reindex the datasources "running proccess" for the host "260".

... but Cacti don´t run the script because needs authentication.

What can I do without remove the authentication in Cacti? I want remove the authentication for host.php

Can I make a session php for this script? how?

Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

look in the cli folder. there is already a script for this.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
scdit46
Posts: 2
Joined: Wed May 04, 2005 10:38 am

thanks

Post by scdit46 »

Howie wrote:look in the cli folder. there is already a script for this.
Thanks,

I have execute
/usr/local/php/bin/php -q poller_reindex_hosts.php -id=All
and the execution time is:

real 34m54.489s
user 1m59.100s
sys 2m3.890s


There´s 10000 datasources.

If I remove the authentication and execute the similar script:

for (x = all host)
wget http://server-host/cacti/host.php?actio ... &host_id=x

the execution time is better.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests