Ad Widget

Collapse

ITEM.LASTVALUE for windows services list crashes action run command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alain Ganuchaud
    Member
    Zabbix Certified Trainer

    • Mar 2009
    • 49

    #1

    ITEM.LASTVALUE for windows services list crashes action run command

    Hello,

    I try to launch an action when windows services "auto AND stopped" are triggerred.

    The action run command is:
    host:/usr/local/bin/some_script.php "{DATE}" "{SOME_OTHER_MACRO}" "{ITEM.LASTVALUE}"

    ITEM.LASTVALUE is the list of the failed windows services separated by CR LF:
    service1
    service2
    service3

    When I look at zabbix logs, I see that the script is not launched because of incorrect syntax:

    Executing command '/usr/local/bin/some_script.php "2010.05.12" ... "service1'
    service2 and service3 are missing and syntax error is raised by zabbix.

    The problem is that the windows service list is separated by CR LF and CR is executed by zabbix run command.

    Has someone a good idea to solve taht?

    Thanks for help,
    Alain
Working...