Ad Widget

Collapse

system.run oddness

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrogers-9898
    Member
    • Sep 2008
    • 68

    #1

    system.run oddness

    I've got a tool to check my IP addresses on my hosts, the active zabbix agent runs the system.run item command.

    One host changed its address, but the zabbix_agent (partially) reports the old IP address.

    It is a Windows hosts.

    if I run the command "it-wanip.exe -c" and "it-wanip.exe -l" from the command line I get 10.1.2.163 for both, but when the agent does it, it gets the old address for the list and the new one for the check.

    the list/-l command is supposed to read from a text file on the host which contains the valid IP. (which I've deleted, recreated...). While the check, grabs the current IP.

    Here is the zabbix_agent.log with debugging info.
    *************************************************
    {
    "host":"HOST",
    "key":"system.run[\"c:\\zabbix_agent\\it-wanip.exe -c\"]",
    "value":"10.1.2.163",
    "clock":1287957546},
    {
    "host":"HOST",
    "key":"system.run[\"c:\\zabbix_agent\\it-wanip.exe -l\"]",
    "value":"10.1.3.157",
    "clock":1287957546},

    *************************************************

    (IP address have been changed to protect the innocent!)

    Could the list file somehow, somewhere being cached?

    Any suggestions?
  • marcel
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 112

    #2
    Try to use zabbix_get to get the data from zabbix_agent(d)
    Zabbix Certified Specialist for Large Environments since 12/2010

    Comment

    Working...