smartBridges Device Monitoring

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

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your get's are your problem. That is what Cacti uses to obtain values for the graphs.

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, please note, your poller cache is lacking "action 1" which would be the perl scripts and please note the get's should be formatted as such:

perl <my script> get value index

Value is something like RfWhatchamacallit
Index in your specific case will always be 1 (aka Whalen)

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?
User avatar
rwhalen
Posts: 23
Joined: Sun Oct 02, 2005 7:36 pm
Location: Belleville, MI

Post by rwhalen »

Ok...i see what you are saying...

So from the box, my gets now work if i add 1 after them:


Example:
perl sb_cacti.pl 192.168.1.15 public get WirelessRx 1

So basically we have confirmed that the perl script (sb_cacti.pl) is working, correct?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, look at your poller cache for the entries and make sure they end with the "1" as we had discussed.

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Forgot, you haven't created them it would appear, or they are damaged somehow.

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?
User avatar
rwhalen
Posts: 23
Joined: Sun Oct 02, 2005 7:36 pm
Location: Belleville, MI

Post by rwhalen »

Thanks for your help...I didn't quite understand what you meant at first (I'm new to Cacti) but I think I know what you meant now...

Here is my poller cache as it sits now:
Data Source: Whalen airBridge - Wireless Port Statistics
RRD: /usr/local/share/cacti/rra/whalen_airbridge_wireless_tx_107.rrd
Action: 1, Script: /usr/local/bin/perl /usr/local/share/cacti/scripts/sb_cacti.pl 192.168.1.15 public get WirelessRx 1
Data Source: Whalen airBridge - Wireless Port Statistics
RRD: /usr/local/share/cacti/rra/whalen_airbridge_wireless_tx_107.rrd
Action: 1, Script: /usr/local/bin/perl /usr/local/share/cacti/scripts/sb_cacti.pl 192.168.1.15 public get WirelessTx 1
Data Source: Whalen airBridge - Ethernet Port Statistics
RRD: /usr/local/share/cacti/rra/whalen_airbridge_eth_tx_106.rrd
Action: 1, Script: /usr/local/bin/perl /usr/local/share/cacti/scripts/sb_cacti.pl 192.168.1.15 public get EthRx 1
Data Source: Whalen airBridge - Ethernet Port Statistics
RRD: /usr/local/share/cacti/rra/whalen_airbridge_eth_tx_106.rrd
Action: 1, Script: /usr/local/bin/perl /usr/local/share/cacti/scripts/sb_cacti.pl 192.168.1.15 public get EthTx 1
Data Source: Whalen airBridge - Wireless Level
RRD: /usr/local/share/cacti/rra/whalen_airbridge_media_rssi_105.rrd
Action: 1, Script: /usr/local/bin/perl /usr/local/share/cacti/scripts/sb_cacti.pl 192.168.1.15 public get MediaLinkQuality 1
Data Source: Whalen airBridge - Wireless Level
RRD: /usr/local/share/cacti/rra/whalen_airbridge_media_rssi_105.rrd
Action: 1, Script: /usr/local/bin/perl /usr/local/share/cacti/scripts/sb_cacti.pl 192.168.1.15 public get MediaRssi 1
So the poller cache looks good right now. If I go to "Devices", the device I am trying to monitor shows up as Down. I went into settings -> poller and changed "Downed Host Detection" to Ping to try and see if that fixed it, but no change...

The graphs are showing up as broken links at the moment...I tried clearing the poller cache as well.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

what happens if you set availability to SNMP only?

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?
User avatar
rwhalen
Posts: 23
Joined: Sun Oct 02, 2005 7:36 pm
Location: Belleville, MI

Post by rwhalen »

That works fine for all of my other devices, but not this one. I am trying Ping and SNMP right now but that doesnt seem to work either.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you edit lib/ping.php line 353, or just look for "if (!$ping_result)" and change it to "if ($ping_result)" and then return TRUE on the next line, it will work with either or. Right now the behavior is that both ping and snmp must work.

This will change in 0.9.

TheWitness

NOTE: this is for avail ping & snmp.
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
rwhalen
Posts: 23
Joined: Sun Oct 02, 2005 7:36 pm
Location: Belleville, MI

Post by rwhalen »

I edited the lib/ping.php file (line 353) to:

Code: Select all

if ($ping_result)
    return true;
I am using Ping & SNMP right now, but the device shows up as down still.
User avatar
rwhalen
Posts: 23
Joined: Sun Oct 02, 2005 7:36 pm
Location: Belleville, MI

Post by rwhalen »

I tried changing the ping type from UDP to ICMP as well, and that didnt change anything. I tried using root as the user that runs the poller.php too...

I also saw this when i tried to run the poller from the command prompt:

Code: Select all


Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.1.3.0

Cannot find module (NONE): At line 0 in (none)
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.1.3.0

Cannot find module (NONE): At line 0 in (none)
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.1.3.0

OK u:0.00 s:0.06 r:6.28
OK u:0.00 s:0.06 r:6.28
OK u:0.00 s:0.06 r:6.28
OK u:0.01 s:0.06 r:6.29
OK u:0.01 s:0.06 r:6.29
OK u:0.01 s:0.06 r:6.29
Cannot find module (NONE): At line 0 in (none)
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.1.3.0

Any ideas?
User avatar
rwhalen
Posts: 23
Joined: Sun Oct 02, 2005 7:36 pm
Location: Belleville, MI

Post by rwhalen »

GOT IT!!!

Your suggestion to change those lines in the ping.php file worked. The hosts now show as "Up" and the data is being plotted out.

Thank you very much for all of your help and patience TheWitness!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Good.

Also, please note that the following:
Cannot find module (NONE): At line 0 in (none)
Is resolved by the following patched files: http://www.cacti.net/downloads/patches/ ... re-patched

The other warnings are for hosts that do not contain the sysUpTime OID. That's not good because we use it for all sort's of things. I would track that one down and call the vendor to have them correct their agent.

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?
gnarf
Posts: 7
Joined: Thu Sep 21, 2006 4:14 pm

Post by gnarf »

smart bridges radios SNMP implentation sucks.

<code>
# snmpget -v1 -c mycommunity myhost sysUptime
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::sysUpTime

# snmpwalk -v1 -c mycommunity myhost 1.3.6.1.4.1.410.1.2.3.1.0
Timeout: No Response from myhost

# snmpget -v1 -c mycommunity myhost 1.3.6.1.4.1.410.1.2.3.1.0
SNMPv2-SMI::enterprises.410.1.2.3.1.0 = Hex-STRING: FA 0A 0F 05 D7 AE 1C 00 89 6A 01 00 C1 28 5F 01
C3 DF 3F 03 00 00 00 00 EF 1F 00 00 56 51 41 03
45 D2 58 05 04 93 0A 00 00 00 00 00 BD FD 0F 05
49 21 00 00 00 00 00 00 31 C0 61 00 00 00 00 00
00 00 00 00 00 00 00 00 5C 01 00 00 3B 01 00 00
35 54 15 01 69 27 07 00
</code>

Oh and btw, that second one is the "packets transmitted" statistics. Gotta love people writing SNMP agents that don't even understand SNMP. Can't WALK anything, and it doesn't even respond to "sys"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests