Ad Widget

Collapse

Zabbix sender protocol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fisher
    Junior Member
    • Oct 2008
    • 27

    #1

    Zabbix sender protocol

    Dear All,

    I plan to use the Zabbix sender protocol in my scripts because not all of my machines are have Z client installed and I do not want to depend on it. To see if I clearly understand how it is works I just did telnet to my zabbix server and copy-pasted the documentation example. Surprisingly I got an OK (I believe because the xml fragment was correct), but the data I posted did not appeared in the latest data screen. Most probably because the test data host, "Sonic server" is not configured on my server.

    Questions:

    - is the data I posted from a non-existing host in the db?
    - is the data I posted for a non-existing key in the db?
    - if the data in the db, then it is maintained by the internal mechanisms, so is it purged after the configured time, even if the host and/or the key is not exists?
    - if I want to get this data do I have to create all the hosts (yes, I think)
    - do I have to create all the keys the client posts? (yes, I think)
    - if the data in the db will it available when I create the host/key at a later time?
    - Is there any way to automate the host/key creation from command line?
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by fisher
    - is the data I posted from a non-existing host in the db?
    No, zabbix_server will discard any data received from an unknown host.
    Originally posted by fisher
    - is the data I posted for a non-existing key in the db?
    No, zabbix_server will discard any data received for an unknown key.
    Originally posted by fisher
    - if the data in the db, then it is maintained by the internal mechanisms, so is it purged after the configured time, even if the host and/or the key is not exists?
    Data is not in the DB see above.
    Originally posted by fisher
    - if I want to get this data do I have to create all the hosts (yes, I think)
    - do I have to create all the keys the client posts? (yes, I think)
    Yes to both questions.
    Originally posted by fisher
    - if the data in the db will it available when I create the host/key at a later time?
    No, data is not in the DB.
    Originally posted by fisher
    - Is there any way to automate the host/key creation from command line?
    You may look at Zabbix API http://www.zabbix.com/documentation/1.8/api
    You may also search the forum, some command line tools have been discussed here (ex: http://www.zabbix.com/forum/showthre...ghlight=zabcon)

    You may also look at auto-registration feature (new in 1.8) it may help you automatically create a new host.

    Regards,
    Alixen
    Last edited by alixen; 18-08-2010, 14:00. Reason: Added auto-registration
    http://www.alixen.fr/zabbix.html

    Comment

    • fisher
      Junior Member
      • Oct 2008
      • 27

      #3
      Cool, thank you for your help!

      Comment

      • fisher
        Junior Member
        • Oct 2008
        • 27

        #4
        Its workiiiingggg

        Some templates and scripts will be posted here.

        Comment

        Working...