General Installation Procedure
- Extract the NeDi archive (e.g. to /var/nedi). Move the files in html to your webserver's document root (e.g. /var/www/htdocs). If your path is not /var/nedi you'll need to edit html/inc/libgraph.php and set the absolute path for $rrdpath. Also specify the rrdtool binary with its path in libgraph.php, and also in inc/libmisc.pl.
- Edit nedi.conf to fit your needs (Please use the new one as copying your existing config may lead to errors, if you're not careful). Make sure you use tabs to separate key/values! If you get 'Dude, where is nedi.conf?' link it to /etc.
- Cd to /var/nedi (or whatever you chose) and type ./nedi.pl -i to initialize the backend. I recommend to dump users and monitoring before that, if your upgrading from an older version:
mysqldump nedi monitoring user -u nedi -p > nedi-mon-usr.sqland put them back in after recreating the database:cat nedi-mon-usr.sql |mysql -u nedi -p nedi.
Aditional Services
- The monitoring daemon moni.pl can be started from commandline, startup script or the GUI.
- Since syslog.pl requires a priviledged port (514) a simple workaround (to avoid running it as root) would be to forward a high port via system's FW. This means something like this for Linux:
iptables -A PREROUTING -t nat -p udp –dport 514 -j REDIRECT –to-port 1514. Just set $port in syslog.pl to 1514 (or whatever you chose the port to be). Now you can use it like moni.pl! - A similar setup can be implemented for snmptrapd:
iptables -A PREROUTING -t nat -p udp –dport 162 -j REDIRECT –to-port 1162to ensure a properly working System-Services GUI.
