Different poll intervals for certain scripts

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

Moderators: Developers, Moderators

Post Reply
binand
Posts: 5
Joined: Sat May 28, 2005 1:06 pm

Different poll intervals for certain scripts

Post by binand »

Hi,

My poller.php is run once a minute from cron. There is a Script/Command which I'd like to run once every five minutes. Is it possible with poller.php?

The solution at the moment I have in mind is to return cacti-ized data once every 5 runs, and nothing otherwise. Will this break anything?

Thanks,

Binand
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

I'm not sure I understand. Poller is supposed to run every five minutes, not every minute....
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
binand
Posts: 5
Joined: Sat May 28, 2005 1:06 pm

Post by binand »

I have manually set the poller.php crontab entry to run once every minute.

Essentially, I want script1.pl to run once every poller run, and script2.pl to run once every five runs of the poller. Is this something I can do with the poller settings, or by having two different pollers (one running once a minute and the other once every five minutes), or I should code this inside script2.pl?

Binand
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Not currently supported in 0.8.6
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
binand
Posts: 5
Joined: Sat May 28, 2005 1:06 pm

Post by binand »

Ah OK. I figured as much. I have coded this into a small perl module (let me know if anyone needs the .pm file for similar use - I usually release them as beerware :).

Binand
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests