Hi!

I wrote a module some time ago that pulled MongoDB-stats via the mongostat-command and collected this to Observium. I attached my patch for the mongodb-agent here, it should help you do a similar thing for your application.

A short explanation of the files:
scripts/agent-local/mongodb - this is the script that runs on the host with mongodb that you want to monitor, Observiums unix-agent will execute this script and the output will be put in the Observium-database

includes/definitions/rrdtypes.inc.php - here you put the definition of the RRD-file for your new application data

includes/polling/applications/mongodb.inc.php - This code takes the data from the Observium-database and sort it the way you want and then creates RRD-files with all your values

html/pages/device/apps/mongodb.inc.php - this files defines how your different graphs should be sorted in the webpage

the rest of the files named like this:
html/includes/graphs/application/<app>_<category>.inc.php 
are just definitions of what data should be pulled from the RRD-file for this category/graph and how to color the different values.

The page will then be displayed as the image attached.




Other than that you only need to apply some small png-images for icons and then you are done.
Hopefully this help and the page http://docs.observium.org/developing/add_app/ should give you enough information to add your application to Observium :)

/Markus

Den tors 11 okt. 2018 kl 08:16 skrev Jonas Karlsson via observium <observium@observium.org>:
Hi Adam,

I work for the Mathematcis and Computer Science departement at Karlstad University and we are currently evaluating observium for monitoring some specific servers/network infrastructure.

We are a governmentally funded University so we are not commerical in that sense but we are around 90 employees in the department and the application I am about test is for a European wide project (https://www.monroe-project.eu/) so I would hardly consider it a basement installation either __.

However, if I would llike to add an application to observium how is the procedure to do this since I do not have access to the files necesssary (or know the method for compiling the final definistions.dat file even if I had the files)?


--
Jonas Karlsson
Senior Research Engineer
Karlstad University
SE-651 88 Karlstad, Sweden
📞 +46 54 700 15 64
📞 +46 70 672 06 20
💬 karlsson.karl.jonas
🗝 0x88765911B284F3A6


-----Ursprungligt meddelande-----
Från: observium <observium-bounces@observium.org> på uppdrag av Adam Armstrong via observium <observium@observium.org>
Svara till: Observium <observium@observium.org>
Datum: onsdag 10 oktober 2018 13:11
Till: 'Observium' <observium@observium.org>
Kopia: Adam Armstrong <adama@memetic.org>
Ämne: Re: [Observium] n00b question: Implementing a new application but I get no graphs (rrd files)

    Hi Jonas,

    The .dat is a compiled version of the files you're looking for. We don't ship these files in CE for complex historical reasons it's not worth explaining. 😊

    What context is Observium being used in here? Is it commercial use or in your basement? 😊

    Adam.

    -----Original Message-----
    From: observium <observium-bounces@observium.org> On Behalf Of Jonas Karlsson via observium
    Sent: 10 October 2018 09:50
    To: observium@observium.org
    Cc: Jonas Karlsson <jonas.karlsson@kau.se>
    Subject: [Observium] n00b question: Implementing a new application but I get no graphs (rrd files)

    Hi,

    I am trying to develop a new application (monroe) by following the instructions here:  https://docs.observium.org/developing/add_app/ and are probably doing something stupid but I cannot see where the problem is.

    In my, updated and working, installation of observium I cannot find the file "includes/definitions/rrdtypes.inc.php" referenced above (I have searched the entire folder tree but with no luck).
    All the default applications work (ie vmwaretools) so as a "alternative approach" I tried to copy the code of the vmwaretools  application and also search for where the vmwaretools have its definition but no luck. My application show up in the WEB UI and the agent works but I get no graphs.

    When I run ./poller.php manually I get  :
    <snip>
    #####  Module Start: applications  #####

     o Applications         ioping ...monroe .Cannot create RRD for type monroe - not found in definitions!
    nginx . nginx statistics
    vmwaretools .
     o Module time          0.0247s
    <snip>

    So it is missing the definitions but where do I add those ???
    I have found a reference for rrdtypes.inc.php in includes/definitions.inc.php but in /includes/definitions/ I only have three files:

    $ls includes/definitions/
    definitions.dat     version.inc.php wui.inc.php

    --
    Jonas Karlsson
    Senior Research Engineer
    Karlstad University
    SE-651 88 Karlstad, Sweden
    📞 +46 54 700 15 64
    📞 +46 70 672 06 20
    💬 karlsson.karl.jonas
    🗝 0x88765911B284F3A6


    _______________________________________________
    observium mailing list
    observium@observium.org
    http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

    _______________________________________________
    observium mailing list
    observium@observium.org
    http://postman.memetic.org/cgi-bin/mailman/listinfo/observium


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium