Ad Widget

Collapse

How to run perl script in zabbix to monitor Mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sekhar
    Junior Member
    • Dec 2010
    • 5

    #1

    How to run perl script in zabbix to monitor Mysql

    hi all

    can any body please replay me about how to configure external perl scripts to monitor Mysql db

    thanks
    sekhar
  • Ori0n
    Member
    • Dec 2010
    • 35

    #2
    External check is probably what you want.

    Start here:
    http://www.zabbix.com/documentation/...xternal_checks

    And let us know if you get stuck

    Comment

    • sekhar
      Junior Member
      • Dec 2010
      • 5

      #3
      First of all thanks for u r help

      can i use perl script or need to stick for shell script only

      Thanks
      chandra sekhar

      Comment

      • Ori0n
        Member
        • Dec 2010
        • 35

        #4
        Any script should be fine as long as it returns one line of output - i.e. one piece of data that the Zabbix item is expecting.

        Good luck

        Comment

        • sekhar
          Junior Member
          • Dec 2010
          • 5

          #5
          Originally posted by Ori0n
          Any script should be fine as long as it returns one line of output - i.e. one piece of data that the Zabbix item is expecting.

          Good luck
          Thanks Ori0n

          Comment

          • sekhar
            Junior Member
            • Dec 2010
            • 5

            #6
            trigger setup for web monitoring

            Hi all,

            is there any way to setup trigger for web monitoring to check response time is greterthan 10 seconds and webtestfail.

            i configured a trigeer
            {test-generic:web.test.time[Servers,Sec Servers,resp].last(0)}>8s|{test-generic:web.test.fail[Sec Servers].last(0)}#0

            it is checking last value i.e last#1 value if it fails it is alerting

            but i would like to configure the trigger , it has to check last 3 values and if those three values failed the condition it should alert.

            Can some body let me know the trigger configuration for this

            Thanks

            Comment

            • Ori0n
              Member
              • Dec 2010
              • 35

              #7
              Sekhar,

              You might want to start a new thread with your new question.

              We might need clarity on what exactly you're trying to do. My best guess is that you want the trigger to fire if response time has been >10s for the last 3 polls or if the test has failed the last 3 polls - is that correct?

              If so, you could try something like this:

              Code:
              {test-generic:web.test.time[Servers,Sec Servers,resp].count(#3,10,"gt")}=3|{test-generic:web.test.fail[Sec Servers].count(#3,0,"ne")}=3
              The will trigger if response time has been > 10s for the last 3 polls OR if the test has failed the last 3 polls.


              Originally posted by sekhar
              Hi all,

              is there any way to setup trigger for web monitoring to check response time is greterthan 10 seconds and webtestfail.

              i configured a trigeer
              {test-generic:web.test.time[Servers,Sec Servers,resp].last(0)}>8s|{test-generic:web.test.fail[Sec Servers].last(0)}#0

              it is checking last value i.e last#1 value if it fails it is alerting

              but i would like to configure the trigger , it has to check last 3 values and if those three values failed the condition it should alert.

              Can some body let me know the trigger configuration for this

              Thanks

              Comment

              Working...