|
It has been last 15 days I am trying to configure
JFFNMS at my FreeBSD box but failure:(
Is there any who can help me to configure my JFFNMS
?
I am giving here information for ssh login ( you
can use Putty)
Public IP: 203.76.98.82
(SU)Root password : [EMAIL PROTECTED]
other shh user: mrk
Password:
moshiur
I want your help to configure it. Please help
me.
Regards,
Moshiur
___________________________________________________________________-
mrtg# cd /usr/ports/net/jffnms/
&& make install clean ===> Installing for
jffnms-0.8.1_1 ===> jffnms-0.8.1_1 depends on
executable: neato - found ===> jffnms-0.8.1_1 depends on
executable: rrdtool - found ===> jffnms-0.8.1_1 depends on
executable: nmap - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/sbin/tmpwatch - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/include/php/main/php.h - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/lib/php/20020429/gd.so - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/lib/php/20020429/snmp.so - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/lib/php/20020429/sockets.so - found ===> jffnms-0.8.1_1 depends on shared
library: mysqlclient.12 - found ===> Generating temporary packing
list ===> Checking if net/jffnms already
installed ===> jffnms-0.8.1_1 is already
installed You may wish to
``make deinstall'' and install this port again by ``make
reinstall'' to upgrade it properly. If you really
wish to overwrite the old port of net/jffnms without deleting
it first, set the variable "FORCE_PKG_REGISTER" in your
environment or the "make install" command line. *** Error code 1 Stop in
/usr/ports/net/jffnms. mrtg# make
deinstall ===> Deinstalling for
net/jffnms ===> Deinstalling
jffnms-0.8.1_1 mrtg# make
reinstall ===> Installing for
jffnms-0.8.1_1 ===> jffnms-0.8.1_1 depends on
executable: neato - found ===> jffnms-0.8.1_1 depends on
executable: rrdtool - found ===> jffnms-0.8.1_1 depends on
executable: nmap - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/sbin/tmpwatch - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/include/php/main/php.h - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/lib/php/20020429/gd.so - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/lib/php/20020429/snmp.so - found ===> jffnms-0.8.1_1 depends on file:
/usr/local/lib/php/20020429/sockets.so - found ===> jffnms-0.8.1_1 depends on shared
library: mysqlclient.12 - found ===> Generating temporary packing
list ===> Checking if net/jffnms already
installed *** Error code 1
(ignored) ==================================================== ACHTUNG!!! 1)
Run /usr/local/share/jffnms/jffnms_db.sh when MySQL is running 2)
Configure apache to serve pages from /usr/local/share/jffnms 3)
Modify 'Register globals = on' in php.ini 4) Go
to http://<your-hostname>/htdocs/admin/setup.php
and finish setting up JFFNMS ==================================================== ===> Registering installation for
jffnms-0.8.1_1
********************************************************************
mrtg# pkg_version -v
+++++++++++++++++++++++++++++++++++++++++++++++++++++++=
Compile and/or Install NMAP
Nmap should be set-uid root if you want UDP port monitoring & discovery to work. Execute: # chmod +s /usr/bin/nmap # chmod a+x /usr/bin/nmap . Compile and/or Install Fping Verify that the user running the cron jobs, is able to execute fping and that it is set-uid root. Execute: # chmod +s /usr/sbin/fping # chmod a+x /usr/sbin/fping And you should see something like this: -rwsr-xr-x 1 root adm 28291 May 31 22:14 /usr/sbin/fping . Compile and/or Install RRDtool . Compile and/or Install PHP I M P O R T A N T ----------------- PHP Modules Needed: sockets, snmp, gd, (pgsql and/or mysql), wddx (for satellites), pcre (syslog parsing) Be sure to add the required modules to your /etc/php.ini file. Remember to verify that your modules are loaded with /admin/adm/test.php or the JFFNMS setup screen. A N D --------------------------------------------------- --------------------------------------------------- Change This in your php.ini file. register_globals = On register_argc_argv = On error_reporting = E_ALL & ~E_NOTICE allow_url_fopen = On include_path = :/usr/share/pear short_open_tag = On --------------------------------------------------- --------------------------------------------------- Also check if your Apache is loading mod_php. Any change to the PHP ini file (ie. /etc/php.ini) requires Apache to be restarted to take effect. -------------------------------------------------------------- . Read the docs/* files, these are examples of configuration. -------------------------------------------------------------- . Optional: Install Integration Packages tac_plus and msyslog (read the README and INSTALL files of each program). Hints: -If you have problems with mysql when compiling (mysql.h lines ~245 & ~256) change DB to db (lowercase); -If you have a linking problem with compress add -lz to the Makefile libraries -msyslog: Remember to change your init.d/syslog to the new binary and command line options. (read the example) . Create User & Group Note: replace apache by your Apache user (like apache, httpd, www-data, etc) # groupadd jffnms # useradd -g jffnms -d /opt/jffnms -s /bin/false -c 'JFFNMS User' jffnms # usermod -G jffnms apache . Unpack the release: # tar xvzf jffnms-0.8.x.tar.gz You will get a directory called jffnms-0.8.x/ # mv jffnms-0.8.x /opt/jffnms . Permissions # chown -R jffnms:jffnms /opt/jffnms # chmod 770 /opt/jffnms # chmod -R ug+rw /opt/jffnms . Crontab Install the JFFNMS crontab file # crontab -u jffnms /opt/jffnms/docs/unix/crontab Now modify the values at the top if they don't match your system: # crontab -e -u jffnms Allow JFFNMS to run cron jobs (AFAIK only needed in Solaris) # echo jffnms >> /etc/cron.allow . Create the Databases Manually create the database "jffnms", set the permissions and then import the schema and data. Replace the 'x' with the jffnms version number. MySQL: ====== # mysql -u <mysql admin username> -p<password> mysql> CREATE DATABASE jffnms; mysql> GRANT ALL PRIVILEGES ON jffnms.* TO [EMAIL PROTECTED] IDENTIFIED BY 'jffnms'; mysql> FLUSH PRIVILEGES; mysql> quit # mysql -u jffnms -pjffnms jffnms < docs/jffnms-0.8.x.mysql PostgreSQL: =========== # psql template1 postgres template1=# create user jffnms password 'jffnms' createdb; template1=# \connect template1 jffnms template1=# create database jffnms; template1=# \q # psql jffnms jffnms < docs/jffnms-0.8.x.pgsql This will create the jffnms Tables and required records. . Configure Apache as follows (from docs/*): 1. As a Virtual Host (if you control a DNS server): <VirtualHost *> ServerAdmin [EMAIL PROTECTED] DocumentRoot /opt/jffnms/htdocs ServerName nms.yournet.com LimitRequestLine 20000 </VirtualHost> 2. As a sym-link (in Unix): ln -s /opt/jffnms/htdocs /var/www/html/jffnms (or the path your Apache uses). JFFNMS needs to be at the main Document Root, a VirtualHost or a SymLink. . Restart/Reload Apache, MySQL or PgSQL, xINETD (tftpd) . PHP Module Load Errors are reported to /var/log/httpd/error_log (RedHat) or /var/log/apache/error_log (Gentoo) . Point your browser to http://www.yourserver.com/jffnms or http://nms.yournet.com/ (depending on what you choose) You should see the Setup screen, it should have auto-discovered your configuration. Verify that everything is correct (OK, YES in green) before saving the config. . Point your browser (again) to http://www.yourserver.com/jffnms or http://nms.yournet.com/ (depending on what you choose) Username: admin Password: admin And now, you are inside the system. . |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ jffnms-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jffnms-users
