Ad Widget

Collapse

Zabbix Newbie / Where can I find the alertscripts folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monstermania
    Junior Member
    • Apr 2013
    • 8

    #1

    Zabbix Newbie / Where can I find the alertscripts folder

    Hi,
    I'am a complete newbie into zabbix and linux, too.
    I've installed the preconfigured Zabbix appliance on an older Notebook (OpenSuse 12.2). I've configured zabbix to monitor some devices into our network and everything works fine.
    I configured zabbix/Linux to send email-alerts through our MS Exchange Server.
    Now I try to send zabbix-alerts by sms. Therefore i use a USB-Webstick. I configured the stick into OpenSuse and can send now sms by using gammu.

    Here i found a description how to use gammu to send sms from zabbix.
    Create an sms script (and make it executable) on the zabbix server in the AlertScriptsPath (=/etc/zabbix/alert.d/ on ubuntu) #!/bin/sh HO...


    But i don't find the 'alertscripts' folder of zabbix into my installation. Where i can find the folder?
    Have I to made a folder by myself? Where i must place this folder that zabbix will use him?

    regards
    Dirk
  • BrendanG
    Junior Member
    • Nov 2006
    • 18

    #2
    The AlertScriptsPath is set in the zabbix_server.conf file. By default it is

    /usr/local/share/zabbix/alertscripts

    That is dependent on the compile time datadir variable.

    See the manual:

    Comment

    • monstermania
      Junior Member
      • Apr 2013
      • 8

      #3
      Thank You,
      there was no zabbix-folder into /usr/local/share.
      So i create 'zabbix/alertscripts' manually. Then i put my script into tyhe folder and make it executable.
      I've testing the script by using the zabbix user account from the shell. Everything works.
      But it seems not to work out of zabbix.
      Maybe wrong user privileges? Witch user-account executes the scripts in the alertscripts folder?

      regards
      Dirk

      Comment

      • BrendanG
        Junior Member
        • Nov 2006
        • 18

        #4
        Not really sure, I'm not an expert, but I would assume the scripts are run as the same user as the zabbix_server process itself. I'd suggest explicitly setting the AlertScriptsPath in your zabbix_server.conf file to ensure it is using /usr/local/share/zabbix/alertscripts since that default can be overridden at build time.

        Comment

        • monstermania
          Junior Member
          • Apr 2013
          • 8

          #5
          Thank You,
          I've solved my problem. It was a problem with the user/group permissions of the alertscripts folder.
          Now everything works an i can send sms-alerts from zabbix.
          Some more information you find into this Thread.

          best regards
          Dirk

          Comment

          Working...