I was trying to monitor my router temperatures but I keep getting an error with my "system.run[comand]".
I'm using a RT-AC86U Asus router and I can check its CPU and wireless chips temperatures while at the routers command line without a problem.
CPU, Radio 1 and Radio 2:
When I test with "system.run[]" key, I receive a command and zabbix error:
I tried quote marks which gave "awk" command error:
Also tried spaced quotes that, this time, gives zabbix wrong item key format:
Then I tried testing from my server side with "zabbix_get". But it also gave me a strange error
At the server side, adding quotes gave me a different error, a "wl" error:
And adding space to those quote marks, gives me the same zabbix not supported error.
So, it seems to me that the issue is related to the agent sintax, but I don't see my error.
Have you guys seens this before?
I'm using a RT-AC86U Asus router and I can check its CPU and wireless chips temperatures while at the routers command line without a problem.
CPU, Radio 1 and Radio 2:
Code:
# cat /sys/devices/virtual/thermal/thermal_zone0/temp
73364
# wl -i eth5 phy_tempsense | awk '{ print $1/2+20 }'
55.5
# wl -i eth6 phy_tempsense | awk '{ print $1/2+20 }'
58.5
Code:
# zabbix_agentd -t [B]system.run[wl -i eth6 phy_tempsense | awk '{print $1/2+20}'][/B]
awk: cmd. line:1: Unexpected token
zabbix_agentd [22129]: invalid option -- i
Code:
# zabbix_agentd -t [B]"system.run[wl -i eth6 phy_tempsense | awk '{print $1/2+20}']"[/B]
zabbix_agentd [23284]: Warning: Executing command 'wl -i eth6 phy_tempsense | awk '{print /2+20}''
system.run[wl -i eth6 phy_tempsense | awk '{print /2+20}'] [t|awk: cmd. line:1: Unexpected end of string]
Code:
# zabbix_agentd -t [B]" system.run[wl -i eth6 phy_tempsense | awk '{print $1/2+20}'] "[/B]
system.run[wl -i eth6 phy_tempsense | awk '{print /2+20}'] [m|ZBX_NOTSUPPORTED] [Invalid item key format.]
Code:
$ zabbix_get -s <hostname> -p 10050 -k [B]system.run[wl -i eth5 phy_tempsense | awk '{print $1}'][/B]
awk: line 1: syntax error at or near ]
zabbix_get [7578]: invalid option -- i
Code:
$ zabbix_get -s <hostname> -p 10050 -k [B]"system.run[wl -i eth5 phy_tempsense | awk '{print $1}']"[/B]
wl: wl driver adapter not found
So, it seems to me that the issue is related to the agent sintax, but I don't see my error.
Have you guys seens this before?


Comment