Welcome, Guest. Please login or register.

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Installation / Re: Problems with NeDi 2.3C and PHP 8.0 / 8.1
« Last post by rickli on May 10, 2024, 09:56:17 am »
You seem to be missing the vendorinfo table, as it wasn't created when updating from previous versions. NeDi 2.4 will create it with the DB update. Alternatively, you can download the table at http://www.nedi.ch/services/customer-area/index.html and add it via System-Files -> Import Database.
22
Discovery / Re: snmpdev
« Last post by Westy_87 on May 10, 2024, 05:48:01 am »
Just want to say thanks. This has bugged me for ages. We have a lot of Polycom devices that were still being scheduled for discovery and showing up in logs as 'Device ID SEP........' so I had tried adding SEP to the nosnmpdev list but it did nothing.

Went and checked lldp descriptions and added those, which stopped some but not all. Then I realised some were doing cdp as well as lldp so I had to add the cdp 'Platform' description.

This is how it looks now

nosnmpdev   IP\s(Phone|Telephone)|Poly|Trio|Desk Pro|Kronos
23
Installation / Problems with NeDi 2.3C and PHP 8.0 / 8.1
« Last post by ggessler on May 03, 2024, 01:27:28 pm »
Dear all,

I have upgraded our NeDi 2.0 installation on CentOS to NeDi 2.3 on SLES 15 by upgrading 2.0 -> 2.1 -> 2.3 and have problems with all PHP pages which show e.g. device details (e.g. Devices-List.php or Devices-Status.php).
Both PHP pages are not fully loading, they are both stopping at the table cell which displays device serial number.

Devices-List.php breaks in line 319
Apache error log shows:
[Fri May 03 12:23:09.872768 2024] [php:error] [pid 2947] [client 10.200.249.67:40209] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'nedi.vendorinfo' doesn't exist in /var/nedi/html/inc/libdb-mysql.php:335\nStack trace:\n#0 /var/nedi/html/inc/libdb-mysql.php(335): mysqli_query()\n#1 /var/nedi/html/inc/libdev.php(1035): DbQuery()\n#2 /var/nedi/html/Devices-List.php(319): InvCheck()\n#3 {main}\n  thrown in /var/nedi/html/inc/libdb-mysql.php on line 335, referer: http://xxxx.xxxx.xxxx/Devices-List.php

Devices-Status.php breaks in line 525 + 1328
Apache error log shows:
[Fri May 03 13:21:32.987417 2024] [php:error] [pid 2959] [client 10.200.249.67:40803] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'nedi.vendorinfo' doesn't exist in /var/nedi/html/inc/libdb-mysql.php:335\nStack trace:\n#0 /var/nedi/html/inc/libdb-mysql.php(335): mysqli_query()\n#1 /var/nedi/html/inc/libdev.php(1035): DbQuery()\n#2 /var/nedi/html/Devices-Status.php(525): InvCheck()\n#3 {main}\n  thrown in /var/nedi/html/inc/libdb-mysql.php on line 335, referer: http://xxxx.xxxx.xxxx/Devices-Modules.php

[Fri May 03 12:23:38.586608 2024] [php:error] [pid 2950] [client 10.200.249.67:40212] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'nedi.vendorinfo' doesn't exist in /var/nedi/html/inc/libdb-mysql.php:335\nStack trace:\n#0 /var/nedi/html/inc/libdb-mysql.php(335): mysqli_query()\n#1 /var/nedi/html/inc/libdev.php(1035): DbQuery()\n#2 /var/nedi/html/Devices-Status.php(1328): InvCheck()\n#3 {main}\n  thrown in /var/nedi/html/inc/libdb-mysql.php on line 335, referer: http://xxxx.xxxx.xxxx/Devices-Modules.php

Commenting out all three lines allows the PHP pages to fully render, but obviously the device serial number is missing.

When looking at the "devices" table directly in the database, I cannot see any problem with the content.

Does anyone have a solution / fix for this?

Thanks, Gerhard
24
Discovery / Re: Permissions for discovery only
« Last post by rickli on April 23, 2024, 01:56:26 pm »
The user needs to be in the manager group by default. You can change that in nedi.conf like this:

module   System      NeDi         radr   net
25
Installation / Re: crontab not in correct location
« Last post by Westy_87 on April 02, 2024, 07:13:42 am »
Thanks.

When I make a change in the crontab section in the gui, it says

Write /var/nedi/inc/crontab (21 bytes) OK

then it says

Crontab Update Errors


I can see the file is being updated, but then the system command to update the actual cron isn't working I guess. Any idea how to troubleshoot that?

Edit:
I can see in /var/spool/cron/crontabs/ is a file www-data that contains the crontab entries from before the link was somehow broken.

permissions issue or anything?

nedi:~$ sudo ls -l /var/nedi/inc/crontab
-rw-r--r-- 1 www-data www-data 21 Apr  2 05:11 /var/nedi/inc/crontab
nedi:~$ sudo ls -l /var/spool/cron/crontabs/www-data
-rw------- 1 www-data crontab 1569 Jan 18 03:27 /var/spool/cron/crontabs/www-data
26
Discovery / Re: Permissions for discovery only
« Last post by Westy_87 on April 02, 2024, 05:43:59 am »
With my test user, I gave it the same privs as the site-techs: network and support.

When I try and go to Devices, Add with my test user I get the following:

Access Errors: You're not authorized for this!
27
GUI / Re: How to turn off devwrite safety?
« Last post by rickli on March 15, 2024, 10:02:29 am »
Yepp, you got it!

I know the security restrictions can be annoying, but it's still better than being hacked ;)
28
Discovery / Re: Permissions for discovery only
« Last post by rickli on March 15, 2024, 10:00:50 am »
You can add a single device with Devices -> Add, which calls a limited System-NeDi (usable by non-admins)...
29
Installation / Re: crontab not in correct location
« Last post by rickli on March 15, 2024, 09:59:01 am »
Look around line 143 in System-Files.php. This (temporary) crontab is installed via system command and the result printed out...
30
GUI / Re: How to turn off devwrite safety?
« Last post by Westy_87 on March 13, 2024, 12:34:01 am »
Ok, I found it.

var/nedi/inc/ is the file devwrite.pl

Towards the bottom is the line with the Safety on! statement. Hash that and unhash the next line.

I would post code examples but the forum blocks me when I try that, so keeping it semi vague.
Pages: 1 2 [3] 4 5 ... 10