Pandora FMS Community

Monitoring a read-only linux "server"

eugeniolpa · 23 may 2016, 19:52 · 5 mensajes · 57 visitas

  1. Inicio del debate

    Hi, I'm going to install a new server in the company i work for that is a read-only linux "server". It's not really a server, it's a hardware managed by pre-compilled read-only linux. The only reporting i have is a json report on demand (i have to ask vía browser with this kind of URL: (Link not available anymore)) I have been scouting for a possibillity to use Pandora to take that json and configure alerts with the info that this json include, for example: ,"net": { "eth0:":{"inStart":"43756180414","outStart":"1150530073","inStop":"43757903574","outStop":"1150578519","timeout":"1"}, "lo:":{"inStart":"41976404787","outStart":"41976404787","inStop":"41977472371","outStop":"41977472371","timeout":"1"}, "tun0:":{"inStart":"128851","outStart":"1565155","inStop":"128851","outStop":"1565155","timeout":"1"}} Anyone knows if this is possible in Pandora FMS? Thanks in advance!

  2. Hi eugeniolpa, I'd need to know more about this on-demand json report. How does it work? When you get into that URL, does it lead you to a json file download, does it head you to a screen prompting that information...? Kind regards, Kevin.

  3. Hi, Thanks for the response. That URL lead me to a json file (attatched). Thanks in advance

    status.json

  4. Hello eugeniolpa, You might be able to do it through a custom script. It would have to download the file (maybe with cURL or wget), perform a "cat file.json" (over that new file) and filter the information it shows with grep and/or awk. It might be a little rough, but surely there is a way (if not many) to do it. Kind regards, Kevin.

  5. Thank you very much AKevin, will focus on that. If i get a solution with this will post the result, may be help someone else.

Entra en tu cuenta para publicar.