Ad Widget

Collapse

Trouble with UserParameter on Freebsd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wonk
    Junior Member
    • Apr 2005
    • 3

    #1

    Trouble with UserParameter on Freebsd

    Greetings,

    I have recently started using Zabbix 1.0 with the agentd running on FreeBSD 5.3. I want to add in some custom items to be monitored so I have decided to make use of the UserParameter feature. For a test I decided to start with something fairly simple, but I am unable to get it to work. The line in my zabbix_agent.conf is:

    UserParameter=local[memtotal],sysctl hw.physmem | cut -f 2-2 -d " "

    If I run this command from my shell it returns:

    root@bozo/<1>local/etc/zabbix# sysctl hw.physmem | cut -f 2-2 -d " "
    662130688
    root@bozo/<1>local/etc/zabbix#

    When I try to monitor the UserParameter from Zabbix it returns not supported. The agentd debug log shows:

    017350:20050408:095003 In check_security()
    017350:20050408:095003 Connection from [127.0.0.1]. Allowed servers [127.0.0.1]
    017350:20050408:095003 Before read()
    017350:20050408:095003 After read() 2 [16]
    017350:20050408:095003 Got line:local[memtotal]
    017350:20050408:095003 Sending back:ZBX_NOTSUPPORTED

    I have searched the forum and with google but can't seem to find a solution. Any advice would be greatly appreciated

    Cheers,

    Rob
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Have you restarted ZABBIX agent after the UserParameter was added?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • wonk
      Junior Member
      • Apr 2005
      • 3

      #3
      Originally posted by Alexei
      Have you restarted ZABBIX agent after the UserParameter was added?
      Yes. I also tried changing the paramater name to something different (local-memtotal), and trying it with "UserParameter: local[memtotal]" as described in http://www.zabbix.com/manual/v1.1/config_extend.php (even though that is different to the examples in the .conf file).

      I am happy to run some tests or provide more debug/tcpdump output to help reslove this.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        What version of ZABBIX you're running?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • wonk
          Junior Member
          • Apr 2005
          • 3

          #5
          Version 1.0, from the Freebsd ports system.

          Comment

          • klavs
            Junior Member
            • Apr 2005
            • 18

            #6
            I know this works for me in 1.1alpha7 (which seems just as stable as 1.0) - just note, that suckerd and trapperd has been replaced by zabbix_serverd

            Comment

            Working...