Windows2000/XP Install Procedure
=================================
Note:Thiswill notworkfor Windows95/98/Me, it'sonlyfor Windows2000/XP andmaybe NT 4.0
The installationshouldbe done asandAdministratorUser.
Thisguide isfor Apache2withPHP5.If youwant to use olderversions,
readthe JFFNMS0.7.9 INSTALL.win32.txtfile.
Installation:
-------------
Install Apache:
DownloadApache2from:http://www.apache.org/dist/httpd/binaries/win32/
Get the latestrelease "no_ssl.msi"package,like"apache_2.0.52-win32-x86-no_ssl.msi".
Complete Install,ClickonNextuntilFinish.
You shouldsee Apache runninginyourtaskbar.
Testit goingbrowsingtohttp://localhost/orhttp://IP.OF.YOUR.BOX/
Install MySQL:
Downloadfrom:http://www.mysql.com/downloads/mysql/4.1.html
Scroll downuntil youfindMySQLEssentialsforWindows.
Selectthe "CompleteInstall",ClickonNextuntilFinish.
Whenyougo into the configurationphase,select"ServerMachine",
and then"Non-Transacctional Database Only".
Thenseta newrootpassword.
All otherconfigurationleave asdefault.
Install PHP:
DownloadPHP5 from:http://www.php.net/downloads.php
Get the "WindowsBinariesZIPpackage"withall the modules(FirstOne).
Extract the archive to c:php
Execute the following:
c:> copyc:phpphp.ini-distc:windowsphp.ini
c:> copyc:phplibmysql.dll c:windows
Create Folderc:usr
Copyc:phpextramibstoc:usrmibs
Install JFFNMS:
Downloadthe .zipfile (I'm sure youalreadyhave done this) andextractittoc:jffnms
Create the User 'jffnms'inthe WindowsUserManager withanypasswordyouchoose.
RemembertoCHECK'PasswordNeverExpires'andUNCHECK'Must Change passwordat
nextlogon'forthisuser.
Give the 'jffnms'userFULL CONTROLoverthe c:jffnmsfolder(anditssub-folders)
Install RRDTOOL:
Downloadfrom:http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/?M=D
Get the rrdtool-1.0.49-win32-bin.zip(ornewer) file.
Extract the archive to a temporarylocation.
Copythe rrdtool.exe file frominside the archive toc:jffnms
Install NMAP:(If youare runningWindowsXPplease readthe NMAPpage carefully,itmaynot
work)
Downloaditfrom:http://www.insecure.org/nmap/nmap_download.html
Get the nmap-3.81-win32.zipfile(ornewer)
Extract the nmap.exe filefromthe archive toc:jffnms
Install WinPCAPforNMAP:
Downloaditfrom:http://winpcap.polito.it/
Choose the Auto-Installer.
Complete Install,ClickonNextuntilFinish.
Configuration:
--------------
Configure Apache forPHP5:
Addthisto the bottom of your c:programfilesapachegroupApache2confhttpd.conf
file:
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php.php
NameVirtualHost*
<VirtualHost*>
ServerAdminwebmaster@your-domain.com
DocumentRootc:jffnmshtdocs
ServerName nms.yourdomain.com
DirectoryIndex index.php
LimitRequestLine20000
</VirtualHost>
* Make sure youmodify the above informationtomatchyour neededsettings
Configure PHP:
Make sure youhave thison your php.ini file:
register_globals=On
register_argc_argv= On
allow_url_fopen=On
extension_dir=c:phpext
(Uncommentthe following):
extension=php_gd2.dll
extension=php_snmp.dll
extension=php_mysql.dll
extension=php_sockets.dll
SMTP = your.mail.server.com (setitto your mail serverIPor DNSname)
NowRestartthe Apache Service.
if you don'tchange these,JFFNMSwill notwork.
Configure MySQL:
To create the JFFNMSDB run the following:
Checkthe path to mysql.exe
c:> c:Program FilesMySQLMySQLServer4.1binmysql.exe-uroot-p<RootMySQL
Password>
mysql>CREATEDATABASEjffnms;
mysql>GRANTALLPRIVILEGESON jffnms.*TOjffnms@localhostIDENTIFIEDBY'jffnms';
mysql>FLUSHPRIVILEGES;
mysql>quit;
And:
c:> c:Program FilesMySQLMySQLServer4.1binmysql.exe-ujffnms -pjffnmsjffnms<
c:jffnmsdocsjffnms-0.8.x.mysql
Replace x withthe versionyouare installing.
Configure JFFNMS:
-----------------
I M P O R T A N T
-----------------
Go to: http://yourserver/
Verifyandchange (if needed) the options.
Don't mindthe errorson diff,neato,smsclient,fping,ntpq,PgSQLandSOAP.
Save the configurationandchange the valuesuntil everythingneededisGreen.
Everythingelse SHOULDbe OK.
ScheduledTasks:
----------------
If you didnot install jffnmsinc:jffnmsyouwill have tochange the
contentsof the .bat files(path).
Start/Settings/ControlPanel/ScheduledTasks/AddScheduledTask.
1) Next
2) ClickBrowse
3) Browse to c:jffnmsenginewindowsandselectthe first.batfile.
4) SelectDaily,thenNext.
5) Change the Start time to 12:00 AM
6) SelectEvery1 Days thenNext.
7) Enter Username:jffnmsandPassword:(the one youchoosedbefore),
thenNext.
8) Clickthe 'OpenAvanced...'checkbox,thenclickFinish
9) Change "Start In" toc:jffnmsengine
10) Clickthe Schedule tab
11) For autodiscovery_interfaces,consolidate,poller&rrd_analizer:
Clickon the AdvancedButton.
CheckRepeatTask. In the Every Fieldenterthe respectivetimes:
autodiscovery_interfacesevery30minutes.
consolidate Every1Minute.
pollerEvery4 minutes.
rrd_analizerevery30 minutes.
Duration:24 Hours.
12) ClickonOK.
13) ClickonOK.
** REPEAT THESE STEPS FOR EACH .BATCHFILE IN THE
C:JFFNMSENGINEWINDOWSPATH!
Now...tryto access http://yourserver/orhttp://yourserver/jffnms/(if youtookthisway)
Remembertoaddthe last slash/ to the URL.
The DefaultUsername andpasswordis"admin".
If you wantto read more,please readthe INSTALLfile andskipthe Unix Parts.
=========================================================================
If you needanything,contactusat: jffnms-users@lists.sourceforge.net
Thank You fortrying'Just For Fun'NetworkManagementSystem
Don't forgetto Donate to the projectif youfindit useful foryourwork.
=========================================================================
JavierSzyszlicanakaSzYsZ
BuenosAires,Argentina
javier@jffnms.org(please trythe mailinglistfirst)
ICQ #397319

Jffnms Manual

  • 1.
    Windows2000/XP Install Procedure ================================= Note:Thiswillnotworkfor Windows95/98/Me, it'sonlyfor Windows2000/XP andmaybe NT 4.0 The installationshouldbe done asandAdministratorUser. Thisguide isfor Apache2withPHP5.If youwant to use olderversions, readthe JFFNMS0.7.9 INSTALL.win32.txtfile. Installation: ------------- Install Apache: DownloadApache2from:http://www.apache.org/dist/httpd/binaries/win32/ Get the latestrelease "no_ssl.msi"package,like"apache_2.0.52-win32-x86-no_ssl.msi". Complete Install,ClickonNextuntilFinish. You shouldsee Apache runninginyourtaskbar. Testit goingbrowsingtohttp://localhost/orhttp://IP.OF.YOUR.BOX/ Install MySQL: Downloadfrom:http://www.mysql.com/downloads/mysql/4.1.html Scroll downuntil youfindMySQLEssentialsforWindows. Selectthe "CompleteInstall",ClickonNextuntilFinish. Whenyougo into the configurationphase,select"ServerMachine", and then"Non-Transacctional Database Only".
  • 2.
    Thenseta newrootpassword. All otherconfigurationleaveasdefault. Install PHP: DownloadPHP5 from:http://www.php.net/downloads.php Get the "WindowsBinariesZIPpackage"withall the modules(FirstOne). Extract the archive to c:php Execute the following: c:> copyc:phpphp.ini-distc:windowsphp.ini c:> copyc:phplibmysql.dll c:windows Create Folderc:usr Copyc:phpextramibstoc:usrmibs Install JFFNMS: Downloadthe .zipfile (I'm sure youalreadyhave done this) andextractittoc:jffnms Create the User 'jffnms'inthe WindowsUserManager withanypasswordyouchoose. RemembertoCHECK'PasswordNeverExpires'andUNCHECK'Must Change passwordat nextlogon'forthisuser. Give the 'jffnms'userFULL CONTROLoverthe c:jffnmsfolder(anditssub-folders) Install RRDTOOL:
  • 3.
    Downloadfrom:http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/?M=D Get the rrdtool-1.0.49-win32-bin.zip(ornewer)file. Extract the archive to a temporarylocation. Copythe rrdtool.exe file frominside the archive toc:jffnms Install NMAP:(If youare runningWindowsXPplease readthe NMAPpage carefully,itmaynot work) Downloaditfrom:http://www.insecure.org/nmap/nmap_download.html Get the nmap-3.81-win32.zipfile(ornewer) Extract the nmap.exe filefromthe archive toc:jffnms Install WinPCAPforNMAP: Downloaditfrom:http://winpcap.polito.it/ Choose the Auto-Installer. Complete Install,ClickonNextuntilFinish. Configuration: -------------- Configure Apache forPHP5: Addthisto the bottom of your c:programfilesapachegroupApache2confhttpd.conf file: LoadModule php5_module c:/php/php5apache2.dll AddType application/x-httpd-php.php NameVirtualHost*
  • 4.
    <VirtualHost*> ServerAdminwebmaster@your-domain.com DocumentRootc:jffnmshtdocs ServerName nms.yourdomain.com DirectoryIndex index.php LimitRequestLine20000 </VirtualHost> *Make sure youmodify the above informationtomatchyour neededsettings Configure PHP: Make sure youhave thison your php.ini file: register_globals=On register_argc_argv= On allow_url_fopen=On extension_dir=c:phpext (Uncommentthe following): extension=php_gd2.dll extension=php_snmp.dll extension=php_mysql.dll extension=php_sockets.dll SMTP = your.mail.server.com (setitto your mail serverIPor DNSname) NowRestartthe Apache Service.
  • 5.
    if you don'tchangethese,JFFNMSwill notwork. Configure MySQL: To create the JFFNMSDB run the following: Checkthe path to mysql.exe c:> c:Program FilesMySQLMySQLServer4.1binmysql.exe-uroot-p<RootMySQL Password> mysql>CREATEDATABASEjffnms; mysql>GRANTALLPRIVILEGESON jffnms.*TOjffnms@localhostIDENTIFIEDBY'jffnms'; mysql>FLUSHPRIVILEGES; mysql>quit; And: c:> c:Program FilesMySQLMySQLServer4.1binmysql.exe-ujffnms -pjffnmsjffnms< c:jffnmsdocsjffnms-0.8.x.mysql Replace x withthe versionyouare installing. Configure JFFNMS: ----------------- I M P O R T A N T -----------------
  • 6.
    Go to: http://yourserver/ Verifyandchange(if needed) the options. Don't mindthe errorson diff,neato,smsclient,fping,ntpq,PgSQLandSOAP. Save the configurationandchange the valuesuntil everythingneededisGreen. Everythingelse SHOULDbe OK. ScheduledTasks: ---------------- If you didnot install jffnmsinc:jffnmsyouwill have tochange the contentsof the .bat files(path). Start/Settings/ControlPanel/ScheduledTasks/AddScheduledTask. 1) Next 2) ClickBrowse 3) Browse to c:jffnmsenginewindowsandselectthe first.batfile. 4) SelectDaily,thenNext. 5) Change the Start time to 12:00 AM 6) SelectEvery1 Days thenNext. 7) Enter Username:jffnmsandPassword:(the one youchoosedbefore), thenNext. 8) Clickthe 'OpenAvanced...'checkbox,thenclickFinish 9) Change "Start In" toc:jffnmsengine 10) Clickthe Schedule tab 11) For autodiscovery_interfaces,consolidate,poller&rrd_analizer: Clickon the AdvancedButton.
  • 7.
    CheckRepeatTask. In theEvery Fieldenterthe respectivetimes: autodiscovery_interfacesevery30minutes. consolidate Every1Minute. pollerEvery4 minutes. rrd_analizerevery30 minutes. Duration:24 Hours. 12) ClickonOK. 13) ClickonOK. ** REPEAT THESE STEPS FOR EACH .BATCHFILE IN THE C:JFFNMSENGINEWINDOWSPATH! Now...tryto access http://yourserver/orhttp://yourserver/jffnms/(if youtookthisway) Remembertoaddthe last slash/ to the URL. The DefaultUsername andpasswordis"admin". If you wantto read more,please readthe INSTALLfile andskipthe Unix Parts. ========================================================================= If you needanything,contactusat: jffnms-users@lists.sourceforge.net Thank You fortrying'Just For Fun'NetworkManagementSystem Don't forgetto Donate to the projectif youfindit useful foryourwork.
  • 8.