cacti is not graphing
Moderators: Developers, Moderators
cacti is not graphing
hy
i'm using cacti 0.8.6.j with all the patches applied for this version, on a gentoo system with php 5.1.6 and rrdtool 1.2.15
the problem i'm having is that sometimes some graphs do not update like shown in the pictures attached.
i have 65 hosts with 1656 data sources
in the cacti log it shows:
03/30/2007 06:30:40 PM - SYSTEM STATS: Time:37.8111 Method:cmd.php Processes:1 Threads:N/A Hosts:65 HostsPerProcess:65 DataSources:2500 RRDsProcessed:1567
03/30/2007 06:35:06 PM - PHPSVR: Poller[0] Maximum runtime of 292 seconds exceeded for the Script Server. Exiting.
the problem is the same with almost all the hosts that are using this data query (snmp get mounted partition)
But i'm also having problems with other graphs that have some breaks in them.Is it because of the number of the data sources being processed?
i'm using cacti 0.8.6.j with all the patches applied for this version, on a gentoo system with php 5.1.6 and rrdtool 1.2.15
the problem i'm having is that sometimes some graphs do not update like shown in the pictures attached.
i have 65 hosts with 1656 data sources
in the cacti log it shows:
03/30/2007 06:30:40 PM - SYSTEM STATS: Time:37.8111 Method:cmd.php Processes:1 Threads:N/A Hosts:65 HostsPerProcess:65 DataSources:2500 RRDsProcessed:1567
03/30/2007 06:35:06 PM - PHPSVR: Poller[0] Maximum runtime of 292 seconds exceeded for the Script Server. Exiting.
the problem is the same with almost all the hosts that are using this data query (snmp get mounted partition)
But i'm also having problems with other graphs that have some breaks in them.Is it because of the number of the data sources being processed?
- Attachments
-
- Clipboard01.jpg (60.13 KiB) Viewed 13910 times
i' ve followed the link that you've said
when i run
php -q cmd.php <id> <id>
with the id of the host and the data source for which the graph doesn't work it does not show any error and in the graph it creates one line (as you can se in the picture attached) for the period of time that it run the command.
what is strange in my opinion is that the other graps for which the same querry, data source and graph didn't work also , are working and they create a line for the exact period of time.It's like when i'm runing the script for one host and one data source in fact i'm running it for all and all works well, but when the script gets run by the crontab it doesn't work
I'm also having breaks in other graphs with other graph templates at random for a small period of time too
when i run
php -q cmd.php <id> <id>
with the id of the host and the data source for which the graph doesn't work it does not show any error and in the graph it creates one line (as you can se in the picture attached) for the period of time that it run the command.
what is strange in my opinion is that the other graps for which the same querry, data source and graph didn't work also , are working and they create a line for the exact period of time.It's like when i'm runing the script for one host and one data source in fact i'm running it for all and all works well, but when the script gets run by the crontab it doesn't work
I'm also having breaks in other graphs with other graph templates at random for a small period of time too
in the cacti.log i found this:
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] WARNING: Result from SERVER not valid. Partial Result:
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] SERVER: /var/www/cacti/htdocs/scripts/ss_host_disk.php ss_host_disk localhost 78 1:161:500::MD5::[None] get used 33, output: U
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] WARNING: Result from SERVER not valid. Partial Result:
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] SERVER: /var/www/cacti/htdocs/scripts/ss_host_disk.php ss_host_disk localhost 78 1:161:500::MD5::[None] get total 33, output: U
04/02/2007 10:30:29 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/htdocs/rra/localhost_hdd_total_2193.rrd --template hdd_total:hdd_used 1175499028:U:U
when i run snmpwalk with the oid's found in ../resource/snmp_queries/host_disk.xml i get this results:
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.1
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.32 = INTEGER: 32
HOST-RESOURCES-MIB::hrStorageIndex.33 = INTEGER: 33
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.2
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.8 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.32 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.33 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /sys
HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /var
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.4
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.32 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.33 = INTEGER: 4096 Bytes
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2075504
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 3063492
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 255112
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 1238644
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 987988
HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 9767220
HOST-RESOURCES-MIB::hrStorageSize.32 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.33 = INTEGER: 28992410
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.6
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 1955484
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 1955520
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 36
HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 1130229
HOST-RESOURCES-MIB::hrStorageUsed.32 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.33 = INTEGER: 15848027
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] WARNING: Result from SERVER not valid. Partial Result:
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] SERVER: /var/www/cacti/htdocs/scripts/ss_host_disk.php ss_host_disk localhost 78 1:161:500::MD5::[None] get used 33, output: U
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] WARNING: Result from SERVER not valid. Partial Result:
04/02/2007 10:30:28 AM - CMDPHP: Poller[0] Host[78] DS[2193] SERVER: /var/www/cacti/htdocs/scripts/ss_host_disk.php ss_host_disk localhost 78 1:161:500::MD5::[None] get total 33, output: U
04/02/2007 10:30:29 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/htdocs/rra/localhost_hdd_total_2193.rrd --template hdd_total:hdd_used 1175499028:U:U
when i run snmpwalk with the oid's found in ../resource/snmp_queries/host_disk.xml i get this results:
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.1
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.32 = INTEGER: 32
HOST-RESOURCES-MIB::hrStorageIndex.33 = INTEGER: 33
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.2
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.8 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.32 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.33 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /sys
HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /var
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.4
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.32 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.33 = INTEGER: 4096 Bytes
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2075504
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 3063492
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 255112
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 1238644
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 987988
HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 9767220
HOST-RESOURCES-MIB::hrStorageSize.32 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.33 = INTEGER: 28992410
mon1 log # snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.25.2.3.1.6
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 1955484
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 1955520
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 36
HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 1130229
HOST-RESOURCES-MIB::hrStorageUsed.32 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.33 = INTEGER: 15848027
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please try my alternative and pure snmp approach:
http://forums.cacti.net/viewtopic.php?p=56259#56259
Reinhard
http://forums.cacti.net/viewtopic.php?p=56259#56259
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Me to
Please follow the instructions given in this thread. Your current info is too weak to give us an idea of the exact cause of your problem. And it would be better to open an new thread unless it is exact the same issue (with disk usage template)start255 wrote:Hi, i have been seeing this problem also.
It works just fine if i run it from the command line but not from cron.
It also only seems to be new graphs, there is no problem with perms on the files that i can see.
Reinhard
OK, thanks for the tip.I've replaced the template that was not working with the one in the link that you've gave me.
But as i have said i have problems with other template. One of them is ApacheStats0.6 from here http://forums.cacti.net/viewtopic.php?t ... c&start=30
I ran the script manually and it works but it does not create graphs.But the template does not work for the new graphs that i create.For the older ones it does
I forgot to mention that i have upgraded a month ago from 0.8.6i to 0.8.6j
But as i have said i have problems with other template. One of them is ApacheStats0.6 from here http://forums.cacti.net/viewtopic.php?t ... c&start=30
I ran the script manually and it works but it does not create graphs.But the template does not work for the new graphs that i create.For the older ones it does
I forgot to mention that i have upgraded a month ago from 0.8.6i to 0.8.6j
Who is online
Users browsing this forum: No registered users and 2 guests