Script Problems

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
junkmail
Posts: 7
Joined: Wed Nov 19, 2008 11:26 am

Script Problems

Post by junkmail »

I wrote a perl script to monitor the available bandwidth to and from remote hosts. Works perfectly for site A but for site B, it is sporadic. Always plots a value for the 'To' direction but misses values for the 'From' direction about half the time. Very annoying. I rewrote the script in php but it has the same problem.

Both 'To' and 'From' values are recorded in the log correctly but an rrddump shows the missing values are NaN.

How can the value be logged correctly but not make it to the rrd file? What might I do to correct this?

Thanks.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Script Problems

Post by BSOD2600 »

junkmail wrote:How can the value be logged correctly but not make it to the rrd file? What might I do to correct this?
please post the relevant sections of the cacti.log from debug mode showing the script being executed, data returned, data mapped and lastly rrdtool update command.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests