Giter VIP home page Giter VIP logo

runningprocess's People

Contributors

charleneauger avatar damienbelliard avatar fbomj avatar gillesdubois avatar rudylaurent avatar vdeville avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

runningprocess's Issues

ERROR: check if Map.pm and runningProcess.conf exist

Same problem as unixusers plugin issue #4, a pull request will be created later.

[root@108b19b31242 plugins]# python3 /usr/share/ocsinventory-reports/ocsreports/tools/install_plugin.py
Where is the plugins location [/usr/share/ocsinventory-reports/ocsreports/extensions/]

[0] => uptime
[1] => runningdatabaseinstances
[2] => winusers
[3] => security
[4] => services
[5] => osinstall
[6] => winupdate
[7] => unixusers
[8] => runningProcess
8
The server is installed on the same server ? [y]/n

Where is the server location [/etc/ocsinventory-server]

ERROR: check if Map.pm and runningProcess.conf exist

[root@108b19b31242 plugins]# ll /usr/share/ocsinventory-reports/ocsreports/extensions/runningProcess/APACHE/
total 8
-rw-r--r-- 1 apache apache 646 Apr  9 02:25 Map.pm
-rw-r--r-- 1 apache apache  62 Apr  9 02:25 runningprocess.conf
[root@108b19b31242 plugins]# cd /usr/share/ocsinventory-reports/ocsreports/extensions/runningProcess/APACHE/
[root@108b19b31242 APACHE]# mv runningprocess.conf runningProcess.conf
[root@108b19b31242 APACHE]# python3 /usr/share/ocsinventory-reports/ocsreports/tools/install_plugin.py
Where is the plugins location [/usr/share/ocsinventory-reports/ocsreports/extensions/]

[0] => uptime
[1] => runningdatabaseinstances
[2] => winusers
[3] => security
[4] => services
[5] => osinstall
[6] => winupdate
[7] => unixusers
[8] => runningProcess
8
The server is installed on the same server ? [y]/n

Where is the server location [/etc/ocsinventory-server]

runningProcesshas been successfully installed ! Don't forget to restart your Apache server

Mauvais nom de dossier (Wrong directory name)

En installant le plugin, le nom du dossier "/etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/RunningProcess" était incorrect.
RunningProcess à la place de Runningprocess

Apache a refusé de redémarrer aujourd'hui à cause de ce module.

En changeant simplement le P majuscule en p minuscule dans le nom du dossier, le serveur apache a redémarré normalement.

Je crois qu'il y a une erreur dans le script d'installation concernant la création de ce dossier.

When the plugin is installed, the directory "/etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/RunningProcess" was not good.
RunningProcess is the directory name, but Runningprocess must be.

Apache don't start today because of this module.

When the P is changed in p int the directory name, apache start well.

I think there is mistake in the installation script for the directory creation.
(sorry for this bad english)

Plugins problem runningprocess

General informations

Ubuntu VERSION 17.04 (Zesty Zapus) up to date.

Server informations

Perl : Summary of my perl5 (revision 5 version 24 subversion 1).
Mysql : mysql Ver 14.14 Distrib 5.7.19.
PHP : 7.0.22-0ubuntu0.17.04.1 (apache2handler).
Web Server : Apache/2.4.25 (Ubuntu).

OCS Inventory informations

Ocs server version : ocsinventory-server_2.2+dfsg-0.1_all.deb

Problem's description

Step for Reproduce the bug ?

I have setup a fresh Install of ocs server everything is working expected the plugin "runningprocess":

What did I do:

Install plugins server side with theses 2 steps:

Enable the plugins with the GUI.

Then I have installed the agent client side (ubuntu 17.04 too)

  • apt install ocsinventory-agent
  • locate Download.pm
    /usr/share/perl5/Ocsinventory/Agent/Modules/Download.pm
  • vi /usr/share/perl5/Ocsinventory/Agent/Modules/Processes.pm and copy/paste the content provide from Processes.pm from the zip archive previously downloaded.
  • Edit content from /etc/ocsinventory/modules.conf and add use Ocsinventory::Agent::Modules::Processes;
    -test with command perl module.conf

Finaly launch the ocs-agent:

ocsinventory-agent 
[info] No support detected. Registration key: N/A
[info] [download] Download is off.

comment OCS
startvm 4aff21d8-8237-4435-88cd-9c4069b70f48
no-startvm-errormsgbox

[info] [download] Beginning work. I am 26393.
[info] [download] Option turned off. Exiting.

Looks like Ok but I dont saw any information about process, is it normal ?

Now the problem:
When I try to show the process in the GUI this is the error message, with no error log on apache2

capture du 2017-08-29 17-28-24

Uncaught TypeError: Cannot read properties of null (reading 'error')

OCS version: 2.x (ocsinventory/ocsinventory-docker-image:master)
issue when loading running process plugin:
JQMIGRATE: Migrate is installed, version 1.4.1

jquery.dataTables.min.js:31 Uncaught TypeError: Cannot read properties of null (reading 'error')
    at Object.success (jquery.dataTables.min.js:31:488)
    at i (jquery.js:2:27151)
    at Object.fireWith [as resolveWith] (jquery.js:2:27914)
    at z (jquery.js:4:12059)
    at XMLHttpRequest.<anonymous> (jquery.js:4:15619)
success @ jquery.dataTables.min.js:31
i @ jquery.js:2
fireWith @ jquery.js:2
z @ jquery.js:4
(anonymous) @ jquery.js:4
load (async)
send @ jquery.js:4
ajax @ jquery.js:4
na @ jquery.dataTables.min.js:33
jb @ jquery.dataTables.min.js:33
K @ jquery.dataTables.min.js:25
L @ jquery.dataTables.min.js:27
ra @ jquery.dataTables.min.js:44
(anonymous) @ jquery.dataTables.min.js:91
each @ jquery.js:2
each @ jquery.js:2
p @ jquery.dataTables.min.js:80
(anonymous) @ index.php?function=computer&head=1&systemid=2&cat=other:1152
i @ jquery.js:2
fireWith @ jquery.js:2
ready @ jquery.js:2
J @ jquery.js:2

None data transmitted to OCS Inventory server

Hello,

I'm using OCS Inventory server 2.6 on an Ubuntu 19.04 and OCS Inventory agent UNIX, Linux & MacOs 2.4.2 on an Ubuntu 18.04. This is new fresh install to test the solution.

I have installed this extension successfully on both side. When I run the agent, I have the following logs:

[Thu Oct 31 16:47:15 2019][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.4.2
[Thu Oct 31 16:47:15 2019][debug] Log system initialised (File)
[Thu Oct 31 16:47:15 2019][debug] --scan-homedirs missing. Don't scan user directories
[Thu Oct 31 16:47:15 2019][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__ocs.local.com_ocsinventory/ocsinv.adm
[Thu Oct 31 16:47:15 2019][debug] OCS Agent initialised
[Thu Oct 31 16:47:15 2019][debug] Turns hooks on for /etc/ocsinventory/modules.conf
...
[Thu Oct 31 16:47:20 2019][debug] Calling handlers : `inventory_handler'
[Thu Oct 31 16:47:20 2019][debug] [download] Calling download_inventory_handler
[Thu Oct 31 16:47:20 2019][debug] [processes] Yeah you are in Processes_inventory_handler:)
[Thu Oct 31 16:47:20 2019][debug] [uptime] Yeah you are in uptime_inventory_handler :)
[Thu Oct 31 16:47:20 2019][debug] Section DRIVES has changed since last inventory
...
    <RUNNING_PROCESSES>
      <COMMANDLINE>/sbin/init splash</COMMANDLINE>
      <CPUUSAGE>0.0</CPUUSAGE>
      <PROCESSID>1</PROCESSID>
      <PROCESSMEMORY>0.0</PROCESSMEMORY>
      <STARTED>2019-10-30 1:41</STARTED>
      <TTY>?</TTY>
      <USERNAME>root</USERNAME>
      <VIRTUALMEMORY>167072</VIRTUALMEMORY>
    </RUNNING_PROCESSES>
    <RUNNING_PROCESSES>
      <COMMANDLINE>[kthreadd]</COMMANDLINE>
      <CPUUSAGE>0.0</CPUUSAGE>
      <PROCESSID>2</PROCESSID>
      <PROCESSMEMORY>0.0</PROCESSMEMORY>
      <STARTED>2019-10-30 0:00</STARTED>
      <TTY>?</TTY>
      <USERNAME>root</USERNAME>
      <VIRTUALMEMORY>0</VIRTUALMEMORY>
    </RUNNING_PROCESSES>
...
</REQUEST>
[Thu Oct 31 16:47:21 2019][debug] =BEGIN=SERVER RET======
[Thu Oct 31 16:47:21 2019][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
';
[Thu Oct 31 16:47:21 2019][debug] =END=SERVER RET======
[Thu Oct 31 16:47:21 2019][debug] Calling handlers : `end_handler'
[Thu Oct 31 16:47:21 2019][debug] [download] Calling download_end_handler
[Thu Oct 31 16:47:21 2019][debug] [snmp] Calling snmp_end_handler
[Thu Oct 31 16:47:21 2019][info] [download] Beginning work. I am 28251.
[Thu Oct 31 16:47:21 2019][info] [download] Option turned off. Exiting.
[Thu Oct 31 16:47:21 2019][debug] [download] End of work...

Regarding the logs, the plugin seems to work as there are the XML data. But on server side, there is nothing in database and logs shows:

Thu Oct 31 15:47:21 2019;18582;318;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;session;missing
Thu Oct 31 15:47:21 2019;18582;114;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;no_session
Thu Oct 31 15:47:21 2019;18582;104;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;incoming
Thu Oct 31 15:47:21 2019;18582;113;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:drives
Thu Oct 31 15:47:21 2019;18582;113;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:cpus
Thu Oct 31 15:47:21 2019;18582;113;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:uptime
Thu Oct 31 15:47:21 2019;18582;113;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;u:repository
Thu Oct 31 15:47:21 2019;18582;101;PC-Polak-2019-10-30-11-08-58;52.212.247.80;OCS-NG_unified_unix_agent_v2.4.2;inventory;transmitted

There is no trace of the plugin. What is going wrong?

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.