Re: Cacti script_server index invocation

Gandalf <[email protected]> Thu, 18 Jun 2015 19:06:28 +0200
Newsgroups gmane.network.cacti.user
Message-ID <[email protected]>
This depends on the "re-index setting".
"Uptime goes backwards" == Cacti tracks system uptime. If current value is lower
than resent value (remembered by Cacti), Cacti will assume a rebbot and perform
a reindex operation.
"Index Count Changed" == Cacti _always_ gets the number of indexes present (this
is _not_ a full reindex operation). If previous count <> current count, a full
reindex is done

Counting the index is done the following way:
- in case there is an OID that represents the index count, this single OID is
fetched
- in case of a (server) script query, the script is called with the "index"
operator. Depending on the script, the related action is performed

Reinhard

Am 10.06.2015 um 11:30 schrieb Nitzan Zaifman:
> Hi,
> 
> I've tried the same question in the forums (http://forums.cacti.net/viewtopic.php?f=21&t=54713) for the last couple of days with no reply, I hope someone can pick it up here.
> 
> I don't recall encountering this in the docs nor the FAQs, if it's there please enlighten me and if not IMHO it belongs there.
> 
> I have a very expensive script server "index" query, one I want to do as seldom as possible.
> When does an index query called? once? whenever num_indexes change? can I set it up to only manually as num_indexes is equally as expensive.
> 
> Thanks, Bye, Nitzan.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> cacti-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cacti-user
> 

------------------------------------------------------------------------------