Ad Widget

Collapse

zabbix alertscript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tikejhya
    Junior Member
    • Jan 2012
    • 15

    #1

    zabbix alertscript

    Hi experts,

    Could anyone please make me aware what mistake i might have done.

    I have alertscript on zabbix 2.0 on location /home/zabbix/bin/
    and script to send message called sendim.sh, however that script is never executed.

    Do we need to have alert script on compile time? or does zabbix use {datadir}/zabbix/alertscript/ by default..

    could anyone plz enlighten me here?

    Previously with zabbix 2.0 it was working with no problem having script on /home/zabbix/bin and i made server move it stopped working, apart from this everything else has been smooth.
    Last edited by tikejhya; 05-08-2012, 17:39.
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Try to check the "AlertScriptsPath" parameter in your zabbix_server.conf file.
    BR
    Erik

    Comment

    • tikejhya
      Junior Member
      • Jan 2012
      • 15

      #3
      Originally posted by eskytthe
      Try to check the "AlertScriptsPath" parameter in your zabbix_server.conf file.
      BR
      Erik

      Hi eskytthe, Thanks for the reply,

      My zabbix_server.conf looks

      Code:
      ### Option: AlertScriptsPath
      #       Full path to location of custom alert scripts.
      #       Default depends on compilation options.
      #
      # Mandatory: no
      # Default:
      # AlertScriptsPath=${datadir}/zabbix/alertscripts
      AlertScriptsPath=/home/zabbix/bin/
      And i am trying to call test.sh [Administration ¬ media types]

      Created, media on Users [i.e. i am trying to send message to skype, which i was so far able to do, but suddenly since server migrate i am not].

      and i have configuration Actions: which is triggered every problem.

      Apart from that my question is, do we have to do declare AlertScriptsPath while compiling or is that only for ${datadir}/zabbix/alertscripts?

      And most importantly, If i check Administration ¬ Audit ¬ Actions
      I can seee that Type skype Sent user tikejhya subject: .........:Average and so on.

      But the script is not executed. (where else could it go wrong i dont see any logical reason or aspect.)
      Last edited by tikejhya; 06-08-2012, 11:57. Reason: info

      Comment

      • tikejhya
        Junior Member
        • Jan 2012
        • 15

        #4
        Ok, After fighting hard its not zabbix issue neither "Not" executing script.

        But its issue with python and zabbix together.


        When zabbix(app) tries to run my script which finally calls python script, It gives

        kernel: python[23587]: segfault at 00000000000000f8 rip 0000003b14821d67 rsp 00007fff0d5c4c30 error 4

        And now i am looking into it, upgrading gcc and libstdc didnt help.

        I am not in condition to make python upgrade.

        Anyone has has simillar issue?

        Comment

        • kii
          Junior Member
          • Oct 2009
          • 14

          #5
          i have met the same problem. i have modified the location of the alertscripts that defined in Zabbix server configuratino file Alert ScriptsPathvariable.
          AlertScriptsPath=/usr/local/zabbix/bin
          But every action the scripts did not execute.

          Comment

          • kii
            Junior Member
            • Oct 2009
            • 14

            #6
            i have fixed up the problem.
            Just recompile the zabbix server with options --datadir=/usr/local/xxx

            Comment

            Working...