n00b question: Implementing a new application but I get no graphs (rrd files)
![](https://secure.gravatar.com/avatar/16c6316d0316beada4c43d83343c17af.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/16c6316d0316beada4c43d83343c17af.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/9113800bbd271c46f4585a9549d85c15.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Hi Jonas,
If you send me a htpasswd entry (htpasswd -nBb kau <password>), I'll give you access to the current svn and the correct files for a while.
Thanks, Adam.
-----Original Message----- From: observium observium-bounces@observium.org On Behalf Of Jonas Karlsson via observium Sent: 11 October 2018 07:17 To: Observium observium@observium.org Cc: Jonas Karlsson jonas.karlsson@kau.se Subject: Re: [Observium] n00b question: Implementing a new application but I get no graphs (rrd files)
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
participants (3)
-
Adam Armstrong
-
Jonas Karlsson
-
Markus Klock