Scripts working, poller working, but graphs show NAN

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
lucibata
Posts: 1
Joined: Thu Jun 21, 2012 1:44 pm

Scripts working, poller working, but graphs show NAN

Post by lucibata »

I am getting NAN on the graph but my script works and can verify that from command line or from cacti GUI log.

[root@~]# tail -f /var/www/cacti/log/cacti.log | grep 80,443,8080,8443,8507,1935,1111
06/20/2012 10:40:43 PM - SPINE: Poller[0] Host[60] TH[1] DS[2068] SCRIPT: /var/www/cacti/scripts/port_count.pl -H ****** -s ****** -p 80,443,8080,8443,8507,1935,1111, output: 80:0 443:23 8080:0 8443:7 8507:10 1935:43


WRONG OUTPUT
06/21/2012 02:05:45 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/***_1111_2077.rrd --template 1340240722:4.3561808137017E+40

COMAPARED to the same graph on a different server
GOOD OUTPUT
06/20/2012 08:01:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/*****_8507_5142.rrd --template 80:443:8080:8443:8507:1935:1111 1340240450:0:8:1:5:9:34:0

The difference is the data input ( 80,443,8080,8443,8507,1935,1111) missing from rrdtool update line.

SO FAR here what I did:
I checked the permissions and ownership
recreated the graph, removed the RRD files, restarted mysql switch between SPINE and CMD (SPINE is default).
Imported a new template from a working one.
Removed the script and imported from working server
I don't know what else to do now.

Your help is appreciated.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Scripts working, poller working, but graphs show NAN

Post by gandalf »

Please search for "map" after the line showing that script output. On a multi-output-field script, you should find those mappings. Show them to us
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests