Problem - nan values in graph [FIXED]

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

Moderators: Developers, Moderators

Post Reply
jgtm
Posts: 12
Joined: Tue Aug 23, 2005 9:16 am

Problem - nan values in graph [FIXED]

Post by jgtm »

Hello,

I am graphing the number of telnet connections per network subnet to a particular server. It uses two data input methods both of which run a bash script that executes an snmpwalk command and then returns the result as an integer.

One particular bash script is for the total number of telnet connections and the other is for querying the number of telnet connections originating from a particular network e.g. from 192.168.* etc.

Looking at the cacti.log it looks as though my scripts are fine however the graph is still showing "nan" values for the all but the total number of telnet connections.

Code: Select all

08/30/2005 03:52:09 PM - SYSTEM STATS: Time: 8.1060 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 91, RRDs Processed 70  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Time: 7.3723 s, Theads: N/A, Hosts: 1  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Host[2] DS[122] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.6, output: 13  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Host[2] DS[121] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.5, output: 2  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Host[2] DS[120] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.194, output: 2  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Host[2] DS[119] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.191, output: 23  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Host[2] DS[118] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.150, output: 1  
08/30/2005 03:52:08 PM - CMDPHP: Poller[0] Host[2] DS[117] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 172.16, output: 7  
...
08/30/2005 03:52:06 PM - CMDPHP: Poller[0] Host[2] DS[116] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns.sh 192.168.96.10 23 192.168.96.10, output: 48
...
I've waiting several polling cycles.

Please assist.
Attachments
telnetconns.JPG
telnetconns.JPG (42.17 KiB) Viewed 3691 times
Last edited by jgtm on Thu Sep 01, 2005 3:30 am, edited 1 time in total.
Regards

James

[size=75]Cacti 0.8.6f Server:-
* HP Proliant DL740 with Red Hat Linux Advanced Server 3.0
* net-snmp-cmaX-libs-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-devel-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-utils-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-perl-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-5.1.2-220 (Red Hat RPM)
* RRDTool 1.2.11 (compiled from source)
* Apache 2.0.54 (compiled from source)
* PHP 4.4.0 (compiled from source)
* MySQL Standard 4.0.25 (Binary linux dist)
[/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

jgtm,

please can you provide the rrdtool update statements from the DEBUG log?

Reinhard
jgtm
Posts: 12
Joined: Tue Aug 23, 2005 9:16 am

Post by jgtm »

Here's the top of the cacti.log with the DEBUG level log setting switched on:

Code: Select all

08/31/2005 08:54:13 AM - SYSTEM STATS: Time: 13.1810 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 91, RRDs Processed 70  
08/31/2005 08:54:13 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_172_16_117.rrd --template 1125474840:6  
08/31/2005 08:54:13 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_192_168_150_118.rrd --template 1125474840:0  
08/31/2005 08:54:13 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_192_168_194_120.rrd --template 1125474840:1  
08/31/2005 08:54:13 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_192_168_191_119.rrd --template 1125474840:9  
08/31/2005 08:54:13 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_192_168_5_121.rrd --template 1125474840:0  
08/31/2005 08:54:13 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_192_168_6_122.rrd --template 1125474840:5  
08/31/2005 08:54:13 AM - CMDPHP: Poller[0] Time: 12.5181 s, Theads: N/A, Hosts: 1  
08/31/2005 08:54:13 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting  
08/31/2005 08:54:13 AM - CMDPHP: Poller[0] Host[2] DS[122] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.6, output: 5  
08/31/2005 08:54:13 AM - CMDPHP: Poller[0] Host[2] DS[121] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.5, output: 0  
08/31/2005 08:54:13 AM - CMDPHP: Poller[0] Host[2] DS[120] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.194, output: 1  
08/31/2005 08:54:13 AM - CMDPHP: Poller[0] Host[2] DS[119] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.191, output: 9  
08/31/2005 08:54:13 AM - CMDPHP: Poller[0] Host[2] DS[118] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 192.168.150, output: 0  
08/31/2005 08:54:12 AM - CMDPHP: Poller[0] Host[2] DS[117] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh 192.168.96.10 23 192.168.96.10 m3and3r 172.16, output: 6  
08/31/2005 08:54:12 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6f/rra/taurus_telnet_conns_116.rrd --template 1125474840:0  
08/31/2005 08:54:12 AM - CMDPHP: Poller[0] Host[2] DS[116] CMD: sh /usr/local/cacti-0.8.6f/scripts/tcp_conns_by_source_ip.sh, output: 0  
Regards

James

[size=75]Cacti 0.8.6f Server:-
* HP Proliant DL740 with Red Hat Linux Advanced Server 3.0
* net-snmp-cmaX-libs-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-devel-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-utils-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-perl-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-5.1.2-220 (Red Hat RPM)
* RRDTool 1.2.11 (compiled from source)
* Apache 2.0.54 (compiled from source)
* PHP 4.4.0 (compiled from source)
* MySQL Standard 4.0.25 (Binary linux dist)
[/size]
jgtm
Posts: 12
Joined: Tue Aug 23, 2005 9:16 am

Post by jgtm »

Fixed it by examining the standard output of poller.php.

It stated that the parameters were incorrect.

I found out that my data input method had no output field specified.

Once I created one the graph was fine.

I examine the standard output of poller.php by putting the following line in the crontab of my cactiuser.

*/2 * * * * /usr/local/bin/php /var/www/html/cacti/poller.php 1>/tmp/poller.out 2>/tmp/poller.err

Then just "less /tmp/poller.out" after a cycle run. With DEBUG LOG on of course.
Regards

James

[size=75]Cacti 0.8.6f Server:-
* HP Proliant DL740 with Red Hat Linux Advanced Server 3.0
* net-snmp-cmaX-libs-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-devel-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-utils-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-perl-5.1.2-220 (Red Hat RPM)
* net-snmp-cmaX-5.1.2-220 (Red Hat RPM)
* RRDTool 1.2.11 (compiled from source)
* Apache 2.0.54 (compiled from source)
* PHP 4.4.0 (compiled from source)
* MySQL Standard 4.0.25 (Binary linux dist)
[/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest