Welcome, Guest. Please login or register.

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Installation / Re: Ubuntu installation script references wrong files?
« Last post by jbruyet on October 03, 2017, 07:14:50 PM »
Ok, I just did an apt-cache search and found libapache2.mod-php7.0. I had done a search earlier but I made an assumption the results would be alphabetized. Nope, this time I searched the entire list and I found the php file eighth from the top. Sigh.

Thanks,

Joe B
22
Installation / Ubuntu installation script references wrong files?
« Last post by jbruyet on October 03, 2017, 04:40:31 PM »
Hey all, I just built a machine with Ubuntu 16.04.3 LTS. I'm trying to install the programs per the commands on the top of this page, https://www.nedi.ch/installation/, and not having any luck. When I try to install them I get the following:

Code: [Select]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Unable to locate package php5-snmp
E: Package 'php5-gd' has no installation candidate
E: Package 'php5-mcrypt' has no installation candidate

I tried again with the smaller list on this page, https://help.ubuntu.com/community/NediHowTo, but I get the same result.

I was going to do a "Nuke & Repopulate" but repopulate with an older version of Ubuntu but I thought I'd ask this forum if I'm overlooking some small detail. Does the NeDi software have a preferred distribution? If so what is it?

Thanks,

Joe B
23
Database / Re: slow access
« Last post by rickli on October 03, 2017, 10:49:10 AM »
Hi, so just listing interfaces takes long? Have a look at the NeDi server with top. Is it swapping? Is mysql eating all the CPU? What is overall IO?

The DB can grow over time, but mostly affects the events table. It makes sense to clean that one out from time to time. There's a maintenance script in the contrib folder, or you can go to System-Database and select "delete events < xy days" from the commands select box...
24
Database / slow access
« Last post by big on October 02, 2017, 06:51:10 PM »
Hi Folks

Our nedi app seems to have developed an access issue. In many cases when I use the app
to get some device info it responds very quickly. However when I do an interface query the webserver takes forever, a very long time go get the results. I have to believe something is amiss.

I.E. IF name  like gi2/23 is horridly long.....

any ideas on where and how to troubleshoot? I looked at a couple of the system logs and really didn't see anything abnormal. that I could tell

it is a redhat OS 7.3

thanks in advance



25
Installation / Re: Bug in RADIUS authentication with IPv6
« Last post by rickli on September 29, 2017, 12:54:40 PM »
Cool, thanks for your fix! I'll include it in the next release...
26
Installation / Re: Bug in RADIUS authentication with IPv6
« Last post by gerold on September 27, 2017, 11:04:53 AM »
Hi,

on nedi-1.7.090, the following patch works for me:

Code: [Select]
diff -u -r1.2 index.php
--- index.php   2017/07/31 09:07:18     1.2
+++ index.php   2017/09/26 14:27:54
@@ -69,6 +69,7 @@
                }
        }elseif( strstr($guiauth,'radius') && $user != "admin" ){                                       # Based on Radius code by Till Elsner
                $radres = radius_auth_open();
+               $server_is_v4 = preg_match('/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/', $_SERVER['SERVER_ADDR']);
                echo $radres;
                if (!$radres) {
                        echo "Error while preparing RADIUS authentication: ".radius_strerror($radres);
@@ -84,7 +85,8 @@
                if (!(  radius_put_string($radres, RADIUS_USER_NAME, $user)
                        && radius_put_string($radres, RADIUS_USER_PASSWORD, $_POST['pass'])
                        && radius_put_string($radres, RADIUS_CALLING_STATION_ID, $_SERVER['REMOTE_ADDR'])# dstrezov's suggestion for ACS compliance
-                       && radius_put_addr($radres, RADIUS_NAS_IP_ADDRESS, $_SERVER['SERVER_ADDR']) )){
+                       && ( $server_is_v4 ? radius_put_addr($radres, RADIUS_NAS_IP_ADDRESS, $_SERVER['SERVER_ADDR']) : radius_put_string($radres, RADIUS_NAS_IPV6_ADDRESS, $_SERVER['SERVER_ADDR']))
+               )){
                        echo "RADIUS put: ".radius_strerror($radres);
                }
                $radauth = radius_send_request($radres);

Hope this helps!

Gerold
27
LAN/Switching / Re: Feature request: Stack monitoring/Error detection.
« Last post by rickli on September 13, 2017, 04:21:18 PM »
1.6 will definitely support most things I mentioned. I'll make it public next month...
28
Database / Re: Populate network devices in Nagios from NeDi
« Last post by rickli on September 13, 2017, 04:19:55 PM »
Cool, thanks for contributing your work!
29
LAN/Switching / Re: Feature request: Stack monitoring/Error detection.
« Last post by pc_sg on September 11, 2017, 04:27:01 PM »
Wow, nice.
I suppose is available in latest release (1.6 or 1.7 ?)


I have to be patient  ;)


Thanks!
30
Database / Populate network devices in Nagios from NeDi
« Last post by dohco on September 11, 2017, 10:09:06 AM »
So, adding/removing network devices manually in Nagios didn't work in the long run.  ::)

This script import all my network devices from NeDi to Nagios once an hour. This way Nagios will get new devices to monitor whenever NeDi discover new devices and they will be removed from Nagios when I delete them in NeDi. One DB to rule them all.  ;)

Read the ReadMe.txt file for instructions if you want to set it up.
I chose to do a direct MySQL connection instead of using the API to avoid any problem with SSL.

As usual; this is me sharing a script developed for my personal use. Use at your own risk!

/Conny
Pages: 1 2 [3] 4 5 ... 10