Ad Widget

Collapse

Zabbix1.1 UserParameter zabbixw32 counter[*]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sysigs
    Junior Member
    • Aug 2005
    • 27

    #1

    Zabbix1.1 UserParameter zabbixw32 counter[*]

    i try to implement a userparameter on w2K3
    UserParameter=psproc[*],C:\zabbix_agent_win32-1.0\external\psproc.bat
    but when i create an item using it i said unsupported :

    C:\zabbixagent\>ZabbixW32.exe test "psproc[iissvcs]"
    Using configuration file "C:\zabbix_agentd.conf"
    Configuration file OK
    [13-Jul-2006 15:11:44] *************** Log file opened ****************
    [13-Jul-2006 15:11:44] 6656 Debug Info: AddAlias == OK
    [13-Jul-2006 15:11:44] 1876 Debug Info: CollectorThread start
    [13-Jul-2006 15:11:44] 1876 Debug Info: counterPath1
    [13-Jul-2006 15:11:44] 1876 Debug Info: \Processeur(_Total)\% Temps processeur
    [13-Jul-2006 15:11:44] 1876 Debug Info: counterPath2
    [13-Jul-2006 15:11:44] 1876 Debug Info: \Processeur(0)\% Temps processeur
    [13-Jul-2006 15:11:44] 1876 Debug Info: counterPath2
    [13-Jul-2006 15:11:44] 1876 Debug Info: \Processeur(1)\% Temps processeur
    [13-Jul-2006 15:11:44] 1876 Debug Info: counterPath3
    [13-Jul-2006 15:11:44] 1876 Debug Info: \SystÞme\Longueur de la file du processeur
    [13-Jul-2006 15:11:44] Collector thread initialized successfully
    psproc[iissvcs] [ZBX_NOTSUPPORTED]

    what's wrong with my deffinition???

    psproc.bat
    @echo off
    C:\zabbixagent\external\ntps -e |C:\zabbixagent\external\grep -i %1 |C:\zabbixagent\external\wc -l

    ntps.exen grep.exe and wc it's function from licencied application mkstoolkit

    I succed to use it alone to test if IIS services is running
    C:\zabbixagent>C:\zabbixagent\external\psproc.bat iissvcs
    1
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    Probably because you forgot %1 at the end of your userparameter:

    UserParameter=psproc[*],C:\zabbix_agent_win32-1.0\external\psproc.bat %1

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • sysigs
      Junior Member
      • Aug 2005
      • 27

      #3
      Thank you your response.
      But i try with %1 and it still pass in "NOT SUPPORTED"
      if i pass the parameter like
      UserParameter=psproc.iis,C:\zabbix_agent_win32-1.0\external\psproc.bat iissvcs
      it's working find
      but if i use * !!!
      SG

      Comment

      Working...