Ad Widget

Collapse

UserParameter Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpeide
    Junior Member
    • Jul 2005
    • 21

    #1

    UserParameter Windows

    I'm currently using Zabbix 1.1alpha10 to monitor the builtin parameters and performance counter parameters on Window Server 2003 hosts. This part is working great.

    I've been trying to take it to the next level and implement UserParameters. I've been having issues just getting a base config implemented.

    I created a vbs script that echos a numeric value. The script executes sucessfully on the box.

    Since I was having issues I tried a simple batch file (which poster KMH27 used sucessfully)

    @Echo 18
    Exit

    My zabbix_agentd.conf looks like

    -begin-

    Server=192.168.1.2
    Hostname=host
    StartAgents=5
    DebugLevel=4
    Timeout=3

    UserParameter=free[test],c:\bridge./bat
    PerfCounter=MemCommitLimit,"\Memory\Commit Limit",60
    PerfCounter=MemCommitBytes,"\Memory\Committed Bytes",60
    PerfCounter=MemPagesIn,"\Memory\Pages Input/sec",60
    PerfCounter=MemPagesOut,"\Memory\Pages Output/sec",60
    PerfCounter=MemPagesSec,"\Memory\Pages/sec",60
    PerfCounter=AvgDiskQLength,"\PhysicalDisk(_Total)\ Avg. Disk Queue Length",60
    PerfCounter=DiskTime,"\PhysicalDisk(_Total)\% Disk Time",60
    PerfCounter=FilesOpen,"\Server\Files Open",60
    PerfCounter=ServerSessions,"\Server\Server Sessions",60

    -end-

    I restart the Zabbix Win32 Agent service on the server with no errors showing up in the system log.

    I then added an item with key free[test] to one of my hosts in Zabbix. My
    zabbix_server.log reports:

    026999:20050714:092415 Parameter [free[test]] is not supported by agent on host [SUS-PD01]

    It seems no matter what I use for a Userparameter I recieve an error on the server and the host item Status is automatically changed to "Not supported".

    Can anybody point me in the right direction?

    Thanks,

    Matt
  • mpeide
    Junior Member
    • Jul 2005
    • 21

    #2
    UserParameter Typo

    Siebrand,

    Good catch. My collegue had pointed out that typo when we were reviewing the conf file layouts yesterday.

    Even after fixing the typo, I still am having issues. Tomorrow, I think I 'll take another stab at this problem. I'm going to run filemon to see if the file is executed by the agent.

    I also saw a recent post by Alexi on another thread regarding similar issue which I'm going to reread to verify I'm not making a simple mistake.

    I wouldn't mind seeing a working vbs sample if somebody had one.

    Thanks,

    Comment

    • mpeide
      Junior Member
      • Jul 2005
      • 21

      #3
      Update: UserParameter

      Turns out that Zabbix was not processing the host SUS-PD01 properly for some unkown reason. Even if I tried to add an additional PerCounter, Zabbix would report "Parameter [whatever]is not supported by agent on host [SUS-PD01].

      The client agent was working correctly. So I deleted the existing host entry in Zabix and added a new host entry for that server, reapplied template and Zabbix started collecting all of my Perfcounters and Userparameters correctly.

      Later

      Comment

      Working...