Hi everybody !
Today I create my owns bash scripts to monitoring Linux.
When I put :
in my zabbix_agentd.conf, it works
But I prefer create an item like
to simplify the deployment (the good word ...?)
Exactly the same code, but it doesn't work on the server :
Anyone can help me ?
PS : I think Zabbix doesn't like my quotes or something else...
Same think without spaces between "|"
PS 2 : Just a stupid error, my server is the only "host" with RemoteCommand not configured...
Sorry...
Today I create my owns bash scripts to monitoring Linux.
When I put :
Code:
UserParameter=net.interfacesoff,((ifconfig -a |grep Link )| egrep -v -e "$(ifconfig | grep Link | cut -d' ' -f1| tr '\n' '|' | sed 's/.\{1\}$//g')") | cut -d' ' -f1 | tr '\n' ' '
But I prefer create an item like
Code:
system.run[((ifconfig -a |grep Link )| egrep -v -e \"$(ifconfig | grep Link | cut -d' ' -f1| tr '\n' '|' | sed 's/.\{1\}$//g')\") | cut -d' ' -f1 | tr '\n' ' ']
Exactly the same code, but it doesn't work on the server :
Code:
27820:20100415:163037.505 Item [Zabbix Server:system.run[((ifconfig -a |grep Link )| egrep -v -e \"$(ifconfig | grep Link | cut -d' ' -f1| tr '\n' '|' | sed 's/.\{1\}$//g')\") | cut -d' ' -f1 | tr '\n' ' ']] error: Not supported by Zabbix Agent
PS : I think Zabbix doesn't like my quotes or something else...
Same think without spaces between "|"
PS 2 : Just a stupid error, my server is the only "host" with RemoteCommand not configured...
Sorry...