Problem with the consistency of the graphs in Cacti0.8.7b

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

Moderators: Developers, Moderators

Post Reply
praveen_b744
Posts: 14
Joined: Tue May 27, 2008 2:45 am

Problem with the consistency of the graphs in Cacti0.8.7b

Post by praveen_b744 »

I am getting graphs with my Cacti0.8.7b. But those are inconsistence. i.e. there are breakup's in the graphs.

I had gone through the cacti.log and poller.log.

I suspect the following log in cacti.log

19/05/2008 09:59:01 AM - CRONJOB: Cacti database flush start
19/05/2008 09:59:01 AM - CRONJOB: Size of poller_output before truncate: 1
19/05/2008 09:59:01 AM - CRONJOB: Cacti database flush end
19/05/2008 11:05:01 AM - CRONJOB: /tmp/cacti.lock exists. Poller disabled.
19/05/2008 03:05:01 PM - CRONJOB: /tmp/cacti.lock exists. Poller disabled.
19/05/2008 10:35:02 PM - CRONJOB: /tmp/cacti.lock exists. Poller disabled.
19/05/2008 11:05:02 PM - CRONJOB: /tmp/cacti.lock exists. Poller disabled.
20/05/2008 01:05:01 AM - CRONJOB: /tmp/cacti.lock exists. Poller disabled.
20/05/2008 03:05:01 AM - CRONJOB: /tmp/cacti.lock exists. Poller disabled.
20/05/2008 09:59:01 AM - CRONJOB: Cacti database flush start


And I suspect the following log in poller.log,

OK u:0.30 s:0.72 r:155.75
PHP Notice: Undefined variable: config in /var/www/html/cacti/lib/snmp.php on line 34
PHP Warning: Missing argument 9 for cacti_snmp_get() in /var/www/html/cacti/lib/snmp.php on line 40
PHP Warning: Missing argument 10 for cacti_snmp_get() in /var/www/html/cacti/lib/snmp.php on line 40
PHP Notice: Use of undefined constant SNMP_POLLER - assumed 'SNMP_POLLER' in /var/www/html/cacti/lib/snmp.php on line 40
PHP Fatal error: Call to undefined function: read_config_option() in /var/www/html/cacti/lib/snmp.php on line 45
PHP Notice: Undefined variable: config in /var/www/html/cacti/lib/snmp.php on line 34
PHP Warning: Missing argument 9 for cacti_snmp_get() in /var/www/html/cacti/lib/snmp.php on line 40
PHP Warning: Missing argument 10 for cacti_snmp_get() in /var/www/html/cacti/lib/snmp.php on line 40
PHP Notice: Use of undefined constant SNMP_POLLER - assumed 'SNMP_POLLER' in /var/www/html/cacti/lib/snmp.php on line 40
PHP Fatal error: Call to undefined function: read_config_option() in /var/www/html/cacti/lib/snmp.php on line 45



And I find these breakups mainly in "CPU Utilization" graphs
Can any one plz suggest the cause for the inconsistency in my graphs?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The last errors are related to an old script using cacti_snmp_get function (which is NOT a published API). With cacti 087, cacti_snmp_get received some more parameters to fully support SNMP V3.
So please check, if the script used is available in an updated version.
Reinhard
praveen_b744
Posts: 14
Joined: Tue May 27, 2008 2:45 am

Post by praveen_b744 »

Thanks for the reply.

But we are using SNMP version2
praveen_b744
Posts: 14
Joined: Tue May 27, 2008 2:45 am

Post by praveen_b744 »

I have gone through the Debug mode of few graphs which has gaps. And I feel it is fine.

The following is one of the output of the debug mode of the graph,
---------------------------------------------------------------------------------------------------------------------------------------------------------------
RRDTool Command:

/usr/local/rrdtool-1.2.15/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="vmdevrtr001 - Logged in Users" \
--rigid \
--base=1000 \
--height=120 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="users" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:6: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/vmdevrtr001_users_20927.rrd":users:AVERAGE \
DEF:b="/var/www/html/cacti/rra/vmdevrtr001_users_20927.rrd":users:LAST \
DEF:c="/var/www/html/cacti/rra/vmdevrtr001_users_20927.rrd":users:MIN \
DEF:d="/var/www/html/cacti/rra/vmdevrtr001_users_20927.rrd":users:MAX \
AREA:a#4668E4FF:"Users" \
GPRINT:b:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf"
RRDTool Says:

OK
------------------------------------------------------------------------------------------------------------------------------------------------------


What will be the other probabilities for these type of issues?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

praveen_b744 wrote:Thanks for the reply.

But we are using SNMP version2
That does not matter. The function call now requires more parameters. They may be empty, but must exist.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests