New port net/nedi:
NeDi is a powerful network discovery tool with a comfortable web interface. Help and OK sthen@
This commit is contained in:
parent
85653dfa02
commit
a092946f09
9
net/nedi/patches/patch-contrib_bulkdelete_sh
Normal file
9
net/nedi/patches/patch-contrib_bulkdelete_sh
Normal file
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-contrib_bulkdelete_sh,v 1.1 2012/02/17 21:41:08 mglocker Exp $
|
||||
--- contrib/bulkdelete.sh.orig Wed Jan 18 22:19:49 2012
|
||||
+++ contrib/bulkdelete.sh Wed Jan 18 22:22:06 2012
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/ksh
|
||||
#
|
||||
# bulk delete of devices from NeDi DB
|
||||
# for info, refer to command line option -h
|
11
net/nedi/patches/patch-html_log_msg_txt
Normal file
11
net/nedi/patches/patch-html_log_msg_txt
Normal file
@ -0,0 +1,11 @@
|
||||
--- html/log/msg.txt.orig Sat Feb 11 13:14:40 2012
|
||||
+++ html/log/msg.txt Sun Feb 12 09:50:19 2012
|
||||
@@ -25,7 +25,7 @@ Getting started:
|
||||
<form method="post" action="System-Files.php">
|
||||
<input type="hidden" name="file" value="<?=$nedipath?>/inc/crontab">
|
||||
<input type="image" src="img/32/clock.png" value="Submit" title="Edit Crontab" hspace="4">
|
||||
- Schedule discoveries based on duration of previous step. If you choose anything else than 1h, adjust rrdstep in nedi.conf and delete all files in /var/nedi/rrd now.
|
||||
+ Schedule discoveries based on duration of previous step. If you choose anything else than 1h, adjust rrdstep in nedi.conf and delete all files in ${TRUEPREFIX}/nedi/rrd now.
|
||||
</form>
|
||||
|
||||
<a href="Devices-List.php?ina=snmpversion&opa=>&sta=0&mon=1">
|
20
net/nedi/patches/patch-inc_crontab
Normal file
20
net/nedi/patches/patch-inc_crontab
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-inc_crontab,v 1.1 2012/02/17 21:41:08 mglocker Exp $
|
||||
--- inc/crontab.orig Wed Jan 18 21:04:01 2012
|
||||
+++ inc/crontab Wed Jan 18 21:04:30 2012
|
||||
@@ -1,11 +1,11 @@
|
||||
# example for hourly discovery with a config backup at midnight
|
||||
-#0 0 * * * /var/nedi/nedi.pl -vpB > /tmp/nedi-00.bup 2>&1
|
||||
-#0 1-23 * * * /var/nedi/nedi.pl -p > /tmp/nedi-`date +\%H`.run 2>&1
|
||||
+#0 0 * * * ${TRUEPREFIX}/nedi/nedi.pl -vpB > /tmp/nedi-00.bup 2>&1
|
||||
+#0 1-23 * * * ${TRUEPREFIX}/nedi/nedi.pl -p > /tmp/nedi-`date +\%H`.run 2>&1
|
||||
|
||||
# or 5 min interval (for very small networks)
|
||||
-*/5 * * * * /var/nedi/nedi.pl -vp > /tmp/nedi-`date +\%H\%M`.run 2>&1
|
||||
-#3 0 * * * /var/nedi/nedi.pl -vBA 'login !=""' -SsmgrfpitedobwaOA > /tmp/nedi-0003.bup 2>&1
|
||||
+*/5 * * * * ${TRUEPREFIX}/nedi/nedi.pl -vp > /tmp/nedi-`date +\%H\%M`.run 2>&1
|
||||
+#3 0 * * * ${TRUEPREFIX}/nedi/nedi.pl -vBA 'login !=""' -SsmgrfpitedobwaOA > /tmp/nedi-0003.bup 2>&1
|
||||
|
||||
|
||||
# scan nodes for open ports during working hours
|
||||
-#0 11 * * 1-5 /var/nedi/nedi.pl -vs TUFupdate > /tmp/nedi-1100.scan 2>&1
|
||||
+#0 11 * * 1-5 ${TRUEPREFIX}/nedi/nedi.pl -vs TUFupdate > /tmp/nedi-1100.scan 2>&1
|
12
net/nedi/patches/patch-nedi_conf
Normal file
12
net/nedi/patches/patch-nedi_conf
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-nedi_conf,v 1.1 2012/02/17 21:41:08 mglocker Exp $
|
||||
--- nedi.conf.orig Wed Jan 18 21:04:01 2012
|
||||
+++ nedi.conf Wed Jan 18 21:04:48 2012
|
||||
@@ -141,7 +141,7 @@ clilib IoPty
|
||||
rrdcmd rrdtool
|
||||
|
||||
# Location of NeDi
|
||||
-nedipath /var/nedi
|
||||
+nedipath ${TRUEPREFIX}/nedi
|
||||
|
||||
# Prefix to call Cacti CLI tools for adding graphs in Topology-Graph
|
||||
;cacticli /usr/bin/php /usr/share/cacti/site/cli
|
1
net/nedi/pkg/DESCR
Normal file
1
net/nedi/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
NeDi is a powerful network discovery tool with a comfortable web interface.
|
1369
net/nedi/pkg/PLIST
Normal file
1369
net/nedi/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
39
net/nedi/pkg/README
Normal file
39
net/nedi/pkg/README
Normal file
@ -0,0 +1,39 @@
|
||||
------------------------8<------------------------
|
||||
$OpenBSD: README,v 1.1 2012/02/17 21:41:08 mglocker Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
Basic installation
|
||||
==================
|
||||
|
||||
Initialize MySQL and PHP Apache modules (if not already done):
|
||||
/usr/local/bin/mysql_install_db
|
||||
${SYSCONFDIR}/rc.d/mysqld start
|
||||
/usr/local/bin/mysqladmin -u root password 'changeme'
|
||||
|
||||
ln -fs /var/www/conf/modules.sample/php-${MODPHP_VERSION}.conf \
|
||||
/var/www/conf/modules/php.conf
|
||||
ln -fs ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/mysql.ini \
|
||||
${SYSCONFDIR}/php-${MODPHP_VERSION}/mysql.ini
|
||||
ln -fs ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/snmp.ini \
|
||||
${SYSCONFDIR}/php-${MODPHP_VERSION}/snmp.ini
|
||||
|
||||
Initialize the NeDi MySQL database with the 'root' database user:
|
||||
${PREFIX}/nedi/nedi.pl -i
|
||||
|
||||
Create a symbolic link in the Apache DocumentRoot:
|
||||
ln -fs ../nedi/html /var/www/htdocs/nedi
|
||||
|
||||
Enable short tags in PHP:
|
||||
vi ${SYSCONFDIR}/php-${MODPHP_VERSION}.ini
|
||||
'short_open_tag = Off' -> 'short_open_tag = On'
|
||||
|
||||
Startup Apache in non-chroot mode:
|
||||
vi /etc/rc.conf.local
|
||||
'httpd_flags="-u"'
|
||||
/etc/rc.d/httpd restart
|
||||
|
||||
Login to NeDi with user 'admin' and password 'admin':
|
||||
http://localhost/nedi/
|
Loading…
Reference in New Issue
Block a user