time interval of a data input method

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

Moderators: Developers, Moderators

Post Reply
betobaracho
Posts: 21
Joined: Wed Feb 24, 2010 9:51 am

time interval of a data input method

Post by betobaracho »

a data input method is being called several times in the same time interval.

how do I that he is called only once per time interval?

I thank you
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is it called several times on the same host?
This will happen, if different graphs use the same DIM. Workaround is, to only v´create the first of those graphs as usual. The others will have to be created from "Graph management" by using "Add" and assigning the already existing data source items to your new graph
R.
betobaracho
Posts: 21
Joined: Wed Feb 24, 2010 9:51 am

Post by betobaracho »

Yes he is called the MID for the same host more than once.
there is only one graph using the DIM

php command <my path> / pooler.php is configured in crontab to run every 5 minutes, then the command: sh my_script myhost is called more than once.

this is not some setting?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see "System Utilities -> View Poller Cache" and serach for the script to know were it is called
R.
betobaracho
Posts: 21
Joined: Wed Feb 24, 2010 9:51 am

Post by betobaracho »

See the poller cache and the cacti log.
they show that the script is being called more than once every time interval
Attachments
cache poller
cache poller
t.png (10.48 KiB) Viewed 701 times
log file
log file
t2.png (12.39 KiB) Viewed 701 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

May you please post an example of your graph, then?
As I already told you, this behaviour is very well known when using multiple graphs calling the same data source. Usually, when using a single graph, you won't call the same DIM multiple times. But this depends on the exact definition of the graph.
That's why I need a screenshot of the graph template items
R.
betobaracho
Posts: 21
Joined: Wed Feb 24, 2010 9:51 am

Post by betobaracho »

dear Gandalf. Actually I made a mistake and could not find it. I had excluded graphic, but had left its data source's present. Then it happened again when I created my script was called more than once. Thank you and the problem is solved.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests