Giter Club home page Giter Club logo

ocsinventory-ocsreports's Introduction

Banner

Build Status

OCS Inventory

Some Links:
Ask question | Installation | Website | OCS Professional

OCS (Open Computers and Software Inventory Next Generation) is an assets management and deployment solution. Since 2001, OCS Inventory NG has been looking for making software and hardware more powerful. OCS Inventory NG asks its agents to know the software and hardware composition of every computer or server.

Assets management

Since 2001, OCS Inventory NG has been looking for making software and hardware more powerful. OCS Inventory NG asks its agents to know the software and hardware composition of every computer or server. OCS Inventory also ask to discover network’s elements which can’t receive an agent. Since the version 2.0, OCS Inventory NG take in charge the SNMP scans functionality. This functionality’s main goal is to complete the data retrieved from the IP Discover scan. These SNMP scans will allow you to add a lot more informations from your network devices : printers, scanner, routers, computer without agents, …

Deployment

OCS Inventory NG includes the packet deployment functionality to be sure that all of the softwares environments which are on the network are the same. From the central management server, you can send the packets which will be downloaded with HTTP/HTTPS and launched by the agent on client’s computer. The OCS deployment is configured to make the packets less impactable on the network. OCS is used as a deployment tool on IT stock of more 100 000 devices.


Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add folder/file1.php
  4. Commit your changes: git commit -m 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request !

License

OCS Inventory is GPLv2 licensed

Libraries

ocsinventory-ocsreports's People

Contributors

adadov avatar airoine avatar alacn1 avatar allandanton avatar anaelmobilia avatar atineon avatar charleneauger avatar chrismucer avatar damienbelliard avatar djily90 avatar dliroulet avatar dragonzx avatar gillesdubois avatar goneri avatar kheimon avatar lea9250 avatar lms235 avatar lukbarros avatar mant1kor avatar matsuoki avatar mikel-in avatar nirgal avatar oozevsoo avatar p-bo avatar ppasserini avatar remicollet avatar rudylaurent avatar sborion avatar stweil avatar vdeville avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ocsinventory-ocsreports's Issues

Web interface Bug (function=admin_ipdiscover, tab types)

There is a bug when creating a type :

  • When creating and submit, the list becomes empty.
  • When click on reset table columns, it returns to creation of this type with on error "This type already exists"

Tested on version 2.2 beta 1, I think this bug has not been fixed

PHP7 - ocsreports compatibility issue

Hello,
Server : centos 7 / php-fpm 7
ocsinventory 2.1.2

On the main page :

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 10

Problème de sélection dans la table "search from various criteria"

Bonjour,

lorsqu'on sélectionne plusieurs ordinateurs dans la table "search from various criteria", dans plusieurs onglets de la table, la selection ne garde que les ordinateurs sélectionnés dans l'onglet en cours.

Exemple: si vous avez 20 ordinateurs et que vous affichez la table 10 entrées à la fois. Si vous sélectionnez l'ordinateur 1 et 3, puis passez à l'onglet suivant (pour voir les ordinateurs de 11 à 20), et sélectionnez l'ordinateur 15, seul l'ordinateur 15 sera sélectionné pour les options de déployement dans le dessous de la page.

Cyrille

ocsinventory over https

Hi All,

Is it possible to block port 80 in apcahe/ports.conf and still use package deployment over https? If port 80 is NOT blocked, any agent can communicate with the server over 80 and push an inventory otherwise.

Thats a big issue if any agent can push inventory over http.

Cheers

Useless warning when assigning a package from group distribution

Having 2 or more network cards on a computer, for example wired and wireless card, with one of them disabled raised a warning when we assign a package from group distribution with a matching rule on subnet.

As the package is assign thanks to the nework card whose match the subnet, the warning is not relevant and should not be raised.

Thanks

Report / Columns

It seems that it is not possible to select the same columns in every reports.
In multi criteria search, it is possible to display hard disk space information, which it is not possible to do in the main report "All computers"

Other example in all computers, it is possible to show the serial number, which is not possible to do that in multi criteria search.

To say it simple: it should be possible to show each field present in a computer information.

Number of devices that haven't had contact to the server for X days bug in german language

I also have found a Bug in 2.1.2 on the 'Activity' page.
If i click on the number of devices that haven't had contact to the server for 45 days, i end up on the 'Search' page and some variables filled into the search field. If i try to use the Calendar to input a date, it just fills in 'undefined'. This only happens if the language is switched to german. In english it works fine.

I have attached some screenshots.

english
german
search1
search2

Issues with SSO using Kerberos in OCS 2.2

I‘ve recently upgraded from OCS 2.1 to 2.2 and very much appreciate the new bootstrag UI.
The OCS 2.2 was installed on a RHEL7 system with a properly working Kerberos implementation in Apache/php. This was proved by adding error_log($_SERVER['REMOTE_USER']); to the .. /ocsreports/index.php which shows something like: [email protected] (samaccountname@AD-domain).
After implementing the changes to ../backend/AUTH/auth.php suggested by a HowTo in the OCS Wiki the error log showed the following: PHP Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 54
This was easily fixed by changing $value to $value[0]. Hoping to be near to get SSO working, I ended up in install.php which was invoked by the header.php’s condition:if (GUI_VER != $_SESSION['OCS']['SQL_BASE_VERS']){ ...
Any idea what went wrong?

With best regards,

Juergen

Warning when exporting csv from function=tele_activate

Hello,

When using the (download) links from the "Package activation" list, I get several dozen warnings like this:

Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_export/ms_csv.php on line 156

It does still generate the CSV file, but with a bunch of html-formatted warnings at the beginning. I haven't modified this ms_csv.php, but just for completeness, here is line 156 of that file:

                            foreach ($data_fixe[$cont['ID']] as $key => $val) {

I am on version 2.2_rc1, please let me know if any more information about my local setup is needed.

Thanks!

[PLUGIN] Ms_Office

Une mise à jour du plugin permettant de remonter les 5 derniers caractères de la clé Office 2013 serait la bienvenue :) merci

cscript.exe "%ProgramFiles%\Microsoft Office\Office15\OSPP.VBS" /dstatus

Mac Address blacklist using wildcard character

Hi! I would like to suggest a simple feature that could help a lot of users. When we need to create a blacklist, using Config -> Blacklist -> Add -> Mac Address, we should enter the complete mac address. But, if we can insert just a prefix (just part of mac address), this would facilitate management.

Two uses in which we would be benefited would be: (1) virtualbox hosts and (2) CARP (or VRRP) IPs. Both cases use the same mac address prefix and we could exclude these hosts from inventory. Another possibility with this feature would be exclude a vendor from inventory, just inserting the three first blocks of mac address.

Thanks!
:)

orphans found in accountinfo_config table (Inconsistency)

we have migrate OCS Server + Reports to 2.2, all work fine but when we try to update old account infos from config menu, ocs reports show this error :
orphans found in accountinfo_config table (Inconsistency)
ocs

Here is accountinfo_config table :
ocs_2

OCS Inventory NG 2.2 : Profil utilisateur

Bonjour,

Depuis la mise à niveau en version 2.2 du serveur OCS Inventory NG, il m'est impossible de créer un profil utilisateur. Aucune erreur n'apparaît lors de la validation du formulaire.

Le profil personnalisé créé auparavant, n'est pas répertorié dans la liste des profils disponibles.

Cordialement.

Plugins Office

Améliorer le plugin Office afin :

  1. D'avoir le nombre de poste par "office key"
  2. D'avoir la liste des postes par "office key"
  3. D'avoir le nom de licences par "office key"

Call to undefined function pagesplugin()

hi,
when run plugin manager show error
Fatal error: Call to undefined function pagesplugin() in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_config/ms_config.php on line 119
find fuction not found

Accents

Nous avons aussi un problème lié aux accents qui ne s'affichent pas.

Exemple: Microsoft Windows 7 Entreprise

Some scripts couldn't be load : Error 404

OCS 2.2 : Number of displayed results and sorters not memorized

Since OCS 2.2 the number of displayed results aren't memorized anymore (work good in OCS 2.1)
For example If I choose 50, it's always set to 10 when refreshing the page.

The same problem with sorter, I always want to sort my computer by "last inventory date" but since OCS 2.2 when refreshing the page, the order is lost.

Thoses bugs appear anywhere in OCS (computer list, deployment list, etc)

not possible to asing computer groups (TAG) to user profiles

I wanted to configure a given group for a given users profile, having a look in internet i found this url:
http://forums.ocsinventory-ng.org/viewtopic.php?id=10436

I am working with ocs-inventory 2.2.rc and I can't find any way in the user profiles section where i can configure the desired computer TAGs.

After to request support in the IRC channel GillesDubois request me to open a issue.

Any help will be appreciated because this property is very important for us.

Regards!

Problem creating administrative data items

I've recently installed OCS Inventory NG 2.2 Release and after invest some time, I have verified that there is a bug in this release.

The error is located in this file:
ocsreports\plugins\computer_detail\cd_admininfo\cd_admininfo.php Line:144

( "onclick=window.open()" is missing)

In order to solve the error we have to replace the line by:

array_push($config['COMMENT_AFTER'],$up_png . "<a href=# onclick=window.open(\"index.php?".PAG_INDEX."=".$pages_refs['ms_adminvalues']."&head=1&tag=ACCOUNT_VALUE_" . $val_admin_info['NAME'] . "\")><img src=image/plus.png></a>");

2.2RC1 la requête visu_computers ne retourne pas le nombre correct d'agents

En partant de la fonction "visu_repart_tag", je clique sur le nombre en regard d'un tag. Dans l'exemple ci-dessous, je clique sur le 24 en regard du tag "ADMIN-LAPTOP":

untitled

J'arrive alors sur le lien function=visu_computers&filtre=a.TAG&value=ADMIN-LAPTOP, et, là, la liste d'agent ne semble plus rien filtrer, il m'affiche les 200 agents de mon inventaire:

untitled

Bàv,

Cyr

bogue d'affichage dans function=computer cat=config

Lorsqu'on affiche la liste des paquets déployés sur une machine, si des paquets de cette liste ont été supprimés sur le serveur entretemps, le serveur affiche "Unknown (deleted package)" au lieu de rendre proprement l'HTML

untitled

Dynamic group bug: search with a static group is incorrect when the group is empty

Hello,

we are using OCSInventoryNG reports 2.0.5 (but also tested on 2.1.2) and we found a very weird bug on dynamic groups.

We created a static group (named StaticGroup) with 5 machines.
We then created a dynamic group (DynamicGroup) with the following search:

  • Group:Name BELONG TO StaticGroup
  • Software: Name DIFFERENT SoftwareX

When the static group has at least one machine, the dynamic group works well.

The problem appears when there is no machine in the static group. Then the dynamic group fills in with ALL the machines which corresponds to the second request (Software: name DIFFERENT).

We activated MySQL logs and saw that:

  • in the first case the request looks like

    SELECT .... AND ID IN ('1', '2', ...)

-> ('1', '2'...) being the list of machines ID in the StaticGroup

  • but in the second case (empty static group) the request looks like

    SELECT ....

-> no filtering is done with the StaticGroup content.

It seems that the first request returns no value so it's removed from the second one. Which causes this bug.

I have not tested it but it this bug may also exists with another condition than a static group.

I can give more details if needed.

Thanks.

InnoDB Cluster: Problems changing from MyISAM to InnoDB

hi,
for high availability I use a Percona InnoDB MySQL Cluster. Percona supports only InnoDB as replication storage engine, but ocsbase.sql has a lot of MyISAM tables. Usually the most applications works without any problem, if I change all entries to "engine=InnoDB", but not ocs-reports:

If I try to push the SQL after the changes into the cluster, I get:

ERROR 1061 (42000) at line 530: Duplicate key name 'IVALUE'

That is the line:
ALTER TABLE devices ADD INDEX IVALUE (IVALUE);
[...]

If I use the ocsbase_new.sql,:

ERROR 1071 (42000) at line 485: Specified key was too long; max key length is 1000 bytes

CREATE TABLE engine_mutex (
NAME varchar(255) NOT NULL DEFAULT '',
PID int(11) DEFAULT NULL,
TAG varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (NAME,TAG)
) ENGINE=MEMORY DEFAULT CHARSET=UTF8;

Maybe, I have the same problem with other tables too.

It would be very nice, If ocs-inventory uses InnoDB only, to get it on a MySQL InnoDB cluster working. :-)

Update: I used now ocsreports/files/ocsbase_new.sql, changed all MyISAM to InnoDB and the table "engine_mutex" to something lower than 255 (trying now 160).

Archive::Zip est obligatoire pour le webservice mais setup.sh ne le dit pas

La directive dans setup.sh est "run "setup.sh" and follow the instructions. If you get a error / warning because of a missing module, install it and retry."

Si on fait confiance a cette directive, on a un système qui ne fonctionne pas pour le webservice (et donc les plugins).

il faudrait que setup.sh teste la présence de Archive::Zip

Agent 2.1.1.3 isn't compatible with XP

Agent with Version 2.1.1.2 and 2.1.1.3 and 2.1.1.4 (2.2 alpha) arent compatible with Windows XP

Service can't be installed -

if i start
ocsinventory.exe /SAVE_CONF

i will get immediatly a graphical windows with the following errorcode

C:\Program Files\Ocsinventory Agent\OCSInventory.exe is not a valid win32 application

A Bug Report... 2.2 RC1

I Installed Release 2.2 RC1 Looks nice, but SNMP does not work because the little plus '+' is missing in:

Network(s)
->Administer
--->Add
------>ID

Without the little plus, it is not possible to add a new ID to a clean database, and therefore not able to save a new entry.

Migrate Front-end UI to bootstrap

Migrate Front-end UI to bootstrap, aggregates features:

  • Modern UI
  • Responsive for mobile devices
  • Compatibility across-browsers: ie, ff, chrome and outhers
  • User Experience
  • Jquery legacy
  • Amazing beautiful components: Panels, Buttons, Icons, Tabs, Msg Alerts...

switch back to old GUI design

Sorry for that; but after 2 weeks of test we downgrade to 2.1 because of bugs, and we were not comfortable with the new look !!
We prefer to switch back to the old style (with icons, popups, ...).

[2.2RC1] Enlarge Number Show Entries

Hello

In 2.2RC1 release we are now limited to a maximum of 100 entries visualization.
Is it possible to enlarge the number or even to the ALL function to allow me to see all PCs.

Add a functionnality : "ARCHIVE" computer

Add a functionnality to archive computers.

For example a checkbox on the computer details.

If this checkbow is checked, the computer shouldn't be reported on "Computer unavailable for more than 30 days", nor in software searchs.
It add the ability to get the trace of olds computers no more longer on activity (but have informations on the computer).

Use case can be to get historic, get asset accounting, ability to manage computers put on stock and which are no longer up to date, ...

Regards,
Anael

PHP7 - installer warning

Hello,

During the installation on a centos 7 server / php-fpm 7 : for ocsinventory 2.1.2
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; language has a deprecated constructor in /usr/share/ocsinventory-reports/ocsreports/require/fichierConf.class.php on line 14

Update to XAMPP 7

Hi;
XAMPP 7 is out with PHP 7 and MariaDB 10, please update the next release to be compatible.
Thanks.

confusion between NAME and name (software name, computer name) in ms_multi_search.php

Commit 05a1420 changed line ~795 as follows, to attempt to fix the confusion between "Software Name" and "Computer Name":

  •                   'NAME'=>'h.NAME',
    
    •                  //'NAME'=>'h.NAME',
      
    •                  $l->g(23)=>'h.name',
      

The change from h.NAME to h.name fixed the confusion, but after this fix the "Computer" column entries do not have a hyperlink to the specific machine entry.

Then commit be601e9 changed the line as follows, to fix the hyperlinking:

  •                  $l->g(23)=>'h.name',
    
  •                  'NAME'=>'h.NAME',
    

..but this undid the NAME/name change from earlier. I believe what this line needs to be, is:

'NAME'=>'h.name',

which is something of a combination of the previous 2 fixes. I have tested this locally and it seems to give the desired result.

2.2RC1: Liens manquants dans visu_search

Bonjour,

Il me semble avoir trouvé une régression dans la version 2.2RC1.

Quand on fait une recherche d'agents en utilisant la fonction visu_search, les listes d'agents affichées ne permettent pas de cliquer sur une entrée pour voir le détail de l'agent correspondant.

Ci-dessous un exemple d'une telle liste. Vous pouvez y voir que l'entrée "LAPTOP-YVES" que j'ai laissé visible n'est pas affichée en gras contrairement à ce qui se fait dans les autres listes:

untitled

Ci-dessous un exemple d'une liste obtenue avec function=visu_computers&filtre=a.TAG&value=ADMIN_LAPTOP, on voit que la même entrée est en gras (et, je peux cliquer dessus):

untitled

Bien à vous,

Cyrille

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.