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


STk-4.0.1                           =   up-to-date with port
TenDRA-4.20040902                   =   up-to-date with port
Xaw3d-1.5_1                         =   up-to-date with port
afnix-1.0.1                         =   up-to-date with port
alisp-20050314                      =   up-to-date with port
apache-1.3.33_1                     =   up-to-date with port
asn1c-0.9.12                        =   up-to-date with port
atlast-1.0_1                        =   up-to-date with port
autoconf-2.13.000227_5              =   up-to-date with port
awka-0.7.5                          =   up-to-date with port
bf2c-1.2.3                          =   up-to-date with port
bison-1.75_2                        =   up-to-date with port
bsdiff-4.2                          =   up-to-date with port
cabextract-1.1                      =   up-to-date with port
cvsup-without-gui-16.1h_2           =   up-to-date with port
expat-1.95.8                        =   up-to-date with port
ezm3-1.2                            =   up-to-date with port
fontconfig-2.2.3,1                  =   up-to-date with port
fping-2.4b2                         =   up-to-date with port
freebsd-sha256-20050310             =   up-to-date with port
freetype2-2.1.9                     =   up-to-date with port
gettext-0.14.1                      =   up-to-date with port
gmake-3.80_2                        =   up-to-date with port
gofer-2.30b                         =   up-to-date with port
graphviz-2.2                        =   up-to-date with port
imake-6.8.2                         =   up-to-date with port
jffnms-0.8.1_1                      =   up-to-date with port
jpeg-6b_3                           =   up-to-date with port
libiconv-1.9.2_1                    =   up-to-date with port
libtool-1.3.5_2                     =   up-to-date with port
libtool-1.5.10_1                    =   up-to-date with port
libxml2-2.6.18                      =   up-to-date with port
m4-1.4.1                            =   up-to-date with port
mysql-client-4.0.24                 =   up-to-date with port
mysql-server-4.0.24                 =   up-to-date with port
net-snmp-5.2.1_1                    =   up-to-date with port
nmap-3.81                           =   up-to-date with port
pcre-5.0                            =   up-to-date with port
perl-5.6.2_2                        =   up-to-date with port
perl-5.8.6_2                        =   up-to-date with port
php4-4.3.10_2                       =   up-to-date with port
php4-gd-4.3.10_2                    =   up-to-date with port
php4-mysql-4.3.10_2                 =   up-to-date with port
php4-pcre-4.3.10_2                  =   up-to-date with port
php4-session-4.3.10_2               =   up-to-date with port
php4-snmp-4.3.10_2                  =   up-to-date with port
php4-sockets-4.3.10_2               =   up-to-date with port
php4-xml-4.3.10_2                   =   up-to-date with port
php4-zlib-4.3.10_2                  =   up-to-date with port
pkgconfig-0.15.0_1                  =   up-to-date with port
png-1.2.8_1                         =   up-to-date with port
portsnap-0.9.1                      =   up-to-date with port
readline-5.0                        =   up-to-date with port
rrdtool-1.0.49                      =   up-to-date with port
t1lib-5.0.1,1                       =   up-to-date with port
tcl-8.4.7,1                         =   up-to-date with port
tk-8.4.7,2                          =   up-to-date with port
tmpwatch-2.9.0                      =   up-to-date with port
ttmkfdir-20021109_1                 =   up-to-date with port
webfonts-0.21_1                     =   up-to-date with port
xorg-libraries-6.8.2                =   up-to-date with port
mrtg#

 
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++=
 
 
 
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

Reply via email to