Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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.
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]
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]
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]