Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Monitoring your fanpage_facebook_with_zabbix

552 views

Published on

Step by step, how to monitoring fanpage facebook with Zabbix

Published in: Technology
  • Be the first to comment

Monitoring your fanpage_facebook_with_zabbix

  1. 1. Monitoring your page Facebook with Zabbix Bezaleel R Silva
  2. 2. 2 Schedule
  3. 3. 3 About ● Bezaleel (Beza) ● ZABBIX Certified Specialist and ZABBIX for Large Environments. ● LPIC ● Founder: ONX SOLUTIONS(Goiania) – Morpheus Tecnologia ( Sao Paulo)- branch – A2WR ( Rio de Janeiro)- branch
  4. 4. 4 How did arised the ideia ● Tired of following the insight in Facebook ● Projects my company ONX Solutions – What possible monitored, at moment ● New messanges ● Likes ● New Likes ● And more, more..
  5. 5. 5 Facebook
  6. 6. 6 Created token - What we're going to need ● Create New APP – https://developers.facebook.com/apps/ ● Create Access Token – https://developers.facebook.com/tools/debug/accesstoken/ ● Consult API-GRAPH – https://developers.facebook.com/docs/graph-api/reference/v2.10/ ● PAGE ID ● V2.10
  7. 7. 7 1º Create a New App ID
  8. 8. 8 2º Graph API Explorer
  9. 9. 9 3º Select Permission
  10. 10. 10 4º Permission
  11. 11. 11 5º Graph API Explore
  12. 12. 12 6º Information Token access
  13. 13. 13 Zabbix
  14. 14. 14 Zabbix ● Script – monitoring_facebook.py import sys import argparse import urllib2 import json
  15. 15. 15 $cat monitoring_facebook.py
  16. 16. 16 #cat zabbix_agentd.conf ● UserParameter – $ grep -i monitoring_facebook.py zabbix_agentd.conf UserParameter=monitoring_facebook.py[*],python /externalscript/monitoring_facebook.py $1 $2 $3
  17. 17. 17 Zabbix – Create Host ● Create host with name your Page.
  18. 18. 18 Zabbix – Create Item ● Create item
  19. 19. 19 Zabbix Keys ● Keys Created – monitoring_facebook.py[zbxfields,page_impressions,week] – monitoring_facebook.py[zbxfields,page_total_actions,day] – monitoring_facebook.py[zbxmonpost,total_count] – monitoring_facebook.py[zbxfields,page_fan_adds_unique,week] – monitoring_facebook.py[zbxmonitoringfields,fan_count] – monitoring_facebook.py[zbxmonitoringfields,unread_message_count] – monitoring_facebook.py[zbxfields,page_views_total,day
  20. 20. 20 Zabbix Latest data
  21. 21. 21 More...
  22. 22. 22 More... Grafana..Grafana..Grafana
  23. 23. 23 Grafana.. Grafana..
  24. 24. 24 Thanks bramos@onxsolutions.net (62) 99303-5245 fb:@onxsolutionsbr Linkedin: bezaleel-ramos

×