Greetings,
I have recently started using Zabbix 1.0 with the agentd running on FreeBSD 5.3. I want to add in some custom items to be monitored so I have decided to make use of the UserParameter feature. For a test I decided to start with something fairly simple, but I am unable to get it to work. The line in my zabbix_agent.conf is:
UserParameter=local[memtotal],sysctl hw.physmem | cut -f 2-2 -d " "
If I run this command from my shell it returns:
root@bozo/<1>local/etc/zabbix# sysctl hw.physmem | cut -f 2-2 -d " "
662130688
root@bozo/<1>local/etc/zabbix#
When I try to monitor the UserParameter from Zabbix it returns not supported. The agentd debug log shows:
017350:20050408:095003 In check_security()
017350:20050408:095003 Connection from [127.0.0.1]. Allowed servers [127.0.0.1]
017350:20050408:095003 Before read()
017350:20050408:095003 After read() 2 [16]
017350:20050408:095003 Got line:local[memtotal]
017350:20050408:095003 Sending back:ZBX_NOTSUPPORTED
I have searched the forum and with google but can't seem to find a solution. Any advice would be greatly appreciated
Cheers,
Rob
I have recently started using Zabbix 1.0 with the agentd running on FreeBSD 5.3. I want to add in some custom items to be monitored so I have decided to make use of the UserParameter feature. For a test I decided to start with something fairly simple, but I am unable to get it to work. The line in my zabbix_agent.conf is:
UserParameter=local[memtotal],sysctl hw.physmem | cut -f 2-2 -d " "
If I run this command from my shell it returns:
root@bozo/<1>local/etc/zabbix# sysctl hw.physmem | cut -f 2-2 -d " "
662130688
root@bozo/<1>local/etc/zabbix#
When I try to monitor the UserParameter from Zabbix it returns not supported. The agentd debug log shows:
017350:20050408:095003 In check_security()
017350:20050408:095003 Connection from [127.0.0.1]. Allowed servers [127.0.0.1]
017350:20050408:095003 Before read()
017350:20050408:095003 After read() 2 [16]
017350:20050408:095003 Got line:local[memtotal]
017350:20050408:095003 Sending back:ZBX_NOTSUPPORTED
I have searched the forum and with google but can't seem to find a solution. Any advice would be greatly appreciated

Cheers,
Rob
Comment