Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Export data in openoffice or excel

  • Export data in openoffice or excel

    Posted by yduma on June 17, 2008 at 19:45

    I try to export some needed information ( for example: memory usage ) to excel or openoffice, but I don’t find how to do that.
    So I think I can do it using database in mysql – but I can’t find needed information.

    Can you tell me what is the best way to export some information into excel or openoffice? ( I need to make some report to my chief twice a day – so I need automatize this work).

    thanks!
    Pandora is very great!
    Thank you for you job!

    manu replied 16 years, 6 months ago 3 Members · 6 Replies
  • 6 Replies
  • manu

    Member
    June 18, 2008 at 10:14
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You might want to take a look at “Export data” menu in the webconsole, maybe it’ll do the trick

    Cheers!

  • yduma

    Member
    June 18, 2008 at 10:55
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think I can copy/paste data that I need… or eport some data and after that change it to needed view.

    Can you describe how you organize data in mysql? – I think it will be usefull thing for all.( where I can find data from some agent in mysql for example).

    thank’s

  • manu

    Member
    July 17, 2008 at 09:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The database schema is in the pandora_console directory you can take a look at it if needed.

  • Sancho

    Administrator
    July 22, 2008 at 17:56
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    [cite]Posted By: yduma[/cite]
    I think I can copy/paste data that I need… or eport some data and after that change it to needed view.

    Can you describe how you organize data in mysql? – I think it will be usefull thing for all.( where I can find data from some agent in mysql for example).

    thank’s

    In version 2.0 you can export to a downloable standalone .CSV file. But it’s easy to get data from database using tagente_datos table. Just read pandora_db*.sql files and you’ll see that is a very simple database model.

    If you make cool stuff , and want to share with us, you’re always welcome ! 🙂

  • yduma

    Member
    August 6, 2008 at 06:02
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    SELECT AgenteId AS ‘Agente Id’, Nombre AS ‘Agente Name’, b AS ‘Alert fired’, c AS ‘Alert ceased ‘
    FROM (

    SELECT a AS AgenteId, b, min( c ) AS ‘c’
    FROM (

    SELECT a, if( c = ‘A’, b, NULL ) b, if( c = ‘B’, b, NULL ) c, @counter := if( c = ‘A’, @counter +1, @counter ) cnt
    FROM (

    SELECT id_agente ‘A’, timestamp AS ‘B’,
    CASE WHEN evento LIKE ‘Alert fired%’
    THEN ‘A’
    ELSE ‘B’
    END AS ‘C’
    FROM tevento
    WHERE evento LIKE ‘Alert%’
    )t, (

    SELECT @counter :=0
    )t1
    )t
    GROUP BY cnt
    )k
    INNER JOIN tagente k2 ON k.AgenteId = k2.Id_agente
    WHERE c IS NOT NULL
    ORDER BY b DESC

  • manu

    Member
    August 6, 2008 at 07:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi yduma!

    What’s that for?