PDA

View Full Version : UserParameter Windows


mpeide
14-07-2005, 16:38
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

siebrand
18-07-2005, 17:07
UserParameter=free[test],c:\bridge./bat
Hi Matt,

are you sure that "/" needs to be there in "c:\bridge./bat"? Looks like a typo to me...
________
California Medical Marijuana Dispensary (http://california.dispensaries.org/)

mpeide
19-07-2005, 22:45
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,

mpeide
28-07-2005, 00:14
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