Hello!
Firstly, I'm french so my english isn't very good. Please excuse me.
I have a project to do:
I must have measurement of network equipment with SNMP. This works, but every minutes. I want to have new values every five seconds and record them in a XML file.
Can you help me? Because I am a little lost right now with all the settings...
Thanks.
Have measures every five seconds
Moderators: Developers, Moderators
Re: Have measures every five seconds
AFAIK Cacti and *nix CRON can handle events with minimum of 1 minute interval.
Re: Have measures every five seconds
Well, for Cron I bypassed the problem. Here is what I did:
Then I wrote this line:
My script, poller.sh:
And this is a part of my log file (/var/www/cacti/log/cacti.log):
Poller runs every five seconds(approximatively), but I can't see those measures on my XML files. ( I create them with rrdtool dump...)
Does anyone have an idea?
Thanks.
Code: Select all
crontab -e
Code: Select all
*/1 * * * * /home/matthieu/poller.sh
Code: Select all
#!/bin/sh
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
nohup php /var/www/cacti/poller.php --force > /dev/null 2>&1 &
sleep 5
exec php /var/www/cacti/poller.php --force > /dev/null 2>&1
Code: Select all
04/06/2011 03:12:25 PM - SYSTEM STATS: Time:0.1059 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:25 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:25 PM - SYSTEM STATS: Time:0.1063 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:25 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:25 PM - SYSTEM STATS: Time:0.1068 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:0
04/06/2011 03:12:27 PM - SYSTEM STATS: Time:0.5229 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:6 RRDsProcessed:2
04/06/2011 03:12:30 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:30 PM - SYSTEM STATS: Time:49.1228 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:30 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:30 PM - SYSTEM STATS: Time:0.1049 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:0
04/06/2011 03:12:30 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:30 PM - SYSTEM STATS: Time:0.1052 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:45 RRDsProcessed:0
04/06/2011 03:12:30 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:30 PM - SYSTEM STATS: Time:0.1074 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:30 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:30 PM - SYSTEM STATS: Time:0.1166 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:32 PM - SYSTEM STATS: Time:0.5198 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:2 RRDsProcessed:1
04/06/2011 03:12:35 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:35 PM - SYSTEM STATS: Time:49.1240 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:35 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:35 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:35 PM - SYSTEM STATS: Time:0.1064 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:35 PM - SYSTEM STATS: Time:0.1054 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:35 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:35 PM - SYSTEM STATS: Time:0.1075 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:35 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:35 PM - SYSTEM STATS: Time:0.1206 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:0
04/06/2011 03:12:37 PM - SYSTEM STATS: Time:0.5224 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:2 RRDsProcessed:1
04/06/2011 03:12:40 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:40 PM - SYSTEM STATS: Time:49.1217 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:45 RRDsProcessed:0
04/06/2011 03:12:40 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:40 PM - SYSTEM STATS: Time:0.1054 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:0
04/06/2011 03:12:40 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:40 PM - SYSTEM STATS: Time:0.1057 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:45 RRDsProcessed:0
04/06/2011 03:12:40 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:40 PM - SYSTEM STATS: Time:0.1060 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:40 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:40 PM - SYSTEM STATS: Time:0.1294 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:45 RRDsProcessed:0
04/06/2011 03:12:41 PM - SYSTEM STATS: Time:0.1097 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:45 RRDsProcessed:1
04/06/2011 03:12:42 PM - CMDPHP: Poller[0] WARNING: SNMP GetNext Timeout for Host:'cc00.6cure.net', and OID:'.1.3'
04/06/2011 03:12:45 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:45 PM - SYSTEM STATS: Time:49.1218 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:45 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:45 PM - SYSTEM STATS: Time:0.1052 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
04/06/2011 03:12:45 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:45 PM - SYSTEM STATS: Time:0.1061 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:0
04/06/2011 03:12:45 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
04/06/2011 03:12:45 PM - SYSTEM STATS: Time:0.1098 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:0
Does anyone have an idea?
Thanks.
Re: Have measures every five seconds
AFAIK rrdtool minimum granularity is 1 minute.
[url=http://www.x-graphs.com/]http://www.x-graphs.com[/url] [color=red]X[/color]-[color=blue]graphs[/color] :: All kind of graphs
Who is online
Users browsing this forum: No registered users and 7 guests