Ad Widget

Collapse

execution of local scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • philipp
    Junior Member
    • Jan 2005
    • 9

    #1

    execution of local scripts

    Hi,

    maybe I am missing something, but: is there a way to execute a script on the server for monitoring? ie. something like
    exec,/opt/zabbix/http_performance.sh,"http://www.kernel.org/"

    which would execute http_performance.sh locally on the zabbix server?

    Thanks,
    Philipp
  • primos
    Member
    • Jul 2005
    • 61

    #2
    Zabbix External

    Hy,

    this was brought up before and it's called "Zabbix External" , method announced for Zabbix 1.1 ! I hope.

    But you can use use CRON for the job and end your scripts with zabbix sender and zabbix agent (active) item waiting for results, works great.
    I have this external method but I'm thinking to reverse to CVS core CODE and running "cron-style-check".I'm tired of patching!

    Patch to 1.1alpha12 diff file!
    Last edited by primos; 30-01-2006, 23:19.

    Comment

    • philipp
      Junior Member
      • Jan 2005
      • 9

      #3
      wow - thanks for the speedy reply...

      Originally posted by primos
      this was brought up before and it's called "Zabbix External" , method announced for Zabbix 1.1 ! I hope.
      ohh, I hope so too

      Originally posted by primos
      But you can use use CRON for the job and end your scripts with zabbix sender and zabbix agent (active) item waiting for results, works great.
      I have this external method but I'm thinking to reverse to CVS core CODE and running "cron-style-check".I'm tired of patching!
      hmmm... a bit dodgy. What I am really trying to do is monitor ie. packet loss on leased lines. The lines are in zabbix already. Granted, I could write a script, that queries all lines, run the checks and then report back via zabbix_sender. hmmm...

      ...I'll have a look at that, thanks!

      EDIT:
      hmmm.... apart from the fact, that I get an error trying to apply the patch: has anyone made an effort to update this to a current version?

      # patch -Cf -p1 < ../patch.txt
      Hmm... Looks like a unified diff to me...
      The text leading up to this was:
      --------------------------
      |diff -uNr zabbix-1.1alpha12.orig/frontends/php/include/defines.inc.php
      |zabbix-1.1alpha12/frontends/php/include/defines.inc.php
      |--- zabbix-1.1alpha12.orig/frontends/php/include/defines.inc.php 2005-08-12
      |17:35:35.000000000 +1000
      |+++ zabbix-1.1alpha12/frontends/php/include/defines.inc.php 2005-08-17
      |18:28:49.704146648 +1000
      --------------------------
      Patching file frontends/php/include/defines.inc.php using Plan A...
      patch: **** malformed patch at line 8: define("ITEM_TYPE_INTERNAL",5);
      Last edited by philipp; 31-01-2006, 00:28.

      Comment

      • primos
        Member
        • Jul 2005
        • 61

        #4
        Better yet read them from proc or capture prom proc sleep then capture again, and some math.

        All you need to know is
        "4294967296" - counter in Linux for calculating the counter reset !

        Comment

        • primos
          Member
          • Jul 2005
          • 61

          #5
          external

          I applied it to beta1 with fixed trigger evaluation, I don't have src no more but I have SuSE SLES 9 binaries (If you need them). The truth is I have 20-30 dir's of zabbix src from alpha12-beta5 and I'm not really shure which one was the working one(the code).

          I applied the patch manually to beta1/beta2 code.I tried to apply it to beta5 or CVS but there were some changes in the core and these functions need to be rewritten (some reduction in vars), I decided not to waste any more time on this since I have other things to do.


          I think this patch shouild be in CVS a long time ago, but needs to be added some time frame for safety(so It doesn's stop the core on many concurrent timeouts).

          Comment

          Working...