Ad Widget

Collapse

ZBX_NOTSUPPORTED but it apparently should be

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Twirrim
    Junior Member
    • Nov 2009
    • 12

    #1

    ZBX_NOTSUPPORTED but it apparently should be

    Code:
    /etc/zabbix # ls -sltrah
    total 20K
       0 lrwxrwxrwx   1 root root   30 Apr  5 15:01 zabbix_agent.conf -> /etc/zabbix/zabbix_agentd.conf
    7.5K drwxr-xr-x 102 root root 7.6K Aug 10 11:13 ..
     12K -rw-r--r--   1 root root 9.9K Sep 23 13:09 zabbix_agentd.conf
       0 drwxr-xr-x   2 root root  128 Sep 23 13:09 .
    That way (in theory) whatever zabbix_agentd can do, zabbix_agent can do, or so I'd expect.

    Code:
    /etc/zabbix # tail -2 /etc/zabbix/zabbix_agentd.conf 
    # Monitoring spam stats
    UserParameter=spamassassin,/usr/local/bin/spam-count
    So we call that using zabbix_agent:
    Code:
    /etc/zabbix # zabbix_agent -t spamassassin
    spamassassin                                  [t|3059]
    Yay, it works. Restart zabbix_agentd (just in case I've done it by stopping it, checking it had gone, then starting it again)

    Then from the monitor box:
    Code:
    [zabbix@monitoringserver ~]$ zabbix_get -s targetserver -k spamassassin
    ZBX_NOTSUPPORTED
    Odd. Trying on the box itself, in case:
    Code:
    /etc/zabbix # zabbix_get -s localhost -k spamassassin
    ZBX_NOTSUPPORTED
    Colour me confused. If zabbix_agent can do it, why can't zabbix_agentd?
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #2
    Just for kicks try spamassaian.count or spam[*] (and pass nothing) as your user parameter with the same command. The other thing is make sure the account running agentd has permissions to run that command.

    Comment

    • Twirrim
      Junior Member
      • Nov 2009
      • 12

      #3
      Hmm.. that's weird. Checked permissions on all levels but can't quite see it. Must be something related to that though. Switched things around so the script that produces the result gets run in a cron and dumps it's output to a tmp file, and switched zabbix_agentd.conf to do a cat of that instead. Either way I get the result I need.

      Comment

      Working...