Perl Script Nan

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

Moderators: Developers, Moderators

Post Reply
thebigf100
Posts: 1
Joined: Wed Jan 25, 2017 3:55 pm

Perl Script Nan

Post by thebigf100 »

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.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: Perl Script Nan

Post by rony »

Sounds odd, but make sure your script, if outputting a single value, is outputting a line feed at the end of the value.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests