You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-08-03 17:54:16

bwm367
Member
From: Maine, United States
Registered: 2009-01-06
Posts: 217
Website

Reports Plugin

I posted a while ago about the reports plugin, and was just wondering if progress was being made on users being able to create custom reports?
I'm looking for something to generate a detailed list of all Computers, Monitors, etc at a particular Location. Any idea on how to do this with or without the reporting plugin?
Any third party SQL reporting tools that users here know of?


My Configuration: GLPI .72.3 running on XAMPP from a VMware Virtual Machine (Windows XP). PHP 5.2, Apache 2.2.3...

Offline

#2 2009-08-03 17:56:45

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Reports Plugin

Try with search in computer list and can export in CSV or PDF

Offline

#3 2009-08-03 18:00:13

bwm367
Member
From: Maine, United States
Registered: 2009-01-06
Posts: 217
Website

Re: Reports Plugin

That's exactly what I've been doing, it seems to be the best way to generate reports. I was just wondering if anyone has alternatives? What do other people use?


My Configuration: GLPI .72.3 running on XAMPP from a VMware Virtual Machine (Windows XP). PHP 5.2, Apache 2.2.3...

Offline

#4 2009-08-03 20:19:21

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Reports Plugin

I use the reports plugin.  Creating new reports isn't too bad if you know how to write SQL and understand the schema, since you need to write the SQL statements yourself and place them into files.  I used the reports that came with the plugin to figure out how to write custom reports.  It took some time, but I got through it.  This forum is a great resource also if you need help writing the query.

I don't know of any plugins that have a graphic interface at this time, like the search function embedded in GLPI.  I usually write reports when I want a query to span multiple or all device types.

You can also put GLPI in debug mode to see SQL statements that get executed for different screens to get you started.


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#5 2009-08-04 16:41:07

bwm367
Member
From: Maine, United States
Registered: 2009-01-06
Posts: 217
Website

Re: Reports Plugin

Thanks for the advice.


My Configuration: GLPI .72.3 running on XAMPP from a VMware Virtual Machine (Windows XP). PHP 5.2, Apache 2.2.3...

Offline

#6 2009-08-07 18:50:52

jasafpro
Member
Registered: 2009-07-20
Posts: 17

Re: Reports Plugin

I created a new report that I think would be helpful to others.  Would I just use the code tags and post it here or is there a specific place to submit some code.  Its 200+ lines.

The report itself creates a Time per ticket per User's Followup.  Also it uses Activity for tracking time that isn't a ticket such as meetings and creates totals for each entity.

Offline

#7 2009-08-07 21:03:52

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Reports Plugin

You can send it to the devel ML

http://www.glpi-project.org/spip.php?article57

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#8 2009-08-13 19:25:02

jasafpro
Member
Registered: 2009-07-20
Posts: 17

Re: Reports Plugin

Remi

I tried to send it to the dev list, but I get a rejected message.  Do I have to be a subscriber to post?  I am not a developer, I would just like to get what I have into more capable hands big_smile

Offline

#9 2009-08-13 19:31:34

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Reports Plugin

Yes you need to subscribe to be able to post.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#10 2010-01-29 15:07:25

z_haseeb
Member
Registered: 2010-01-29
Posts: 54

Re: Reports Plugin

i am new in linux.....i have got a report plugin for glpi . how can i install it

GLPI plugin
https://forge.indepnet.net/projects/list_files/reports

thanks

Offline

#11 2010-01-29 15:28:12

z_haseeb
Member
Registered: 2010-01-29
Posts: 54

Re: Reports Plugin

thanks i have done it

Offline

#12 2012-08-28 10:56:49

aabc2
Member
Registered: 2012-08-28
Posts: 13

Re: Reports Plugin

I wrote my report, but it's not working:
<?php

$USEDBREPLICATE= 1;
$DBCONNECION_REQUIRED= 0;

define('GLPI_ROOT', '../../../..');
include(GLPI_ROOT."/inc/includes.php");

$report = new PluginReportsAutoReport();

   $report->setColumns(array(new PluginReportsColumn('cname', $LANG['common'][1],
                 new PluginReportsColumn('dname', $LANG['common'][2],
                             new PluginReportsColumn('device', $LANG['common'][3],
                             new PluginReportsColumn('device', $LANG['common'][4],                            
                             new PluginReportsColumn('name', $LANG['common'][5],
                             new PluginReportsColumn('totalsize', $LANG['common'][6],
                             new PluginReportsColumn('freesize', $LANG['common'][7])));
   $query = "SELECT
   `glpi_computers`.`name` AS  "Komputer",
   `glpi_computerdisks`.`name` AS "Nazwa",
   `glpi_computerdisks`.`device` AS "Partycja",
   `glpi_computerdisks`.`mountpoint` AS "Punkt montowania",
   `glpi_filesystems`.`name` AS "Plik systemowy",
   `glpi_computerdisks`.`totalsize` AS "Rozmiar",
   `glpi_computerdisks`.`freesize` AS "Wolne miejsce"
    FROM  `glpi_computerdisks`
    LEFT JOIN  `glpi_filesystems` ON (  `glpi_filesystems`.`id` =  `glpi_computerdisks`.`filesystems_id` )
    LEFT JOIN  `glpi_computers` ON (  `glpi_computers`.`id` =  `glpi_computerdisks`.`computers_id` )".
    getEntitiesRestrictRequest(" WHERE ", "glpi_computerdisks") ."
    ORDER BY `glpi_computers`.`name`, `glpi_computerdisks`.`freesize`";

    $report->setGroupBy(array(`glpi_computers`.`name`));
$report->setSqlRequest($query);
$report->execute();
?>

do you know why?

Offline

Board footer

Powered by FluxBB