SB EventLog Monitor is powered by AnyChart - Flash Charting Solutions.
UPDATING
Go to updating guide...INSTALLING
- download and unzip package
- rename ".htpasswd.install to .htpasswd
- rename "config.php.install to config.php
- rename "data\_run.bat.install to data\_run.bat
- create new database in MySQL and use "install/_sbeventlogmonitor.sql" to create tables
CHARSET: If Your MySQL server has support for charsets, set all tables to UTF-8!
NOTE: all tables has prefix "sbEvtLog_". You can change it, or you can leave it as it is - now you have to edit "htdocs/config.php" - please set SQL settings (server, user, password) - You can read more about config.php later
- copy htdocs and all it's content to Your local (intranet) web server
- IMPORTANT: You must set write permission for PHP to the following directories: "data", "templates_cache" and ".htpasswd" file (security info later)
- Now, You are almost done :D You can now access the SB EventLog Monitor using Your browser. You should see the "Summary" page, but there are no data.
- IMPORTANT: Please click on "Settings" and select "Global config". Set there Your SMTP server, mail-from AND "Passcode for bat-prepare.php" (just set it to few "random" chars and remember it, you will need it later). Hit the "Save changes" button.
- IMPORTANT: Go to "Scheduled tasks" in "Settings" and just hit "Save changes" button. THIS STEP IS VERY IMPORTANT.
- You can also define users and password in settings now. Default password for user "admin" is "admin"
- It will be good idea, if You will add one computer in "Monitored computers". OK, You are done here, for now... Now, we are going to setup Event Collector...
- Just edit file "_run.bat" in "data" directory. There are 4 lines of code:
@echo off curl.exe http://localhost/SB_EventLogMonitor/bat-prepare.php?secret=***** cscript wmi-events.vbs curl.exe http://localhost/SB_EventLogMonitor/cron.php?secret=*****
- If You are installing on Windows 2000, you HAVE TO edit data/WMI-EVENTS.VBS file and change this line "DoPingCheck = true" to "DoPingCheck = false"
- You will probably want to change URL after curl.exe. You also have to change the "*****" to Your "Passcode for bat-prepare.php" (Yes, these several random chars form Global config)
- Add new entry to Windows Scheduled Tasks - You will be running "_run.bat". Remember that you have to run this script as domain admin or as user, that has local admin rights on target machines! Run it every 20 minutes (or less / more - it depends on You).
CONFIG.php
AdminEmail - Your email, currently only used for bounce emailesPageCharSet - You don't want to change this... So leave the "UTF-8" settings there
Language - This is the default interface language. Also all emails will be in this language
UserAuth - [true/false] enable or disable user access control (using SESSIONS).
EZSQL_DB_USER, EZSQL_DB_PASSWORD, EZSQL_DB_NAME, EZSQL_DB_HOST - it's clear, isn't it?
EZSQL_DB_CHARSET - server CHARSET.. If you have problems with character encoding in your MySQL, You can set "utf8" here
DB_PREFIX - table prefix in MySQL
** You don't need to change this **
SMARTY_template_dir - where are "templates"
SMARTY_cache_dir - where to store compiled templates and cache files (must be writable)
SMARTY_compile_check - turns off source template change check (faster)
SMARTY_caching", true) - turns on page caching - all pages are cached, so PHP don't need to query SQL all the time
SMARTY_cache_lifetime - how long is the cache valid
SECURITY
You can enable or disable build in user authentication code. All passwords are stored in ".htpasswd" file. If You are not using Apache web server, please make sure, that this file CAN'T be accessed from web!You can use Apache authentication using ".htaccess" file. Just point it to ".htpasswd" file. You can still use SB EventLog Monitor to manage users and passwords.
If you are using IIS (or another server) and don't want to use my integrated authentication (You may want to use NTLM, ...), just follow documentation of Your web server.
Also, if You are not using Apache server, you should disable direct-access to the following folders: "modules", "modules_cron", "templates", "data", BUT PHP must be still able to access these directories and files inside them!