Welcome, Guest. Please login or register.

Author Topic: NeDi 1.0.8-240  (Read 7003 times)

dio99

  • Guest
NeDi 1.0.8-240
« on: September 25, 2013, 04:46:57 PM »
installed the beta NeDi 1.0.8-240
got some syntax errors.

 ./nedi.pl v
Unquoted string "mac" may clash with future reserved word at ./inc/libsnmp.pm line 1102.
syntax error at ./inc/libsnmp.pm line 1100, near "$ina ~"
syntax error at ./inc/libsnmp.pm line 1101, near "}else"
syntax error at ./inc/libsnmp.pm line 1102, near "} ="
Compilation failed in require at ./nedi.pl line 68.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: NeDi 1.0.8-240
« Reply #1 on: September 29, 2013, 01:05:16 PM »
Have you tried -v? But I don't even see this error with just v, so I don't quite understand why you get this. Backend is set to mysql now?
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dio99

  • Guest
Re: NeDi 1.0.8-240
« Reply #2 on: September 30, 2013, 01:48:55 PM »
i did just replace the files.. tried to do a fresh one to..

[root@udcsp03 nedi]# ./nedi.pl
Unquoted string "mac" may clash with future reserved word at ./inc/libsnmp.pm line 1102.
syntax error at ./inc/libsnmp.pm line 1100, near "$ina ~"
syntax error at ./inc/libsnmp.pm line 1101, near "}else"
syntax error at ./inc/libsnmp.pm line 1102, near "} ="
Compilation failed in require at ./nedi.pl line 68.
[root@udcsp03 nedi]# php
php         php-cgi     php-config  phpize     
[root@udcsp03 nedi]# php -v
PHP 5.3.3 (cli) (built: Jul 12 2013 04:47:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with SourceGuardian v9.0.4, Copyright (c) 2000-2012, by Inovica Ltd.



in apache logg error.
[Mon Sep 30 13:42:13 2013] [error] [client 193.182.20.99] File does not exist: /var/www/html/nedi/img/nedie<, referer: http://udcsp03.sweinfra.se/nedi/index.php
[Mon Sep 30 13:43:55 2013] [error] [client 193.182.20.99] PHP Notice:  Undefined offset: 1 in /home/nedi/html/inc/libmisc.php on line 419, referer: http://udcsp03.sweinfra.se/nedi/index.php
[Mon Sep 30 13:43:56 2013] [error] [client 193.182.20.99] PHP Parse error:  syntax error, unexpected $end in /home/nedi/html/inc/header.php on line 248, referer: http://udcsp03.sweinfra.se/nedi/index.php?goto=%3C?=%20urlencode($goto)%20?%3E


// Anders

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: NeDi 1.0.8-240
« Reply #3 on: September 30, 2013, 07:30:34 PM »
I still don't get it. Try nedi-264 from the same location, but make sure you review nedi.conf...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dio99

  • Guest
Re: NeDi 1.0.8-240
« Reply #4 on: September 30, 2013, 09:10:41 PM »
i tested it to but same result..

./nedi.pl -v

Started with relative path!
Unquoted string "mac" may clash with future reserved word at ./inc/libsnmp.pm line 1112.
syntax error at ./inc/libsnmp.pm line 1110, near "$ina ~"
syntax error at ./inc/libsnmp.pm line 1111, near "}else"
syntax error at ./inc/libsnmp.pm line 1112, near "} ="
Compilation failed in require at ./nedi.pl line 70.

perl -cwt nedi.pl
nedi.pl syntax OK


 rpm -qa | grep perl
perl-Net-Telnet-3.03-5
perl-URI-1.35-3
perl-Test-Pod-1.45-1.el5.rf
perl-Digest-HMAC-1.01-15
perl-Compress-Zlib-1.42-1.fc6
perl-HTML-Parser-3.55-1.fc6
perl-IO-String-1.08-1.1.1
perl-MailTools-2.07-1.el5.rf
perl-DBI-1.52-2.el5
perl-Algorithm-Diff-1.1902-2.el5
perl-Net-SNMP-5.2.0-1.el5.1
perl-5.8.8-40.el5_9
perl-HTML-Tagset-3.10-2.1.1
perl-Pod-Simple-3.15-1.el5.rf
perl-rrdtool-1.4.4-1.el5.rf
perl-Digest-SHA1-2.11-1.2.1
perl-String-CRC32-1.4-2.fc6
perl-Convert-ASN1-0.20-1.1
perl-TimeDate-1.16-5.el5
perl-DBD-MySQL-3.0007-2.el5
perl-Crypt-DES-2.05-3.el5
perl-Pod-Escapes-1.04-5.el5

rpm -qa | grep php5
php53-cli-5.3.3-13.el5_9.1
php53-mysql-5.3.3-13.el5_9.1
php53-pdo-5.3.3-13.el5_9.1
php53-snmp-5.3.3-13.el5_9.1
php53-5.3.3-13.el5_9.1
php53-devel-5.3.3-13.el5_9.1
php53-gd-5.3.3-13.el5_9.1
php53-common-5.3.3-13.el5_9.1



rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: NeDi 1.0.8-240
« Reply #5 on: September 30, 2013, 10:15:54 PM »
Oh got it, the smart operator ~~ was introduced in perl 5.10 and seems to crash your 5.8! Any chance you can update perl?

Check short open tags in PHP.ini regarding the PHP error...
« Last Edit: September 30, 2013, 10:17:27 PM by rickli »
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dio99

  • Guest
Re: NeDi 1.0.8-240
« Reply #6 on: November 07, 2013, 01:51:50 PM »
hi nope this is prod machine and running rhel5

and they shipp perl with 5.8.8
i tried to install activestate perl but then i got some missing perl mods.. :(

// Anders

dio99

  • Guest
Re: NeDi 1.0.8-240
« Reply #7 on: November 11, 2013, 10:31:14 PM »
i tested the version 1.0.7 and that works..

// anders

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: NeDi 1.0.8-240
« Reply #8 on: November 13, 2013, 08:26:26 PM »
Jepp, I've add this operator recently. Can you find out whether RH plans to upgrade Perl?
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: NeDi 1.0.8-240
« Reply #9 on: November 16, 2013, 09:27:01 PM »
I reverted to the (slower) grep for the upcoming RC...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dio99

  • Guest
Re: NeDi 1.0.8-240
« Reply #10 on: November 25, 2013, 08:11:56 PM »
hi i ahvent found any info about RH to update perlversion.. So cant u add a check of what perl u are running then run the slower grep

so if i dload the 1.0.8 now ill get the slow grep ?

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: NeDi 1.0.8-240
« Reply #11 on: November 26, 2013, 09:09:59 AM »
nedi-321 should work. I'll have to test, whether the grep is noticable (on very large networks).
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo