Welcome, Guest. Please login or register.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tristanbob

Pages: [1] 2
1
GUI / Re: Devices-List.php is blank (debug error below)
« on: July 09, 2021, 02:03:07 am »
I went ahead and upgraded to Nedi 2.0c. 

My Devices List started working automatically, but I still had the same problem with Nodes List where I had to comment this line (12):

Code: [Select]
# error_reporting( ~'E_Notice');
Now I can see my nodes and devices!  :)

2
Installation / Re: Update 1.9C to 2.0C
« on: July 09, 2021, 02:00:38 am »
When I got this message, it was because my PHP settings were set to "upload_max_filesize   2M". 

I edited the php.ini file to 20M and restarted both php8.0-fpm and nginx.  Now the upgrade worked.   

This old post talks about this more:
https://forum.nedi.ch/index.php?topic=2171.0

3
GUI / Re: Devices-List.php is blank (debug error below)
« on: July 08, 2021, 09:18:31 pm »
I managed to make Nodes List work using two VERY hacky fixes (that might break other things).  I'm sharing them in case someone else can benefit from it.  I was NOT able to paste the diff on this post (perhaps due to special characters or PHP code) so I had to attach it as a text file.

Here is what I did:

Nodes-List.php: Comment line 8.  It now looks like this:
# error_reporting( ~'E_Notice');

libmisc.php: Delete the single "a" character on line 472.  It now looks like this:
<?php   if( $num == 1 ) return; ?>



4
GUI / Re: Devices-List.php is blank (debug error below)
« on: March 10, 2021, 06:46:17 pm »
I'm not sure why this keeps happening (perhaps OS updates), but the Devices List page is blank again.  Here is the current output.

Code: [Select]
Warning: Undefined array key "lim" in /var/nedi/html/Devices-List.php on line 23

Fatal error: Uncaught Error: Undefined constant "a" in /var/nedi/html/inc/libmisc.php:472 Stack trace: #0 /var/nedi/html/Devices-List.php(136): Filters() #1 {main} thrown in /var/nedi/html/inc/libmisc.php on line 472

The Nodes List page is also blank, with this error:

Code: [Select]
Fatal error: Uncaught TypeError: error_reporting(): Argument #1 ($error_level) must be of type ?int, string given in /var/nedi/html/Nodes-List.php:11 Stack trace: #0 /var/nedi/html/Nodes-List.php(11): error_reporting() #1 {main} thrown in /var/nedi/html/Nodes-List.php on line 11
FYI - We are running version 1.9.100.

5
GUI / Re: Devices-List.php is blank (debug error below)
« on: January 11, 2021, 09:24:40 pm »
Remo, once again, you nailed it!  I have no idea how this got removed, it might have been during an Ubuntu upgrade.  The way I fixed this is:


Code: [Select]
me@nedi:~$ php -m | grep snmp
me@nedi:~$
me@nedi:~$ sudo apt-get install php-snmp

6
GUI / Devices-List.php is blank (debug error below)
« on: December 11, 2020, 07:21:55 pm »
Most of our Nedi is working, but for some reason the Devices-List page does not show any output below the top menu bar.  I know we have devices in the database, because they show up in the reports.

PHP Version 7.4.11
System   Linux Hostname 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64
Build Date   Oct 18 2020 19:39:42
Server API   FPM/FastCGI

Here is some of the debug output from clicking on the "bug" on the top-right corner:

Code: [Select]
Self: Devices-List
Version: 1.9.100
NeDipath: /var/nedi

Fatal error: Uncaught Error: Call to undefined function snmp_set_quick_print() in /var/nedi/html/inc/libsnmp.php:8 Stack trace: #0 /var/nedi/html/Devices-List.php(9): include_once() #1 {main} thrown in /var/nedi/html/inc/libsnmp.php on line 8

7
Definition Files / Re: Looking for .def File Cisco C9407R
« on: June 02, 2020, 07:31:26 pm »
You probably already have this answered, but I found that Nedi came with a .def file for this:

# Definition for 1.3.6.1.4.1.9.1.2500 created by Defgen 2.0 on 17.Dec 2018 (admin)

# Main
SNMPv   1
Type    C9407R
Typoid
Sysdes
OS      IOS
Icon    c3bd
Size    10
Uptime  S
Bridge  VLX
ArpND   phy
Dispro  CDP|LLDPXN
Serial  1.3.6.1.4.1.9.9.92.1.1.1.2.1
Bimage  1.3.6.1.4.1.9.2.1.73.0
CfgChg  1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt  1.3.6.1.4.1.9.9.43.1.1.3.0
FTPConf
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
Group   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode    1.3.6.1.4.1.9.9.46.1.2.1.1.3.1

# Interfaces
StartX
EndX
IFname  1.3.6.1.2.1.31.1.1.1.1
IFaddr  adr
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
InDisc  1.3.6.1.2.1.2.2.1.13
OutDisc 1.3.6.1.2.1.2.2.1.19
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr  1.3.6.1.4.1.9.9.402.1.2.1.9     N
IFpwix  ifnx
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modesc  1.3.6.1.2.1.47.1.1.1.1.2
Moclas  1.3.6.1.2.1.47.1.1.1.1.5
Movalu  6|7|9|10
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.10
Modfw   1.3.6.1.2.1.47.1.1.1.1.9
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13
Modloc
Mostat  1.3.6.1.4.1.9.9.117.1.1.2.1.2
Mostok  2

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8N
Temp    1.3.6.1.4.1.9.9.13.1.3.1.3.41
MemCPU  1.3.6.1.4.1.9.9.48.1.1.1.6.1
Custom

8
Definition Files / N9K-C92160YC-X
« on: June 02, 2020, 07:20:31 pm »
# Definition for 1.3.6.1.4.1.9.12.3.1.3.1744 created by Defgen 1.8 on 16.Oct 2018 (admobst)

# General
SNMPv   2HC
Type    N9K-C92160YC-X
Typoid
Sysdes
OS      NXOS
Icon    c3bn
Size    1
Bridge  VLX
ArpND   oldcie
Dispro  LLDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.1.1.0
CfgChg  1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt  1.3.6.1.4.1.9.9.43.1.1.3.0
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
Group   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode    1.3.6.1.4.1.9.9.46.1.2.1.1.3.1

# Interfaces
StartX
EndX
IFname  1.3.6.1.2.1.31.1.1.1.1
IFaddr  oldcie
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
InDisc  1.3.6.1.2.1.2.2.1.13
OutDisc 1.3.6.1.2.1.2.2.1.19
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr
IFpwix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modesc  1.3.6.1.2.1.47.1.1.1.1.2
Moclas  1.3.6.1.2.1.47.1.1.1.1.5
Movalu  6|7|10
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.9
Modfw   1.3.6.1.2.1.47.1.1.1.1.10
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp    1.3.6.1.4.1.9.9.91.1.1.1.1.4.38486
MemCPU  1.3.6.1.4.1.9.9.109.1.1.1.1.13.1
Custom  MemIO;G;Bytes

9
Definition Files / N9K-C9336C-FX2
« on: June 02, 2020, 07:20:03 pm »
# Definition for 1.3.6.1.4.1.9.12.3.1.3.1955 created by Defgen 1.8 on 16.Oct 2018 (admobst)

# General
SNMPv   2HC
Type    N9K-C9336C-FX2
Typoid
Sysdes
OS      NXOS
Icon    c3bn
Size    1
Bridge  VLX
ArpND   oldcie
Dispro  LLDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.1.1.0
CfgChg  1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt  1.3.6.1.4.1.9.9.43.1.1.3.0
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
Group   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode    1.3.6.1.4.1.9.9.46.1.2.1.1.3.1

# Interfaces
StartX
EndX
IFname  1.3.6.1.2.1.31.1.1.1.1
IFaddr  oldcie
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
InDisc  1.3.6.1.2.1.2.2.1.13
OutDisc 1.3.6.1.2.1.2.2.1.19
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr
IFpwix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modesc  1.3.6.1.2.1.47.1.1.1.1.2
Moclas  1.3.6.1.2.1.47.1.1.1.1.5
Movalu  6|7|10
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.9
Modfw   1.3.6.1.2.1.47.1.1.1.1.10
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp    1.3.6.1.4.1.9.9.91.1.1.1.1.4.38486
MemCPU  1.3.6.1.4.1.9.9.109.1.1.1.1.13.1
Custom  MemIO;G;Bytes

10
Discovery / Multiple errors when discovering a Cisco c9200 switch
« on: June 02, 2020, 06:45:02 pm »
Here is the output of a discovery on a Ubuntu 16.04.5 LTS server with Nedi 1.8.100:

Code: [Select]
DNS :Net::Nslookup not available
CLI :IO-Pty loaded
WEB :LWP-UserAgent loaded
RDEV:2908 devices read from nedi.devices
OUI :33329 NIC vendor entries read
RMON:0 entries (dev) read from nedi.monitoring
RMON:0 entries (node) read from nedi.monitoring
RUSR:0 entries (groups & 8 = 8 AND (phone != '' OR email != '')) read from nedi.users
TODO:1.2.3.4    1.2.3.4             added
RADR:31375 IF MAC, 735 IP and 5 IPv6 addresses read.
MAIN:-1 thread(s) error, 1st from Tue Jun  2 16:19:33 2020 make sure interval is longer than discovery takes!
Network Discovery (1.8.100) /var/nedi/nedi.pl -v -SGg -a 1.2.3.4
Started with 1 seed at Tue Jun  2 16:32:13 2020
-------------------------------------------------------------------------------
Device Status Todo/Done-Time
===============================================================================
DISC:1.2.3.4 ID 1.2.3.4

Identify 1.2.3.4 ++++++++++++++++++++++++++
SNMP:Connect 1.2.3.4 mysnmpstring v2 Tout:10s MaxMS:1472 Retry:1 NB:0
IDNT:Name=sw1
SOBJ:Reading 1.3.6.1.4.1.9.1.2695.def (1.3.6.1.4.1.9.1.2695)
Use of uninitialized value in string eq at /var/nedi/inc/libsnmp.pm line 333.
IDNT:Contact
IDNT:Location A09-002a
Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 395.
IDNT:OS= SRV=6 TYPE=1.3.6.1.4.1.9.1.2695
DISC:no skippol, -S Gg

Enterprise   ------------------------------------------------------------------
SNMP:Connect 1.2.3.4 mysnmpstring v2 Tout:11s MaxMS:5000 Retry:1 NB:0
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 504.

Interfaces  -------------------------------------------------------------------- Tue Jun  2 16:32:14 2020
RIF :77 IF read (WHERE device = 'sw1') from nedi.interfaces
SNMP:Connect 1.2.3.4 mysnmpstring v2 Tout:13s MaxMS:1472 Retry:1 NB:0
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 959.
IF  :Walking errors
Use of uninitialized value $ifnamO in string eq at /var/nedi/inc/libsnmp.pm line 1114.
IF  :Walking description
IF  :Walking type
IF  :Walking MAC
IF  :Walking agg-sel-id
IF  :Walking admin status
IF  :Walking oper status
IF  :Index Name          Spd Dup St Pvid Description     Alias             PoE
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :     1 Gi0/0          0  -   0    0 GigabitEthernet                     0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :     8 VLAN-1003      0  -   3    0 unrouted VLAN 1                     0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
ERR :ioc overflow, not updating
ERR :ooc overflow, not updating
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :     9 Gi1/0/1        0  -   3    0 GigabitEthernet Phone gateway       0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
ERR :ioc overflow, not updating
ERR :ooc overflow, not updating
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :    71 VLAN-100       0  -   3    0 unrouted VLAN 1                     0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :    77 VLAN-999       0  -   3    0 unrouted VLAN 9                     0
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1694.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1696.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1698.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1700.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1702.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libmisc.pm line 1704.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1708.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1710.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1712.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libmisc.pm line 1714.

Write Device Info -------------------------------------------------------------  Tue Jun  2 16:32:14 2020
WDEV:sw1 written to nedi.devices
WIF :77 interfaces written to nedi.interfaces
WMOD:0 modules written to nedi.modules
WVLN:0 vlans with 0 egress ports written to nedi.vlans
WNET:0 networks written to nedi.networks

ProPolicy  --------------------------------------------------------------------  Tue Jun  2 16:32:14 2020
PROP:No actions triggered
DISC:ToDo/Done-Time    0/1-0s

===============================================================================
MAIN:1 (0 new) devices discovered
MAIN:1 threads running right now
ALRT:0 mails and 0 SMS sent

MacLinks  ---------------------------------------------------------------------  Tue Jun  2 16:32:19 2020
ITER:1 found 0 MAC links

MLNK:found 0 MAC links in 1 iterations, 0 seconds
Took 0 minutes

11
Definition Files / Re: Cant edit .def files via GUI after 1.8 update.
« on: June 02, 2020, 06:29:56 pm »
I ran into this same problem.  Changing that line in nedi.conf fixed this for me.

12
Installation / Re: Update MAC Vendor OUI Database?
« on: June 02, 2020, 06:05:25 pm »
I can confirm this fix also worked for me.  Thanks again, Remo!

Umpf, vendors use single quotes and I never encountered it...

Search the function ReadOUIs in libmisc.pm and change:

            $m[2] =~ s/"//g;
to:
            $m[2] =~ s/["']//g;

13
News / Re: NeDi 1.8c released?
« on: December 09, 2019, 05:10:10 pm »
pc_sg,

I just wanted to say congrats on retirement and thanks for all the help you have provided in this forum.  Looks like your account just passed it's 10th birthday.  :)

Cheers!

Tristan

Hi Remo!
Saw you've released 1.8c.
Tested on one of the server I'm (still) managing.
Indeed, after the update, the database update failed, and interpreting error message, I've downloaded again 1.7c (link don't work, point to tgz but really is a pkg file, so solved editing the link itself) and doing a "downgrade", then updating database, updating again to 1.8c anche then database update worked fine.
Then, of course, it was necessary to modify launch scripts to adapt them to new syntax, and porting my nedi.conf parameters to the new file format.


Seems fine!


Thanks in advance!

In the meanwhile, I inform you that, if everything goes well, in a few month (end of november or december) I will retire. :)
I don't think I will do anything related to networking any more (except for my home LAN, of course).
I'm going to delete my account a few days before "the end" ;)

In doubt, I take the opportunity to thank you so much for the help you gave me during last years (much of them) with your masterpiece, NeDi!

Bye!

14
Installation / Re: How to install patch 3?
« on: January 28, 2019, 05:52:23 pm »
Thanks, that seemed to work!

15
Installation / How to install patch 3?
« on: January 18, 2019, 05:41:56 pm »
Your recent news post mentioned that we need to upgrade to Patch 3 for Nedi 1.7 and 1.8.

https://www.nedi.ch/end-of-year-update/

What is the procedure to apply this update?

Thanks!

Tristan

Pages: [1] 2