Help needed to graph wireless signal strength

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

TheWitness wrote:Ewwww, minus signs. You need Cacti 0.8.6d and RRDTool 1.2.x
Whats wrong with negative numbers? I have been graphing negative numbers with Cacti 0.8.6c and rrdtool 1.0.49. Just don't forget to set the min setting for the data tempate to a negative number lower than what your device would output.
Lewis
Posts: 40
Joined: Thu May 19, 2005 8:04 pm

Post by Lewis »

TheWitness wrote:Updating to 0.8.6d is as simple as replacing files. However, you installed from RPM, that could have a lasting affect if you were to do that. I am not too sure I can help.

TheWitness
i uninstalled Debian's version and installed Cacti from source.

the same problem...

this is a part of the log file....

Code: Select all

 05/20/2005 04:10:03 PM - SYSTEM STATS: Time: 1.3071 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
05/20/2005 04:10:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/noc/public_html/cacti/rra/wifiuom_snmp_oid_8.rrd --template snmp_oid 1116594602:-77
05/20/2005 04:10:02 PM - CMDPHP: Poller[0] Time: 0.2040 s, Theads: N/A, Hosts: 1
05/20/2005 04:10:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/20/2005 04:10:02 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 10.106.0.218, dsname: snmp_oid, oid: .1.3.6.1.4.1.14988.1.1.1.2.1.3.0.2.111.33.50.21.4, output: -77
05/20/2005 04:10:02 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '10.106.0.218'.
05/20/2005 04:10:02 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
05/20/2005 04:10:02 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/20/2005 04:10:02 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/20/2005 04:10:02 PM - PHPSVR: Poller[0] DEBUG: FILENM: /home/noc/public_html/cacti/script_server.php
05/20/2005 04:10:02 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /home/noc/public_html/cacti
05/20/2005 04:10:02 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /home/noc
05/20/2005 04:10:02 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/20/2005 04:10:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/noc/public_html/cacti/cmd.php 0 2]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What BSOD was referring to was the minimum value that your RRDfile will accept. You should change the data template to make the minimum value either "U" or some negative number.

Then, delete your existing RRD files and things should theoretically start to work.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lewis
Posts: 40
Joined: Thu May 19, 2005 8:04 pm

Post by Lewis »

ok, i started from the beginning...


i installed from source:
cacti-0.8.6d
rrdtool-1.2.8

i went to graph templates.
checked SNMP - Generic OID Template and created a duplicate one.
i gave it a new name and set upper limit to -20 and lower limit to -100.
i saved it. Created a new device, using as host template "generic snmp-enabled host". I deleted SNMP interface statistics, since i dont need it..
Clicked create graphs for this host. Selected the duplicated template.
in Data source i set maximum value to 1, data type Gauge and added the appropriate oid.
when i tried to see the graph using debugging mode, i got this message:
RRDTool Says:
ERROR: opening '/home/noc/public_html/cacti/rra/wifiuom_snmp_oid_9.rrd': No such file or directory
Probably the poller.php script must run...
after a few minutes, the graph appears but it still contains no data..

your suggestions ?

this is the full debug log:

Code: Select all

05/20/2005 09:20:44 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/noc/public_html/cacti/cmd.php 0 3]
05/20/2005 09:20:44 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/20/2005 09:20:44 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /home/noc/public_html/cacti
05/20/2005 09:20:44 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /home/noc/public_html/cacti
05/20/2005 09:20:44 PM - PHPSVR: Poller[0] DEBUG: FILENM: /home/noc/public_html/cacti/script_server.php
05/20/2005 09:20:44 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/20/2005 09:20:44 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/20/2005 09:20:44 PM - CMDPHP: Poller[0] Host[3] PING: Host is Alive
05/20/2005 09:20:44 PM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
05/20/2005 09:20:44 PM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 1 items in the auto reindex cache for '10.106.0.218'.
05/20/2005 09:20:44 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 10.106.0.218, dsname: snmp_oid, oid: .1.3.6.1.4.1.14988.1.1.1.2.1.3.0.48.79.41.253.207.3, output: -58
05/20/2005 09:20:44 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/20/2005 09:20:44 PM - CMDPHP: Poller[0] Time: 0.1543 s, Theads: N/A, Hosts: 1
05/20/2005 09:20:45 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool-1.2.8/bin/rrdtool update /home/noc/public_html/cacti/rra/wifiuom_snmp_oid_12.rrd --template snmp_oid 1116613244:-58
05/20/2005 09:20:45 PM - SYSTEM STATS: Time: 1.0229 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
05/20/2005 09:20:45 PM - EXPORT: Poller[0] Running graph export
05/20/2005 09:20:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool-1.2.8/bin/rrdtool graph /home/noc/public_html/images/cacti/thumb_10.png  --imgformat=PNG  --start=-86400  --end=-300  --title="WIFI@UOM - Signal Strength - bb-hadji"  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=-100  --no-legend  --vertical-label="dBm"  DEF:a="/home/noc/public_html/cacti/rra/wifiuom_snmp_oid_12.rrd":snmp_oid:AVERAGE  AREA:a#F5F800:""
05/20/2005 09:20:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool-1.2.8/bin/rrdtool graph /home/noc/public_html/images/cacti/graph_10_1.png  --imgformat=PNG  --start=-86400  --end=-300  --title="WIFI@UOM - Signal Strength - bb-hadji"  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=-100  --vertical-label="dBm"  DEF:a="/home/noc/public_html/cacti/rra/wifiuom_snmp_oid_12.rrd":snmp_oid:AVERAGE  AREA:a#F5F800:"Signal Strength - bb-hadji"   GPRINT:a:LAST:"Current\:%8.2lf %s"   GPRINT:a:AVERAGE:"Average\:%8.2lf %s"   GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
05/20/2005 09:20:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool-1.2.8/bin/rrdtool graph /home/noc/public_html/images/cacti/graph_10_2.png  --imgformat=PNG  --start=-604800  --end=-1800  --title="WIFI@UOM - Signal Strength - bb-hadji"  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=-100  --vertical-label="dBm"  DEF:a="/home/noc/public_html/cacti/rra/wifiuom_snmp_oid_12.rrd":snmp_oid:AVERAGE  AREA:a#F5F800:"Signal Strength - bb-hadji"   GPRINT:a:LAST:"Current\:%8.2lf %s"   GPRINT:a:AVERAGE:"Average\:%8.2lf %s"   GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
05/20/2005 09:20:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool-1.2.8/bin/rrdtool graph /home/noc/public_html/images/cacti/graph_10_3.png  --imgformat=PNG  --start=-2678400  --end=-7200  --title="WIFI@UOM - Signal Strength - bb-hadji"  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=-100  --vertical-label="dBm"  DEF:a="/home/noc/public_html/cacti/rra/wifiuom_snmp_oid_12.rrd":snmp_oid:AVERAGE  AREA:a#F5F800:"Signal Strength - bb-hadji"   GPRINT:a:LAST:"Current\:%8.2lf %s"   GPRINT:a:AVERAGE:"Average\:%8.2lf %s"   GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
05/20/2005 09:20:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool-1.2.8/bin/rrdtool graph /home/noc/public_html/images/cacti/graph_10_4.png  --imgformat=PNG  --start=-33053184  --end=-86400  --title="WIFI@UOM - Signal Strength - bb-hadji"  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=-100  --vertical-label="dBm"  DEF:a="/home/noc/public_html/cacti/rra/wifiuom_snmp_oid_12.rrd":snmp_oid:AVERAGE  AREA:a#F5F800:"Signal Strength - bb-hadji"   GPRINT:a:LAST:"Current\:%8.2lf %s"   GPRINT:a:AVERAGE:"Average\:%8.2lf %s"   GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

run from a shell script one time.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lewis
Posts: 40
Joined: Thu May 19, 2005 8:04 pm

Post by Lewis »

TheWitness wrote:run from a shell script one time.
i did thousands of times ;(

why are these values are represented as variables in log file ?

Code: Select all

GPRINT:a:LAST:"Current\:%8.2lf %s"   GPRINT:a:AVERAGE:"Average\:%8.2lf %s"   GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

thats the rrdgraph syntax
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

if you would like me to look. I am online msm or aim?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lewis
Posts: 40
Joined: Thu May 19, 2005 8:04 pm

Post by Lewis »

TheWitness wrote:if you would like me to look. I am online msm or aim?
check pm
Lewis
Posts: 40
Joined: Thu May 19, 2005 8:04 pm

Post by Lewis »

Well,

after a 2-hour tutorial from TheWitness, we managed to graph negative numbers ;)

The only thing i have to say, is a BIG THANK U...
p_a_l_o
Posts: 4
Joined: Wed Jun 29, 2005 11:28 am
Contact:

Post by p_a_l_o »

I have similar problem as Lewis. Graphing of signal strength (wireless devices), makes me troubles. What was the solution?


Thanks in advance
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests