PDA

View Full Version : system.swap.size[,free] seems to be a bug


scotti
22-12-2005, 09:40
the version I use is 1.1beta4

The server running zabbix_server:

[root@monitor bin]# ./zabbix_get -p 30050 -s 192.168.17.153 -k system.swap.size[,free]
2146787328
[root@monitor bin]# ./zabbix_get -p 30050 -s 192.168.17.153 -k system.swap.size[,total]
2146656256
[root@monitor bin]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)


The client running zabbix_agentd:

[cax@localhost zabbix]$ free -b
total used free shared buffers cached
Mem: 2123771904 965378048 1158393856 0 683765760 191897600
-/+ buffers/cache: 89714688 2034057216
Swap: 2146787328 131072 2146656256
[cax@localhost zabbix]$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

scotti
23-12-2005, 04:03
[root@monitor bin]# ./zabbix_get -p 30050 -s 192.168.17.153 -k system.swap.size[,free]
2146787328

[root@monitor bin]# ./zabbix_get -p 30050 -s 192.168.17.153 -k system.swap.size[,total]
2146656256

the 'free' gets a total value, and the 'total' gets a free value.

Alexei
29-12-2005, 05:19
Here is output from my test system. Everything works fine. Send me output of uname -a please.

zabbix@ubuntu:~/zabbix/bin$ uname -a
Linux ubuntu 2.6.12-9-amd64-generic #1 Mon Oct 10 13:27:39 BST 2005 x86_64 GNU/Linux
zabbix@ubuntu:~/zabbix/bin$ ./zabbix_get -s 127.0.0.1 -p 10050 -k system.swap.size[all,free]
1000071168
zabbix@ubuntu:~/zabbix/bin$ ./zabbix_get -s 127.0.0.1 -p 10050 -k system.swap.size[all,total]
1011699712

scotti
29-12-2005, 09:11
on the zabbix_server:

[cax@monitor mysoft]$ /home/zabbix/bin/zabbix_get -p 30050 -s 192.168.17.153 -k system.swap.size[all,free] 2146787328
[cax@monitor mysoft]$ /home/zabbix/bin/zabbix_get -p 30050 -s 192.168.17.153 -k system.swap.size[all,total]
2146656256
[cax@monitor mysoft]$ uname -a
Linux monitor 2.6.13 #3 SMP Sat Sep 3 00:57:10 CST 2005 i686 i686 i386 GNU/Linux


on 192.168.17.153:

[cax@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.13 #3 SMP Sat Sep 3 00:57:10 CST 2005 i686 i686 i386 GNU/Linux

Alexei
29-12-2005, 09:52
Is there any chance to get a remote access to the box? Our kernel versions are almost identical, very strange...