Ad Widget

Collapse

External Scripts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlexYoung
    Member
    • Jul 2013
    • 37

    #1

    External Scripts?

    Does Anyone use any other scripts apart from the default ones?
  • Firewire2002
    Junior Member
    • Sep 2008
    • 6

    #2
    Yes of course.

    Comment

    • zabbixfk
      Senior Member
      • Jun 2013
      • 256

      #3
      External Scripts? - Yes possible.

      Yes possible. You need to place scripts in /etc/zabbix/scripts/ , create a UserParameter inside zabbix_agentd.conf, create key zabbix agent and give your UserParameter entry here.
      For ex:
      Code:
      UserParameter=myscript, /bin/bash /etc/zabbix/scripts/myscript.sh
      And create a item with 'myscript' as key of type zabbix agent.

      Thanks

      Comment

      • AlexYoung
        Member
        • Jul 2013
        • 37

        #4
        What sort of one's do you use it for.

        Comment

        • zabbixfk
          Senior Member
          • Jun 2013
          • 256

          #5
          Depends upon the requirement. Any type of scripts can be written and placed under UserParameter , can let zabbix capture the value.
          I was under the impression that you needed help in configuring external scripts. If not, ignore this post.

          Thanks

          Comment

          • AlexYoung
            Member
            • Jul 2013
            • 37

            #6
            Yeah sorry was my mistake should of been more clear. I've just installed 3.0 and just wondering about Remote Commands etc..

            i.e. How to do it and works, i'll have a look through the docs but was just wondering what other people have done i.e. do you have examples to share?

            Comment

            • zabbixfk
              Senior Member
              • Jun 2013
              • 256

              #7
              Above post has an example named myscript.
              Usecase : Sometimes you have custom scripts built for managing/monitoring your Infra or any custom application, and when you wanted to integrate with zabbix, use this parameter. I had build custom script for computing results based on the input parameters for a custom application and integrated using UserParamer with zabbix.

              Thanks

              Comment

              • m_pahlevanzadeh
                Junior Member
                • Jun 2022
                • 28

                #8
                this is very useful how to : https://medium.com/@r.szulist/zabbix...e-b9d8bd5ebaaf

                Comment

                Working...