Ad Widget

Collapse

Server receiving wrong agent userparameter value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • treydock
    Junior Member
    • Apr 2011
    • 15

    #1

    Server receiving wrong agent userparameter value

    I created a userparameter that checks if a folder is mounted. So far things work fine but I have one check that always returns the wrong value. The host has 2 instances of the userparameter check, one returns the correct value and the other, the wrong value.

    What makes this so strange is running the item tests on the agent returns the correct value...ie...

    Code:
    # zabbix_agentd -t vfs.fs.mounted[/mnt/share]
    vfs.fs.mounted[/mnt/share]  [t|1]
    If I run the zabbix_get from the server, the wrong value is pulled...

    Code:
    # zabbix_get -s 'agent.tld' -k 'vfs.fs.mounted[/mnt/share]'
    0
    Using the exact same userparameter, just a different folder, the returns are correct..

    On the agent host...
    Code:
    # zabbix_agentd -t vfs.fs.mounted[/mnt/share2]
    vfs.fs.mounted[/mnt/share2]  [t|1]
    On the server...
    Code:
    # zabbix_get -s 'agent.tld' -k 'vfs.fs.mounted[/mnt/share2]'
    1

    Both the server and agent are running 1.8.6 on CentOS 5.6. The command that makes up the userparameter vfs.fs.mounted is returning the correct information on both tests, so somewhere between the agent/server the "1" is going to "0", and there are no errors in any log entries.

    Here's the userparameter,

    UserParameter=vfs.fs.mounted[*],if mountpoint -q "$1"; then echo "1"; else echo "0"; fi

    Thanks
    - Trey
Working...