Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monitoring a read-only linux "server"
#1
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: http://IPofServer/status.zms)

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!
 Reply
#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.
 Reply
#3
Hi,

Thanks for the response. That URL lead me to a json file (attatched).

Thanks in advance


Attached Files


.json   status.json (Size: 12.07 KB / Downloads: 14)
 Reply
#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.
 Reply
#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.
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes