[partially! SOLVED] - problem snmpv3 authPriv

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

Hi people!

As I said, I was so happy seeing the graphs growing again I did't test everything...
Now, the existing host work fine in snmp v2 and v3.
I even can create new graphs for any existing host.
I can create new snmp v2 hosts.

But!

- snmp v3 still does not work with cmd.php (no big problem for me cause since I want to use spine only)

- I can't add any new snmp v3 host... I get a "SNMP error". Debug data query gives this:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
... doing the snmpwalk via command line works fine...

If you need some testing, just tell me...
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try disabling php_snmp support in include/global.php. There is a check there. Just force it to false.

T
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?
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

Here is the change I made in include/global.php (is that what you meant?):

Code: Select all

/* built-in snmp support */
#$config["php_snmp_support"] = function_exists("snmpget");
$config["php_snmp_support"] = false;
That does not change anything.

I've also tried to de-install php-snmp... doesn't work either...
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Does the reindexing work if you use the cli as root?

T
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?
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

Here is the result:

Code: Select all

[root@lnxnord02 cli]# php poller_reindex_hosts.php --id=all
WARNING: Do not interrupt this script.  Reindexing can take quite some time
.........................No log handling enabled - turning on stderr logging
getaddrinfo: avhutp0201.actifs.cg59.fr Name or service not known
getaddrinfo: avhutp0201.actifs.cg59.fr Name or service not known
....................................................................................getaddrinfo: avhple0101.actifs.cg59.fr Name or service not known
getaddrinfo: avhple0101.actifs.cg59.fr Name or service not known
......getaddrinfo: lilnor0201.actifs.cg59.fr Name or service not known
getaddrinfo: lilnor0201.actifs.cg59.fr Name or service not known
.......getaddrinfo: vilutp0102.actifs.cg59.fr Name or service not known
getaddrinfo: vilutp0102.actifs.cg59.fr Name or service not known
...................................getaddrinfo: lilnor0202.actifs.cg59.fr Name or service not known
getaddrinfo: lilnor0202.actifs.cg59.fr Name or service not known
...............getaddrinfo: vilutp0103.actifs.cg59.fr Name or service not known
getaddrinfo: vilutp0103.actifs.cg59.fr Name or service not known
.getaddrinfo: vilutp0104.actifs.cg59.fr Name or service not known
getaddrinfo: vilutp0104.actifs.cg59.fr Name or service not known
.getaddrinfo: avhutd0002.actifs.cg59.fr Name or service not known
getaddrinfo: avhutd0002.actifs.cg59.fr Name or service not known
.getaddrinfo: avhutd0001.actifs.cg59.fr Name or service not known
getaddrinfo: avhutd0001.actifs.cg59.fr Name or service not known
.getaddrinfo: avhutd0201.actifs.cg59.fr Name or service not known
getaddrinfo: avhutd0201.actifs.cg59.fr Name or service not known
.....................................getaddrinfo: avhprs0001.actifs.cg59.fr Name or service not known
getaddrinfo: avhprs0001.actifs.cg59.fr Name or service not known
..............................................................................................................................getaddrinfo: lilarc0101.actifs.cg59.fr Name or service not known
....snmpbulkwalk: Unknown Report message
.......................[root@lnxnord02 cli]#
(heu... my switches list is not really up to date...!)
seems to be a problem with snmpbulkwalk...
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Set max oids to 1, and bulk walks will not be performed.

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?
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

I did some cleaning... now the reindex seems to work in command line...

Code: Select all

[root@lnxnord02 cli]# php poller_reindex_hosts.php --id=all
WARNING: Do not interrupt this script.  Reindexing can take quite some time
....................................................................................................................................................................................................................................................................................................................................................................[root@lnxnord02 cli]#
but I don't really understand the link with the pb I have... Could you explain briefly?
What else could I try?
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, with max oid set to one, does the query 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?
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

Sir No Sir! It doesn't! ;)

How could I help furter?
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please show me the CLI command syntax you used for the Index count OID. Also, please check you Net-snmp tools version in Console->General.

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?
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

Well, once again I'm not sure that I fully understand what you want...

The cli command I used is the same as the one in the previous post:

Code: Select all

[root@lnxnord02 cli]# php poller_reindex_hosts.php --id=all
Net-snmp tools version set in console/general is NET-SNMP 5.x
system utilities/tech support gives more precisely:
NET-SNMP version: 5.3.2.2
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What I meant is the snmpwalk command. What exact syntax did you use and what output did you receive?

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?
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

OK! Here it is:

Code: Select all

[root@lnxnord02 ~]# snmpwalk -v 3 -u telecom -A *********** -x AES -X *********** lilfor0111.actifs.cg59.fr .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3

//... and so on to...

IF-MIB::ifIndex.240 = INTEGER: 240
IF-MIB::ifIndex.241 = INTEGER: 241
IF-MIB::ifIndex.242 = INTEGER: 242
[root@lnxnord02 ~]#
didx
Posts: 31
Joined: Fri Jun 16, 2006 5:25 am
Location: Lille France

Post by didx »

I've just found this in my system log... I can't figure out how this could be related to my pb but maybe you have an idea

Code: Select all

Jul  8 17:05:42 lnxnord02 php: PHP Warning:  Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486
Jul  8 17:05:49 lnxnord02 last message repeated 27 times
Jul  8 17:05:49 lnxnord02 php: PHP Warning:  Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280
Jul  8 17:05:49 lnxnord02 last message repeated 27 times
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

So, just to confirm, everything is on "E" now?

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 2 guests