Ad Widget

Collapse

NUll user run alterscript!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tienbm
    Junior Member
    • Jun 2016
    • 11

    #1

    NUll user run alterscript!

    Dear all,
    I have script sms notify. But when zabbix excute, it's run as (null) user:
    (Picture attach)

    I don't know why .

    Everybody, please help me!.

    Thanks
    Attached Files
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Does the zabbix user's home directory exist?

    Comment

    • tienbm
      Junior Member
      • Jun 2016
      • 11

      #3
      NUll user run alterscript!

      I have zabbix home dir: /var/lib/zabbix. And I copied gnoki config file to /var/lib/zabbix. When I run as zabbix user. I can connect to GSM but when have trigger, I recived above error.

      Thanks.

      Comment

      • A.Zabihi
        Junior Member
        • Aug 2016
        • 14

        #4
        Originally posted by tienbm
        I have zabbix home dir: /var/lib/zabbix. And I copied gnoki config file to /var/lib/zabbix. When I run as zabbix user. I can connect to GSM but when have trigger, I recived above error.

        Thanks.
        this is about permissions and you can set username in your script like :
        #!/bin/bash
        sudo -u zabbix -H sh -c <command>
        for example :
        sudo -u zabbix -H sh -c ping 4.2.2.4

        actually you must define your user in your script.

        thanks

        Comment

        Working...