Hi everyone,
I've been using zabbix and one of my purposes is to monitor the swap usage on unix servers. I know there are monitored items for Total Swap Space and Free Swap Space. However, the graphing feature doesn't support drawing formulas, so I'm still stuck.
What I've done (after looking around in this forum) was to add an UserParameter like:
Apparently it would work:
... but it doesn't. I added "Used Swap Space" as a monitoring item with data type=numeric (integer 64 bit), and, by looking at "Latest Values", this item shows up as '-'.
I have a feeling that the issue here could be the data type, since the UserParameter could be interpreted as a string instead of an integer just like the following.
What am I doing wrong? Is the problem really the data type? Is there a way to explicitly cast the numeric type onto the userparameter? Has anyone else done this sucessfully?
Cheers,
Pedro Venda.
I've been using zabbix and one of my purposes is to monitor the swap usage on unix servers. I know there are monitored items for Total Swap Space and Free Swap Space. However, the graphing feature doesn't support drawing formulas, so I'm still stuck.
What I've done (after looking around in this forum) was to add an UserParameter like:
Code:
UserParameter=system.swap.used,grep "Swap:" /proc/meminfo | cut -d ' ' -f 3
Code:
/usr/local/zabbix/bin/zabbix_agentd -t system.swap.used system.swap.used [t|129363968]
I have a feeling that the issue here could be the data type, since the UserParameter could be interpreted as a string instead of an integer just like the following.
Code:
system[uname] [t|Linux xyz.xyz.pt 2.4.21...] system.hostname [t|xyz.xyz.pt] system.uname [t|Linux xyz.xyz.pt]
Cheers,
Pedro Venda.


Comment