This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:reseaux:services:monitorix_custom [2020/04/21 16:38] procacci@tem-tsp.eu [collected values code] |
docpublic:reseaux:services:monitorix_custom [2020/04/23 10:35] (current) procacci@tem-tsp.eu |
||
---|---|---|---|
Line 10: | Line 10: | ||
you may have to monitor a special device or application that is not yet integrated . | you may have to monitor a special device or application that is not yet integrated . | ||
- | That's the purpose of this page to explain how I manage | + | That's the purpose of this page to explain how I managed |
+ | |||
+ | I want to get In and Out traffic like that : | ||
+ | |||
+ | {{: | ||
Line 21: | Line 26: | ||
====== Custom device ====== | ====== Custom device ====== | ||
- | In this page I will demonstrate how I manage to monitor In and Out bandwith | + | In this page I will demonstrate how I manage to monitor In and Out bandwidth |
The device does provide an http service to get the status of its services . | The device does provide an http service to get the status of its services . | ||
it replies on the Lan interface at the address of the router itself | it replies on the Lan interface at the address of the router itself | ||
Line 66: | Line 71: | ||
From the differents information provided by this web interface, | From the differents information provided by this web interface, | ||
- | ====== | + | ====== |
I am not a monitorix developer , but with great and smart indication from Monitorix developers , as there is no generic module nor snmp capailities (anyway my Freebox doesn' | I am not a monitorix developer , but with great and smart indication from Monitorix developers , as there is no generic module nor snmp capailities (anyway my Freebox doesn' | ||
Line 72: | Line 77: | ||
===== copy nginx ===== | ===== copy nginx ===== | ||
- | you can check location of all the monitorix components by requesting file location of tha monitorix package with : | + | you can check location of all the monitorix components by requesting file location of the monitorix package with : |
< | < | ||
Line 102: | Line 107: | ||
</ | </ | ||
- | ===== dev environement | + | ===== dev environment |
- | After you have check that monitorix | + | After you have checked |
< | < | ||
Line 116: | Line 121: | ||
</ | </ | ||
- | duplicate all nginx parameters in the conf file to fbxcfr (or whatever name you give to your module) so that your module is taken into account by the monitorix daemon . | + | duplicate |
- | this happens | + | this happens |
==== add module to monitorix.conf ==== | ==== add module to monitorix.conf ==== | ||
Line 132: | Line 137: | ||
url = http:// | url = http:// | ||
port = 80 | port = 80 | ||
- | rule = 24100 | ||
rigid = 0, 0, 0 | rigid = 0, 0, 0 | ||
limit = 100, 100, 100 | limit = 100, 100, 100 | ||
Line 165: | Line 169: | ||
</ | </ | ||
- | run it in debug mode to be ale to see potential errors | + | execute |
< | < | ||
- | # / | + | # / |
</ | </ | ||
Line 192: | Line 196: | ||
</ | </ | ||
- | then after few second (at next minute) , here comes my two values In and Out inserted in the rrd file | + | then after few second (at next minute) , here comes my two values |
< | < | ||
Line 217: | Line 221: | ||
===== fbxcfr.pm | ===== fbxcfr.pm | ||
- | as explained earlier , I copied the nginx module to create mine fbxcfr module . I follows | + | as explained earlier , I copied the nginx module to create mine fbxcfr module . I followed |
==== Frame ==== | ==== Frame ==== | ||
Line 251: | Line 255: | ||
==== collected values code ===== | ==== collected values code ===== | ||
- | I change | + | I changed |
< | < | ||
Line 336: | Line 340: | ||
1; | 1; | ||
</ | </ | ||
+ | |||
+ | ==== fbxcfr.pm file ==== | ||
+ | |||
+ | here is the full module file (unzip to get the .pm ) | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ==== image result zoom ==== | ||
+ | |||
+ | {{: | ||