Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 25, 2017 2:11 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Perl Script Nan
PostPosted: Wed Jan 25, 2017 5:09 pm 
Offline

Joined: Wed Jan 25, 2017 3:55 pm
Posts: 1
Hi all. I'm trying to monitor http page hits and page load latency using Perl scripts thanks to others that shared their code. The script returns a value when run on the host. I've build the 'Data Input Method', the 'Data Template' and 'Graph Template' and added the graphs to the Device.

'Input Method' like this:

Image

Data Template like this:

Image

and Graph Template like this:

Image

All I get is 'Nan'.

I don't see what's wrong. I am confused by the 'Custom Data' field. This should be the 'Data Input Method' input like it states right? So, 'host'?

Image



Thanks.


Top
 Profile  
 
 Post subject: Re: Perl Script Nan
PostPosted: Sun Jan 29, 2017 6:55 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5948
Location: Michigan, USA
Sounds odd, but make sure your script, if outputting a single value, is outputting a line feed at the end of the value.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group