Ad Widget

Collapse

Creating a PHP logger for Xabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chippyash
    Junior Member
    • Jul 2012
    • 1

    #1

    Creating a PHP logger for Xabbix

    Hi,

    Let me first state that I am a PHP dev, not a sys admin. That said, can anyone point me in the right direction or suggest some viable routes to accomplish the following?

    I have a logging solution (written in PHP) that is is used in my apps that can write to a variety of different targets: stream, database, socket, FirePHP, REST, SOAP etc etc. I'd like to extend it to be able to send log entries directly to a Zabbix server for appropriate conditions in the application.

    How could I best accomplish this? Would I go via zabbix_sender? Could I use direct API calls on the server? (and if so, which ones?) Has someone done something similar?

    Any suggestions gratefully received ;-)
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    zabbix active agent protocol + log item might be the best approach
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...