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:53] procacci@tem-tsp.eu [Custom Monitor] |
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 trafic | + | I want to get In and Out traffic |
| {{: | {{: | ||
| Line 26: | 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 71: | 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 77: | 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 107: | Line 107: | ||
| </ | </ | ||
| - | ===== dev environement | + | ===== dev environment |
| - | After you have check that monitorix | + | After you have checked |
| < | < | ||
| Line 121: | 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 137: | 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 170: | Line 169: | ||
| </ | </ | ||
| - | run it in debug mode to be ale to see potential errors | + | execute |
| < | < | ||
| - | # / | + | # / |
| </ | </ | ||
| Line 197: | 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 222: | 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 256: | Line 255: | ||
| ==== collected values code ===== | ==== collected values code ===== | ||
| - | I change | + | I changed |
| < | < | ||
| Line 344: | Line 343: | ||
| ==== fbxcfr.pm file ==== | ==== fbxcfr.pm file ==== | ||
| - | here is the full module file (zunip to get the .pm ) | + | here is the full module file (unzip to get the .pm ) |
| {{: | {{: | ||