The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"OCS Inventory + GLPI"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Открытые системы на сервере (Разное)
Изначальное сообщение [ Отслеживать ]

"OCS Inventory + GLPI"  +/
Сообщение от pk.user (ok) on 08-Фев-11, 14:18 
Настраивал программу по FAQ http://habrahabr.ru/blogs/sysadm/104141/#habracut
Установленно:
Apache::DBI -- 1.10
Apache::Ocsinventory -- 1.02
Authen::PAM -- 0.16
BSD::Resource -- 1.2904
Bundle::NetSNMP -- ???
Class::Inspector -- 1.24
Compress::Raw::Bzip2 -- 2.033
Compress::Raw::Zlib -- 2.033
Convert::BinHex -- 1.119
Crypt::SSLeay -- 0.58
DBD::mysql -- 4.017
DBI -- 1.615
Digest::SHA1 -- 2.13
Email::Date::Format -- 1.002
ExtUtils::MakeMaker -- undef
HTML::Parser -- 3.68
HTML::Tagset -- 3.20
IO::Socket::SSL -- 1.37
IO::Stringy -- 2.110
LWP -- 5.837
Locale::gettext -- 1.05
MIME::Lite -- 3.027
MIME::Types -- 1.31
MIME::tools -- ???
Mail -- ???
Net::IP -- 1.25
Net::SSLeay -- 1.36
Perl -- 5.10.1
RRDp -- 1.4004
RRDs -- 1.4004
SOAP::Lite -- 0.712
Storable -- 2.25
Task::Weaken -- 1.03
TimeDate -- ???
URI -- 1.56
XML::Entities -- 1.0000
XML::NamespaceSupport -- 1.11
XML::Parser -- 2.40
XML::SAX -- 0.96
XML::SAX::Expat -- 0.40
XML::Simple -- 2.18
mod_perl2 -- 2.000004
sgt# nao start.sh
nao: Command not found.
sgt# apachectl graceful
sgt# nao start.sh
nao: Command not found.
sgt# ./start.sh
Apache::DBI -- 1.10
Apache::Ocsinventory -- 1.02
Authen::PAM -- 0.16
BSD::Resource -- 1.2904
Bundle::NetSNMP -- ???
Class::Inspector -- 1.24
Compress::Raw::Bzip2 -- 2.033
Compress::Raw::Zlib -- 2.033
Convert::BinHex -- 1.119
Crypt::SSLeay -- 0.58
DBD::mysql -- 4.017
DBI -- 1.615
Digest::SHA1 -- 2.13
Email::Date::Format -- 1.002
ExtUtils::MakeMaker -- undef
HTML::Parser -- 3.68
HTML::Tagset -- 3.20
IO::Socket::SSL -- 1.37
IO::Stringy -- 2.110
LWP -- 5.837
Locale::gettext -- 1.05
MIME::Lite -- 3.027
MIME::Types -- 1.31
MIME::tools -- ???
Mail -- ???
Net::IP -- 1.25
Net::SSLeay -- 1.36
Perl -- 5.10.1
RRDp -- 1.4004
RRDs -- 1.4004
SOAP::Lite -- 0.712
Storable -- 2.25
Task::Weaken -- 1.03
TimeDate -- ???
URI -- 1.56
XML::Entities -- 1.0000
XML::NamespaceSupport -- 1.11
XML::Parser -- 2.40
XML::SAX -- 0.96
XML::SAX::Expat -- 0.40
XML::Simple -- 2.18
mod_perl2 -- 2.000004

Виртуал хост

<VirtualHost 192.168.0.183:80>
ServerAdmin webmaster@ololo.ru
DocumentRoot /usr/local/www/ocs/ocsreports
ServerName ocs.sgtnsk.ru
ServerAlias www.ocs.ololo.ru
#ErrorLog "|/usr/local/sbin/rotatelogs /var/log/httpd/http.ocs.ololo.ru-error_log.%Y-%m-%d-%H_%M_%S 86400"
#CustomLog "|/usr/local/sbin/rotatelogs /var/log/httpd/http.ocs.ololo.ru-access_log.%Y-%m-%d-%H_%M_%S 86400" common
</VirtualHost>


<Directory />
    # By default, users can use console from everywhere
    Order deny,allow
    Allow from 192.168.0.0/16
    Options Indexes FollowSymLinks
    DirectoryIndex index.php
    AllowOverride Options
</Directory>

Логи установки


Starting OCS Inventory NG Management server setup on 2011-02-08-19-30-00
from folder /usr/local/www/ocs
Storing log in file /usr/local/www/ocs/ocs_server_setup.log

============================================================
Checking OCS Inventory NG Management Server requirements...
============================================================
Checking for database server properties
MySQL client distribution version 5.1.
Computer seems to be running MySQL 4.1 or higher
Database server is running on host localhost
Database server is running on port 3306
Checking for Apache web server daemon
Found Apache daemon /usr/local/sbin/httpd
Using Apache daemon /usr/local/sbin/httpd
Checking for Apache main configuration file
Found Apache HTTPD_ROOT /usr/local
Found Apache SERVER_CONFIG_FILE etc/apache22/httpd.conf
Found Apache main configuration file /usr/local/etc/apache22/httpd.conf
Using Apache main configuration file /usr/local/etc/apache22/httpd.conf
Checking for Apache user account
Found Apache user account User
Using Apache user account www
Checking for Apache group
Found Apache user group www
Using Apache user group www
Checking for Apache Include configuration directory
Not found Redhat compliant Apache Include configuration directory
Found Apache Include configuration directory
Using Apache Include configuration directory /usr/local/etc/apache22/Includes
Checking for PERL Interpreter
Found PERL Intrepreter at </usr/bin/perl>
Using PERL Intrepreter /usr/bin/perl

============================================================
Installing Communication server
============================================================
Checking for Make utility
Make utility found at </usr/bin/make>
Checking for Apache mod_perl version 1.99_22 or higher
mod_perl 1.99_22 or higher is available
Using mod_perl version 1.99_22 or higher
Checking for Communication server log directory
Using /var/log/ocsinventory-server as Communication server log directory
Entering Apache sub directory
Checking for DBI PERL module
PERL module DBI is available
Checking for Apache::DBI PERL module
PERL module Apache::DBI is available
Checking for DBD::mysql PERL module
PERL module DBD::mysql is available
Checking for Compress::Zlib PERL module
PERL module Compress::Zlib is available
Checking for XML::Simple PERL module
PERL module XML::Simple is available
Checking for Net::IP PERL module
PERL module Net::IP is available
Checking for SOAP::Lite PERL module
PERL module SOAP::Lite is available
Checking for XML::Entities PERL module
PERL module XML::Entities is available
Configuring Communication server (perl Makefile.PL)
Preparing Communication server Perl modules (make)
cp Ocsinventory.pm blib/lib/Apache/Ocsinventory.pm
cp Ocsinventory/Server/Inventory/Capacities.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Capacities.pm
cp Ocsinventory/Interface/Extensions.pm blib/lib/Apache/Ocsinventory/Interface/Extensions.pm
cp Ocsinventory/Server/Communication.pm blib/lib/Apache/Ocsinventory/Server/Communication.pm
cp Ocsinventory/Interface/Database.pm blib/lib/Apache/Ocsinventory/Interface/Database.pm
cp Ocsinventory/Interface/Updates.pm blib/lib/Apache/Ocsinventory/Interface/Updates.pm
cp Ocsinventory/Interface/Ipdiscover.pm blib/lib/Apache/Ocsinventory/Interface/Ipdiscover.pm
cp Ocsinventory/Server/Inventory.pm blib/lib/Apache/Ocsinventory/Server/Inventory.pm
cp Ocsinventory/SOAP.pm blib/lib/Apache/Ocsinventory/SOAP.pm
cp Ocsinventory/Interface/History.pm blib/lib/Apache/Ocsinventory/Interface/History.pm
cp Ocsinventory/Interface/Config.pm blib/lib/Apache/Ocsinventory/Interface/Config.pm
cp Ocsinventory/Server/Capacities/Registry.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Registry.pm
cp Ocsinventory/Server/Inventory/Update/Hardware.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Update/Hardware.pm
cp Ocsinventory/Server/Inventory/Update.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Update.pm
cp Ocsinventory/Server/Capacities/Ipdiscover.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Ipdiscover.pm
cp Ocsinventory/Server/Capacities/Filter.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Filter.pm
cp Ocsinventory/Server/Inventory/Filter.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Filter.pm
cp Ocsinventory/Server/Inventory/Data.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Data.pm
cp Ocsinventory/Server/Capacities/Example.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Example.pm
cp Ocsinventory/Interface/Inventory.pm blib/lib/Apache/Ocsinventory/Interface/Inventory.pm
cp Ocsinventory/Server/Inventory/Cache.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Cache.pm
cp Ocsinventory/Server/Modperl2.pm blib/lib/Apache/Ocsinventory/Server/Modperl2.pm
cp Ocsinventory/Map.pm blib/lib/Apache/Ocsinventory/Map.pm
cp Ocsinventory/Server/Inventory/Export.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Export.pm
cp Ocsinventory/Server/System.pm blib/lib/Apache/Ocsinventory/Server/System.pm
cp Ocsinventory/Server/Capacities/Notify.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Notify.pm
cp Ocsinventory/Server/Capacities/Update.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Update.pm
cp Ocsinventory/Interface.pm blib/lib/Apache/Ocsinventory/Interface.pm
cp Ocsinventory/Server/Groups.pm blib/lib/Apache/Ocsinventory/Server/Groups.pm
cp Ocsinventory/Server/Capacities/Download/Inventory.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Download/Inventory.pm
cp Ocsinventory/Server/Communication/Session.pm blib/lib/Apache/Ocsinventory/Server/Communication/Session.pm
cp Ocsinventory/Server/Capacities/Download.pm blib/lib/Apache/Ocsinventory/Server/Capacities/Download.pm
cp Ocsinventory/Server/Inventory/Update/AccountInfos.pm blib/lib/Apache/Ocsinventory/Server/Inventory/Update/AccountInfos.pm
cp Ocsinventory/Server/Constants.pm blib/lib/Apache/Ocsinventory/Server/Constants.pm
cp Ocsinventory/Server/System/Config.pm blib/lib/Apache/Ocsinventory/Server/System/Config.pm
cp Ocsinventory/Server/Modperl1.pm blib/lib/Apache/Ocsinventory/Server/Modperl1.pm
cp Ocsinventory/Server/Duplicate.pm blib/lib/Apache/Ocsinventory/Server/Duplicate.pm
cp Ocsinventory/Interface/Internals.pm blib/lib/Apache/Ocsinventory/Interface/Internals.pm
Installing Communication server Perl modules (make install)
Installing /usr/local/lib/perl5/site_perl/5.10.1/Apache/Ocsinventory.pm
Installing /usr/local/lib/perl5/site_perl/5.10.1/Apache/Ocsinventory/Server/Inventory/Data.pm
FreeBSD: Registering installation in the package database
FreeBSD: Cannot determine short module description
FreeBSD: Cannot determine module description
Cannot create directory /var/db/pkg/bsdpan-Apache-Ocsinventory-1.02: File exists
Appending installation info to /usr/local/lib/perl5/5.10.1/mach/perllocal.pod
Creating Communication server log directory /var/log/ocsinventory-server
Fixing Communication server log directory permissions
Configuring logrotate (ed logrotate.ocsinventory-NG)
******** Begin updated logrotate.ocsinventory-server.local ***********
# Rotate OCS Inventory NG Communication server logs daily
# Save 7 days old logs in compressed mode
/var/log/ocsinventory-server/*.log {
    daily
    rotate 7
    compress
    missingok
}
******** End updated logrotate.COM_SERVER_LOGROTATE_CONF_FILE.local ***********
Removing old communication server logrotate file /etc/logrotate.d/ocsinventory-NG
Writing communication server logrotate to file /etc/logrotate.d/ocsinventory-server
OK, using 'z-ocsinventory-server.conf' as Communication Server Apache configuration file
Configuring Apache web server (file ocsinventory-server.conf)
******** Begin updated ocsinventory-server.conf.local ***********
################################################################################
#
# OCS Inventory NG Communication Server Perl Module Setup
#
# Copyleft 2006 Pascal DANEK
# Web: http://www.ocsinventory-ng.org
#
# This code is open source and may be copied and modified as long as the source
# code is always made freely available.
# Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
################################################################################

<IfModule mod_perl.c>

  # Which version of mod_perl we are using
  # For mod_perl <= 1.999_21, replace 2 by 1
  # For mod_perl > 1.999_21, replace 2 by 2
  PerlSetEnv OCS_MODPERL_VERSION 2

  # Master Database settings
  # Replace localhost by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST localhost
  # Replace 3306 by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT 3306
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb
  PerlSetEnv OCS_DB_LOCAL ocsweb
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER ocs
  # Password for user
  PerlSetVar OCS_DB_PWD ocs

  #В Slave Database settings
  # Replace localhost by hostname or ip of MySQL server for READ
  # Useful if you handle mysql slave databases
  # PerlSetEnv OCS_DB_SL_HOST localhost
  # Replace 3306 by port where running MySQL server, generally 3306
  # PerlSetEnv OCS_DB_SL_PORT_SLAVE 3306
  # User allowed to connect to database
  # PerlSetEnv OCS_DB_SL_USER ocs
  # Name of the database
  # PerlSetEnv OCS_DB_SL_NAME ocsweb
  # Password for user
  # PerlSetVar OCS_DB_SL_PWD ocs
  
  # Path to log directory (must be writeable)
  PerlSetEnv OCS_OPT_LOGPATH "/var/log/ocsinventory-server"
  
  # If you need to specify a mysql socket that the client's built-in
  #PerlSetVar OCS_OPT_DBI_MYSQL_SOCKET "path/to/mysql/unix/socket"
  # DBI verbosity
  PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0
  
  # Unicode support
  PerlSetEnv OCS_OPT_UNICODE_SUPPORT 1

  # If you are using a multi server architecture,
  # Put the ip addresses of the slaves on the master
  # (This is read as perl regular expressions)
  PerlAddVar OCS_OPT_TRUSTED_IP 127.0.0.1
  #PerlAddVar OCS_OPT_TRUSTED_IP XXX.XXX.XXX.XXX
  
# ===== WEB SERVICE (SOAP) SETTINGS =====

  PerlSetEnv OCS_OPT_WEB_SERVICE_ENABLED 0
  PerlSetEnv OCS_OPT_WEB_SERVICE_RESULTS_LIMIT 100
  # PerlSetEnv OCS_OPT_WEB_SERVICE_PRIV_MODS_CONF "WEBSERV_PRIV_MOD_CONF_FILE"

# Be careful: you must restart apache to make settings taking effects

  # Configure engine to use the settings from this file  
  PerlSetEnv OCS_OPT_OPTIONS_NOT_OVERLOADED 0

  # Try to use other compress algorythm than raw zlib
  # GUNZIP and clear XML are supported
  PerlSetEnv OCS_OPT_COMPRESS_TRY_OTHERS 1
  
##############################################################
# ===== OPTIONS BELOW ARE OVERLOADED IF YOU USE OCS GUI =====#
##############################################################

# NOTE: IF YOU WANT TO USE THIS CONFIG FILE INSTEAD, set OCS_OPT_OPTIONS_NOT_OVERLOADED to '1'

# ===== MAIN SETTINGS =====

  # Enable engine logs (see LOGPATH setting)
  PerlSetEnv OCS_OPT_LOGLEVEL 0
  # Specify agent's prolog frequency
  PerlSetEnv OCS_OPT_PROLOG_FREQ 12
  # Configure the duplicates detection system
  PerlSetEnv OCS_OPT_AUTO_DUPLICATE_LVL 15
  # Futur security improvements
  PerlSetEnv OCS_OPT_SECURITY_LEVEL 0
  # Validity of a computer's lock
  PerlSetEnv OCS_OPT_LOCK_REUSE_TIME 600
  # Enable the history tracking system (useful for external data synchronisation
  PerlSetEnv OCS_OPT_TRACE_DELETED 0
  
# ===== INVENTORY SETTINGS =====
  
  # Specify the validity of inventory data
  PerlSetEnv OCS_OPT_FREQUENCY 0  
  # Configure engine to update inventory regarding to CHECKSUM agent value (lower DB backend load)
  PerlSetEnv OCS_OPT_INVENTORY_DIFF 1
  # Make engine consider an inventory as a transaction (lower concurency, better disk usage)
  PerlSetEnv OCS_OPT_INVENTORY_TRANSACTION 1
  # Configure engine to make a differential update of inventory sections (row level). Lower DB backend load, higher frontend load
  PerlSetEnv OCS_OPT_INVENTORY_WRITE_DIFF 1
  # Enable some stuff to improve DB queries, especially for GUI multicriteria searching system
  PerlSetEnv OCS_OPT_INVENTORY_CACHE_ENABLED 1
  # Specify when the engine will clean the inventory cache structures
  PerlSetEnv OCS_OPT_INVENTORY_CACHE_REVALIDATE 7
  # Enable you to keep trace of every elements encountered in db life
  PerlSetEnv OCS_OPT_INVENTORY_CACHE_KEEP 1

# ===== SOFTWARES DEPLOYMENT SETTINGS =====

  # Enable this feature
  PerlSetEnv OCS_OPT_DOWNLOAD 0
  # Package wich have a priority superior than this value will not be downloaded
  PerlSetEnv OCS_OPT_DOWNLOAD_PERIOD_LENGTH 10
  # Time between two download cycles (bandwidth control)
  PerlSetEnv OCS_OPT_DOWNLOAD_CYCLE_LATENCY 60
  # Time between two fragment downloads (bandwidth control)
  PerlSetEnv OCS_OPT_DOWNLOAD_FRAG_LATENCY 60
  # Specify if you want to track packages affected to a group on computer's level
  PerlSetEnv OCS_OPT_DOWNLOAD_GROUPS_TRACE_EVENTS 1
  # Time between two download periods (bandwidth control)
  PerlSetEnv OCS_OPT_DOWNLOAD_PERIOD_LATENCY 60
  # Agents will send ERR_TIMEOUT event and clean the package it is older than this setting
  PerlSetEnv OCS_OPT_DOWNLOAD_TIMEOUT 7
  # Number of cycle within a period
  
  # Enable ocs engine to deliver agent's files (deprecated)
  PerlSetEnv OCS_OPT_DEPLOY 0
  # Enable the softwares deployment capacity (bandwidth control)
  
# ===== GROUPS SETTINGS =====

  # Enable the computer\s groups feature
  PerlSetEnv OCS_OPT_ENABLE_GROUPS 1
  # Random number computed in the defined range. Designed to avoid computing many groups in the same process
  PerlSetEnv OCS_OPT_GROUPS_CACHE_OFFSET 600
  # Specify the validity of computer's groups (default: 10 minutes - see offset)
  PerlSetEnv OCS_OPT_GROUPS_CACHE_REVALIDATE 600
  
# ===== IPDISCOVER SETTINGS =====

  # Specify how much agent per LAN will discovered connected peripherals (0 to disable)
  PerlSetEnv OCS_OPT_IPDISCOVER 2
  # Specify the minimal difference to replace an ipdiscover agent
  PerlSetEnv OCS_OPT_IPDISCOVER_BETTER_THRESHOLD 1
  # Time between 2 arp requests (mini: 10 ms)
  PerlSetEnv OCS_OPT_IPDISCOVER_LATENCY 100
  # Specify when to remove a computer when it has not come until this period
  PerlSetEnv OCS_OPT_IPDISCOVER_MAX_ALIVE 14
  # Disable the time before a first election (not recommended)
  PerlSetEnv OCS_OPT_IPDISCOVER_NO_POSTPONE 0
  # Enable groups for ipdiscover (for example, you might want to prevent some groups to be ipdiscover agents)
  PerlSetEnv OCS_OPT_IPDISCOVER_USE_GROUPS 1
  
# ===== INVENTORY FILES MAPPING SETTINGS =====

  # Use with ocsinventory-injector, enable the multi entities feature
  PerlSetEnv OCS_OPT_GENERATE_OCS_FILES 0
  # Generate either compressed file or clear XML text
  PerlSetEnv OCS_OPT_OCS_FILES_FORMAT OCS
  # Specify if you want to keep trace of all inventory between to synchronisation with the higher level server
  PerlSetEnv OCS_OPT_OCS_FILES_OVERWRITE 0
  # Path to ocs files directory (must be writeable)
  PerlSetEnv OCS_OPT_OCS_FILES_PATH /tmp

# ===== FILTER SETTINGS =====

  # Enable prolog filter stack
  PerlSetEnv OCS_OPT_PROLOG_FILTER_ON 0
  # Enable core filter system to modify some things "on the fly"
  PerlSetEnv OCS_OPT_INVENTORY_FILTER_ENABLED 0
  # Enable inventory flooding filter. A dedicated ipaddress ia allowed to send a new computer only once in this period
  PerlSetEnv OCS_OPT_INVENTORY_FILTER_FLOOD_IP 0
  # Period definition for INVENTORY_FILTER_FLOOD_IP
  PerlSetEnv OCS_OPT_INVENTORY_FILTER_FLOOD_IP_CACHE_TIME 300
  # Enable inventory filter stack
  PerlSetEnv OCS_OPT_INVENTORY_FILTER_ON 0
  
# ===== REGISTRY SETTINGS =====

  # Enable the registry capacity
  PerlSetEnv OCS_OPT_REGISTRY 1
  
# ===== SESSION SETTINGS =====
# Not yet in GUI

  # Validity of a session (prolog=>postinventory)
  PerlSetEnv OCS_OPT_SESSION_VALIDITY_TIME 600
  # Consider a session obsolete if it is older thant this value
  PerlSetEnv OCS_OPT_SESSION_CLEAN_TIME 86400
  # Accept an inventory only if required by server
  #( Refuse "forced" inventory)
  PerlSetEnv OCS_OPT_INVENTORY_SESSION_ONLY 0

# ===== TAG =====

  # The default behavior of the server is to ignore TAG changes from the
  # agent.
  PerlSetEnv OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT 0


# ===== DEPRECATED =====

  # Set the proxy cache validity in http headers when sending a file
  PerlSetEnv OCS_OPT_PROXY_REVALIDATE_DELAY 3600
  # Deprecated
  PerlSetEnv OCS_OPT_UPDATE 0
  
############ DO NOT MODIFY BELOW ! #######################
  
  # External modules
  PerlModule Apache::DBI
  PerlModule Compress::Zlib
  PerlModule XML::Simple
  
  # Ocs
  PerlModule Apache::Ocsinventory
  PerlModule Apache::Ocsinventory::Server::Constants
  PerlModule Apache::Ocsinventory::Server::System
  PerlModule Apache::Ocsinventory::Server::Communication
  PerlModule Apache::Ocsinventory::Server::Inventory
  PerlModule Apache::Ocsinventory::Server::Duplicate

  # Capacities
  PerlModule Apache::Ocsinventory::Server::Capacities::Registry
  PerlModule Apache::Ocsinventory::Server::Capacities::Update
  PerlModule Apache::Ocsinventory::Server::Capacities::Ipdiscover
  PerlModule Apache::Ocsinventory::Server::Capacities::Download
  PerlModule Apache::Ocsinventory::Server::Capacities::Notify
  # This module guides you through the module creation
  # PerlModule Apache::Ocsinventory::Server::Capacities::Example
  # This module adds some rules to filter some request sent to ocs server in the prolog and inventory stages
  # PerlModule Apache::Ocsinventory::Server::Capacities::Filter
  
  # PerlTaintCheck On

  # SSL apache settings
  #SSLEngine "SSL_ENABLE"
  #SSLCertificateFile "SSL_CERTIFICATE_FILE"
  #SSLCertificateKeyFile "SSL_CERTIFICATE_KEY_FILE"
  #SSLCACertificateFile "SSL_CERTIFICATE_FILE"
  #SSLCACertificatePath "SSL_CERTIFICATE_PATH"
  #SSLVerifyClient "SSL_VALIDATE_CLIENT"

  # Engine apache settings
  # "Virtual" directory for handling OCS Inventory NG agents communications
  # Be careful, do not create such directory into your web server root document !
  <Location /ocsinventory>
    order deny,allow
    allow from all
    Satisfy Any
    #В If you protect this area you have to deal with http_auth_* agent's parameters
    # AuthType Basic
    # AuthName "OCS Inventory agent area"
    # AuthUserFile "APACHE_AUTH_USER_FILE"
    # require valid-user
        SetHandler perl-script
        PerlHandler Apache::Ocsinventory
  </Location>

  # Web service apache settings
  PerlModule Apache::Ocsinventory::SOAP

  <location /ocsinterface>
        SetHandler perl-script
        PerlHandler "Apache::Ocsinventory::SOAP"
        
        # By default, you can query web service from everywhere with a valid user
        Order deny,allow
        Allow from all
           AuthType Basic
    AuthName "OCS Inventory SOAP Area"
    # Use htpasswd to create/update soap-user (or another granted user)
    AuthUserFile "APACHE_AUTH_USER_FILE"
    require "SOAP_USER"
  </location>
</IfModule>

******** End updated ocsinventory-server.conf.local ***********
Removing old communication server configuration to file /usr/local/etc/apache22/Includes/ocsinventory.conf
Writing communication server configuration to file /usr/local/etc/apache22/Includes/z-ocsinventory-server.conf
Leaving Apache directory
Communication server installation successfull


Ошибка агента
HTTP SERVER: Opening Internet connection to download <http://192.168.0.183:80/ocsinventory/deploy/label>...ERROR: HTTP status code 400
HTTP SERVER: Closing HTTP connection...OK
WMI Connect: Trying to connect to WMI namespace root\cimv2 on device <Localhost>...OK.
Registry Connect: Trying to connect to HKEY_LOCAL_MACHINE on device <Localhost>...OK.
IpHlpAPI GetNetworkAdapters...
IpHlpAPI GetNetworkAdapters: Calling GetIfTable to determine network adapter properties...OK
IpHlpAPI GetNetworkAdapters: Calling GetAdapterInfo to determine IP Infos...OK
IpHlpAPI GetNetworkAdapters: OK (1 objects).
DID_CHECK: Mac changed new:<00:1E:8C:C3:AA:17> old:<>, hname changed new:<АН_ШУБИН> old:<>
Generating Unique ID for device <АН_ШУБИН>...OK (АН_ШУБИН-2011-02-08-17-11-03)
CHECKINGS: write <АН_ШУБИН-2011-02-08-17-11-03> and <00:1E:8C:C3:AA:17> in ocsinventory.dat
HTTP SERVER: Creating CInternetSession to get inventory parameters...OK.
HTTP SERVER: Getting HTTP Connection to server 192.168.0.183 port 80 using no authentication...OK.
HTTP SERVER: Sending prolog query...ERROR: HTTP status code 500
HTTP SERVER: Closing HTTP connection
WMI Disconnect: Disconnected from WMI namespace.
Writing last inventory state not required.
Execution duration: 00:00:00.

Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "OCS Inventory + GLPI"  +/
Сообщение от SlaDER (ok) on 08-Фев-11, 14:56 
Загружено в http.conf?

LoadModule perl_module libexec/apache22/mod_perl.so

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "OCS Inventory + GLPI"  +/
Сообщение от pk.user (ok) on 08-Фев-11, 16:44 
> Загружено в http.conf?
> LoadModule perl_module libexec/apache22/mod_perl.so

httpd.conf
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/foo_log"
# with ServerRoot set to "/usr/local" will be interpreted by the
# server as "/usr/local//var/log/foo_log".

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/usr/local"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule dumpio_module libexec/apache22/mod_dumpio.so
LoadModule reqtimeout_module libexec/apache22/mod_reqtimeout.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
# LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module        libexec/apache22/libphp5.so
LoadModule perl_module libexec/apache22/mod_perl.so
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User www
Group www

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin you@example.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/www/apache22/data"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.  
#
<Directory />
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/usr/local/www/apache22/data">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "/var/log/httpd-error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "/var/log/httpd-access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "/var/log/httpd-access.log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock /var/run/cgisock
</IfModule>

#
# "/usr/local/www/apache22/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/www/apache22/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig etc/apache22/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile etc/apache22/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the etc/apache22/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include etc/apache22/extra/httpd-mpm.conf

# Multi-language error messages
#Include etc/apache22/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include etc/apache22/extra/httpd-autoindex.conf

# Language settings
#Include etc/apache22/extra/httpd-languages.conf

# User home directories
#Include etc/apache22/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include etc/apache22/extra/httpd-info.conf

# Virtual hosts
#Include etc/apache22/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include etc/apache22/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include etc/apache22/extra/httpd-dav.conf

# Various default settings
#Include etc/apache22/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include etc/apache22/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include etc/apache22/Includes/*.conf

Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору

3. "OCS Inventory + GLPI"  +/
Сообщение от SlaDER email(ok) on 08-Фев-11, 17:32 
Я настраивал по этой статье, там нормально описано.
Как вариант проверить в apache22\Includes наличие фалов:
ocsinventory-reports.conf
z-ocsinventory-server.conf

Если они существуют то, в z-ocsinventory-server.conf:
PerlSetEnv OCS_OPT_LOGLEVEL ЦИФРА_С_УРОВНЕМ_ЛОГОВ

Запустить агента и попробовать синхронизироватся с сервером. Потом смотреть в логи.


Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

4. "OCS Inventory + GLPI"  +/
Сообщение от pk.user (ok) on 08-Фев-11, 18:07 
> Я настраивал по этой статье, там нормально описано.
> Как вариант проверить в apache22\Includes наличие фалов:
>  ocsinventory-reports.conf
>  z-ocsinventory-server.conf
> Если они существуют то, в z-ocsinventory-server.conf:
> PerlSetEnv OCS_OPT_LOGLEVEL ЦИФРА_С_УРОВНЕМ_ЛОГОВ
> Запустить агента и попробовать синхронизироватся с сервером. Потом смотреть в логи.

Есть только z-ocsinventory-server.conf
ocsinventory-reports.conf - нет
Хотя тут написано
Removing old communication server configuration to file /usr/local/etc/apache22/Includes/ocsinventory.conf
Writing communication server configuration to file /usr/local/etc/apache22/Includes/z-ocsinventory-server.conf

По поводу агента, не могу нигде найти инструкцию настройки. Он запускается и создает файл, содержимое писал выше (WinVista). Как его синхронизировать?

Ответить | Правка | ^ к родителю #3 | Наверх | Cообщить модератору

5. "OCS Inventory + GLPI"  +/
Сообщение от SlaDER (ok) on 09-Фев-11, 06:35 
>[оверквотинг удален]
>> PerlSetEnv OCS_OPT_LOGLEVEL ЦИФРА_С_УРОВНЕМ_ЛОГОВ
>> Запустить агента и попробовать синхронизироватся с сервером. Потом смотреть в логи.
> Есть только z-ocsinventory-server.conf
> ocsinventory-reports.conf - нет
> Хотя тут написано
> Removing old communication server configuration to file /usr/local/etc/apache22/Includes/ocsinventory.conf
> Writing communication server configuration to file /usr/local/etc/apache22/Includes/z-ocsinventory-server.conf
> По поводу агента, не могу нигде найти инструкцию настройки. Он запускается и
> создает файл, содержимое писал выше (WinVista). Как его синхронизировать?

"C:\Program Files\OCS Inventory Agent\OCSInventory.exe" /SERVER:ocsng_server /PNUM:80 /NOW

http://www.tux.in.ua/articles/1500

Ответить | Правка | ^ к родителю #4 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру