SNMP and OIDs

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

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

Post by TheWitness »

It should be in the location where the binary resides. You should run as root from that directory. So, follow these instructions:

open a shell
cd to cactid binary
su
./cactid
ls *stack*

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
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

Hi,

I've followed your instructions, but I can't find any stack file.

Maybe I'm messing up things. The stack file should be obtained from my actual cactid which gets wrong values from some oid's, or from the compiled one showing a segmentation error?

Thanks! :D
Who is more foolish? The fool or the fool that
follows it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The segmentation error is of interest.
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
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

..
Last edited by Grogman on Tue May 16, 2006 2:21 am, edited 2 times in total.
Who is more foolish? The fool or the fool that
follows it?
User avatar
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

Hi!

I've attached the output of the compiled svn source when I run it from the CLI.

It looks like it crashes after polling the first device. However, I cannot find any *stack* file in the binary directory :-?
Probably I'll be missing something...

Thanks !!! :D
Attachments
cactid_output.txt
(85.48 KiB) Downloaded 170 times
Who is more foolish? The fool or the fool that
follows it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please note the last item polled. It contains "enterprise:..." as the OID. Can you change that to numeric and any others and see if you get further?

Thanks,

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
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

Same result :(

Code: Select all

CACTID: Host[2] DS[184] SNMP: v2: 192.****0, dsname: snmp_oid, oid: .1.3.6.1.4.1.9.2.1.56.0, value: 6
CACTID: Host[2] DS[517] SNMP: v2: ****0, dsname: snmp_oid, oid: .1.3.6.1.4.1.9.2.1.8.0, value: 155713100
Segmentation fault
It seems to happen when cactid finishes polling the first host, since there are no more data sources defined in that host.

Thanks!
Who is more foolish? The fool or the fool that
follows it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What is your distribution (OS). Did you make from SVN. Sorry to ask duplicate questions, if I just did...

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, what is your version of MySQL? There is a problem with the "release" of 0.8.6f/g, if that's what you are using.

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
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

Hi Witness,

Asking your questions:

OS -> FC3 distro

MySQL -> Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)

And yes, I compiled from the SVN, and also tried from the FC3 rpm of the repository, obtaining the same segmentation fault in both cases.

Thank you very much for your help! :D
Who is more foolish? The fool or the fool that
follows it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This may be more related to MySQL than to Cacti. But we have never asked anyone to upgrade before. But I suspect that this is the issue.

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
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

Ok, I'll talk about this with my boss, and we will consider upgrading mysql. However, apart from solving the OID problem, do you think upgrading mysql and using the lastest svn version of cactid could help dealing with the gaps in the graphs matter? Which version of mysql works better with cacti/cactid?

Thanks a lot!
Who is more foolish? The fool or the fool that
follows it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

MySQL 4.x is best at this time. The gaps are interesting. I hate to see unstable installations. Can I ssh or rd into the box sometime. Slet that, I have to get ready for work. Maybe later.

Larry
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
Grogman
Cacti User
Posts: 54
Joined: Tue Feb 21, 2006 11:45 am
Location: Spain

Post by Grogman »

Hi Larry,

The gaps are also very interesting in my opinion, as they appear in a variety of situations: I have three machines running cacti with gaps in two of them:

Machine 1 (cacti 0.6.8g):
----------------------------
with cmd.php -> some gaps
with cactid 0.8.6g -> lots of gaps
with cactid 0.8.6f-2 -> hosts don't respond to snmp
with cactid svn or rpm -> Segmentation fault

Machine 2 (cacti 0.8.6g):
----------------------------
with cactid 0.8.6g -> medium amount of gaps
with cactid 0.8.6f-2 -> hosts don't respond to snmp
with cactid svn or rpm -> Segmentation fault

Machine 3 (cacti 0.8.6f):
----------------------------
with cmd.php -> some gaps
with cactid 0.8.6f-2 -> no gaps (however, the problem with some oid's of the topic arises)
with cactid 0.8.6g -> hosts don't respond to snmp
with cactid svn or rpm -> Segmentation fault

All three machines are FC3 with MySQL 3.23.58. Machine 1 is the newest and the result of cloning Machine 2 after cactid/cactid installation while Machine 3 is the oldest one. Unfortunately, for security reasons, these machines cannot be accessed from outside the LAN...

I don't know if this can be of help, but maybe can give a hint of what is the gap problem related to...

Thanks a lot for your help Larry! :D
Who is more foolish? The fool or the fool that
follows it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

They could be related to timeouts. Can you increase either the retry count or the snmp timeouts for the hosts and let me know if that fixes it.

Thanks,

Larry
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests