just do it in cron every 5 minutes...works well for me
On 7/19/06, Vadim Pushkin <wiskbroom@xxxxxxxxxxx> wrote:
> On the contrary, this *is* the best way. Try loading data, especially from
> very chatty NT boxes, then reload everytime you do a search, see how long
> this takes. You can always run this from cron, same way you do
> logrotate.php, or even manually after you've pointed a new server at it, but
> *not* dynamically, that would be far too ineffective...
>
>
> >From: "Freeman, Michael" <mfreeman@xxxxxxxxxxxx>
>
> >That is sub-optimal.. It should be done "on-demand"..
> >
> >-----Original Message-----
> >From: Vadim Pushkin [mailto:wiskbroom@xxxxxxxxxxx]
> >Sent: Wednesday, July 19, 2006 5:23 PM
> >To: Freeman, Michael; php-syslog-ng-support@xxxxxxxxxxxxxxxxxxxxx
> >Cc: cdukes@xxxxxxxxxx
> >Subject: RE: [Php-syslog-ng-support] Host count on main page is broken?
> >
> >When you go to "Config" then to the bottom of that page and click on
> >"Reload Cache", it updates the names and count of all of the hosts you
> >have as an option on the first page.
> >
> >.vp
> >
> > >From: "Freeman, Michael" <mfreeman@xxxxxxxxxxxx>
> >
> > >Re-load cache? 8) why would I do that?
> > >
> > >-----Original Message-----
> > >From: Vadim Pushkin [mailto:wiskbroom@xxxxxxxxxxx]
> > >Sent: Wednesday, July 19, 2006 5:00 PM
> > >To: Freeman, Michael; php-syslog-ng-support@xxxxxxxxxxxxxxxxxxxxx
> > >Cc: cdukes@xxxxxxxxxx
> > >Subject: RE: [Php-syslog-ng-support] Host count on main page is broken?
> > >
> > >
> > >Look in includes/search.php and search for hostcount and hostarray.
> > >Mine shows this properly, have you re-run the reload cache?
> > >
> > >.vp
> > >
> > >
> > > >From: "Freeman, Michael" <mfreeman@xxxxxxxxxxxx>
> > >
> > > >The counter that displays how many hosts are in the database on the
> > > >mainpage only shows two hosts, from the sample data, when I know
> > > >there are at least 3.
> > > >
> > > >How is this being built?
>
>
>
--
=============================
Clayton Dukes
Network Consulting Engineer, Advanced Services
Cisco Systems, Inc.
Office: 919.392.6122
Fax: : 919.869.1580
Cell: 813.545.7373
Email: cdukes@xxxxxxxxx
MSN: cdukes@xxxxxxxxx
=============================
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|