get SNMP error when adding device

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

Moderators: Developers, Moderators

Post Reply
dizzaniix
Posts: 4
Joined: Thu Sep 08, 2005 9:37 am

get SNMP error when adding device

Post by dizzaniix »

Im running Fedora Core4 and have cacti installed with correct paths etc. When I try to add a device i get a message that says SNMP error. This happens when attemtping to add localhost and a remote server.
I have tried snmpwalk and i can query my remote server just fine,but yet get SNMP error within cacti when adding it. Please help..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) please run "php -m" and look for the snmp module
2) if it's not found, check Settings->Paths and validate your snmpget and walk paths.
3) if they are correct, set the MIBS envrionment variable to RFC-1215 and run again.

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?
dizzaniix
Posts: 4
Joined: Thu Sep 08, 2005 9:37 am

Post by dizzaniix »

My paths are correct. How do I go about changing the MIBS environment?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Windows or Unix?

Windows
Control Panel -> System -> Advanced -> Environment Variables -> System Environment Variables -> Name=MIBS, Value=RFC-1215

Unix/Linux
export MIBS=RFC-1215

or

set MIBS=RFC-1215

Depneds on your shell.

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?
dizzaniix
Posts: 4
Joined: Thu Sep 08, 2005 9:37 am

Post by dizzaniix »

I did the set MIBS.
I can query the localhost and external linux server, but it won't pull partiton and interface statistics...it does pull memory usage etc. And i still get the SNMP error in the device settings.
Any clue as to why it's not pulling disk partiton and interface statistics?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should run cmd.php from the command line in DEBUG mode and you will have your answer.

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?
dizzaniix
Posts: 4
Joined: Thu Sep 08, 2005 9:37 am

Post by dizzaniix »

actually found out that SELinux was messing with it..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That would bungle it.

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?
avillegasmx
Posts: 1
Joined: Mon Nov 28, 2005 10:51 am

Post by avillegasmx »

Could you please provide further detail on what you did to get this solved?

Did you disable SELinux?

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

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

Who is online

Users browsing this forum: No registered users and 0 guests