Ad Widget

Collapse

UserParameter allways unsuported

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

    #1

    UserParameter allways unsuported

    anyone can help me with this?

    UserParameter=freshclam.daily,freshclam --stdout | grep daily.cld | awk -F: '{printf("%d\n",$ 2)}'


    This is allways unsupported....i don't have a clue why?

    With zabbix_agentd -t freshclam.daily it works

    zabbix_agentd -t freshclam.daily
    freshclam.daily [t|12367]


    But in Zabbix it is unsupported.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Since your zabbix_agentd test is probably run as root, a few points to check:
    • Is zabbix user allowed to run freshclam ?
      Otherwise, you may add zabbix to /etc/sudoers and replace "freshclam" by "sudo freshclam" in your UserParameter.
    • Is freshclam location in PATH for zabbix user ?
      You may specify freshclam full path in UserParameter command.


    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • scandic
      Junior Member
      • Oct 2007
      • 6

      #3
      I'm having the same issue here.

      From /etc/zabbix/zabbix_agentd.conf:
      Code:
      UserParameter=raid.c0,/usr/bin/sudo /usr/sbin/tw_cli /c0 show|grep RAID-10|cut -f3 -d"0"|cut -f1 -d"-"|cut -f4 -d" "
      [scandic@xxxxxxx ~]$ sudo -u zabbix /usr/sbin/zabbix_agentd -t raid.c0
      raid.c0 [t|OK]

      So this works here. I have put user zabbix to /etc/sudoers for sure. However in the Web-Interface I get the message that this is not supported by the client.

      Item Configuration:
      Key: raid.c0
      Type: Text

      Any Idea?

      Comment

      • Argosy
        Junior Member
        • Dec 2010
        • 5

        #4
        Oh Man!!

        Thank you, how could I oversee this

        Of course that was the problem....freshclam doesn't run under the zabbix user.

        Comment

        Working...