[racktables-users] Re: snmpgeneric.php

  • From: "Julson, Jim" <jjulson@xxxxxxxxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Mon, 23 Jul 2012 17:01:27 +0000

The support for vendor specific devices is pretty minimal.  Most of the support 
is for Cisco, HP and Dell switches.

You have to write some more php code for your specific vendor OID.  If you go 
to the Mantis bug tracker, you can open up a feature request, or you can ask 
here and offer up some $$ to have someone write up one.

From: racktables-users-bounce@xxxxxxxxxxxxx 
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of Samir Patrice
Sent: Monday, July 23, 2012 10:45 AM
To: racktables-users@xxxxxxxxxxxxx
Subject: [racktables-users] Re: snmpgeneric.php

Thanks for all,
I create local.php e snmpgeneric.php accordind the code in github and it works 
fine.
I have one more question, I get a message in "SNMP Generic Sync":  SNMP v2 
connect to 172.16.101.1 successfull and  HW type dict_key not set - Unknown OID 
. So, snmp works fine, but the hardware was not detected. I have to manually 
configure the hardware in snmpgeneric.php?

My switch is a D-link DGS series.
2012/7/23 Luis F. Lacayo <llacayo@xxxxxxxx<mailto:llacayo@xxxxxxxx>>
You need to create it..

----- Original Message -----
From: "Samir Patrice" <samir.patrice@xxxxxxxxx<mailto:samir.patrice@xxxxxxxxx>>
To: "Rob Walker" 
<rwalker@xxxxxxxxxxxxxxxxxxx<mailto:rwalker@xxxxxxxxxxxxxxxxxxx>>
Cc: racktables-users@xxxxxxxxxxxxx<mailto:racktables-users@xxxxxxxxxxxxx>
Sent: Monday, July 23, 2012 11:25:38 AM
Subject: [racktables-users] Re: snmpgeneric.php

Rob,
I think the version I use does not have the file local.php. See my inc/ 
directory:

root@oiapoque:/var/www/racktables/inc# ls -lh
total 1,5M
-rw-r--r-- 1 root root 5,9K Jul 19 17:41 ajax-interface.php
-rw-r--r-- 1 root root 19K Jul 19 17:41 auth.php
-rw-r--r-- 1 root root 3,4K Jul 19 17:41 caching.php
-rw-r--r-- 1 root root 30K Jul 19 17:41 code.php
-rw-r--r-- 1 root root 670 Jul 19 17:41 config.php
-rw-r--r-- 1 root root 142K Jul 19 17:41 database.php
-rw-r--r-- 1 root root 58K Jul 19 17:41 deviceconfig.php
-rw-r--r-- 1 root root 170K Jul 19 17:41 dictionary.php
-rw-r--r-- 1 root root 9,7K Jul 19 17:41 exceptions.php
-rw-r--r-- 1 root root 140K Jul 19 17:41 functions.php
-rw-r--r-- 1 root root 16K Jul 19 17:41 gateways.php
-rw-r--r-- 1 root root 4,8K Jul 19 17:41 init.php
-rw-r--r-- 1 root root 82K Jul 19 17:41 install.php
-rw-r--r-- 1 root root 19K Jul 19 17:41 interface-lib.php
-rw-r--r-- 1 root root 329K Jul 19 17:41 interface.php
-rw-r--r-- 1 root root 5,5K Jul 19 17:41 IPv6.php
-rw-r--r-- 1 root root 32K Jul 19 17:41 navigation.php
-rw-r--r-- 1 root root 93K Jul 19 17:41 ophandlers.php
-rw-r--r-- 1 root root 15K Jul 19 17:41 popup.php
-rw-r--r-- 1 root root 2,7K Jul 19 17:41 pre-init.php
-rw-rw-rw- 1 root root 1,5K Jul 19 17:55 secret.php
-rw-r--r-- 1 root root 66K Jul 23 13:16 snmp.php
-rw-r--r-- 1 root root 12K Jul 19 17:41 solutions.php
-rw-r--r-- 1 root root 8,9K Jul 19 17:41 triggers.php
-rw-r--r-- 1 root root 84K Jul 19 17:41 upgrade.php

I use Racktables 0.19.13 version.


Nikolay, I'll try to edit the snmp.php to detect the real error.

2012/7/23 Rob Walker < 
rwalker@xxxxxxxxxxxxxxxxxxx<mailto:rwalker@xxxxxxxxxxxxxxxxxxx> >


Samir,

On my server, I have the following:

rwalker@hostname:~$ cat /var/www/html/racktables/inc/local.php
<?php
require_once "ping.php";
require_once "snmpgeneric.php";
require_once "extensions/reports/server-report.php";
require_once "extensions/reports/vm-report.php";
require_once "extensions/reports/local-report.php";
?>

And I put the file here like so:

rwalker@hostname:~$ find /var/www/html/racktables | grep snmpgeneric
/var/www/html/racktables/inc/snmpgeneric.php


Rob




On 7/21/12 6:43 AM, Samir Patrice wrote:
> Hi folks,
>
> First, Sorry for my English.
> I downloaded the latest version of the racktables and I can't use the
> tab snmpsync, I get the message "Fatal SNMP failure". In the properties
> of the object I put the IP address of fqdn, this could be the problem?
> An alternative that I saw on the internet was the use of plugins like
> snmpgeneric.php, but how to install it?
> I saw in the README that just put in local.php the line "include 'inc /
> snmpgeneric.php" but I did not find the file local.php.
> How to proceed?
> --
> Samir Patrice
> Analista de Rede
> PoP-AP/RNP
>




--
Samir Patrice
Analista de Rede
PoP-AP/RNP



--
Samir Patrice
Analista de Rede
PoP-AP/RNP


The information contained in this e-mail message may be confidential and
protected from disclosure.  If you are not the intended recipient, any
dissemination, distribution or copying is strictly prohibited. If you
think that you have received this e-mail message in error, please notify
the sender immediately by replying to this message and then delete it
from your system.

Other related posts: