Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disk invalid number #113

Closed
gavinzhou opened this issue Aug 14, 2015 · 8 comments
Closed

disk invalid number #113

gavinzhou opened this issue Aug 14, 2015 · 8 comments

Comments

@gavinzhou
Copy link

I get this log

2015/08/15 00:39:45 Error in plugins: unable to parse 'disk_total,fstype=rootfs,host=influxdbSrv03,path=/ value=10432581632i': invalid number
2015/08/15 00:39:55 Error in plugins: unable to parse 'disk_total,fstype=rootfs,host=influxdbSrv03,path=/ value=10432581632i': invalid number

# Read metrics about disk usage by mount point
[disk]

I use telegraf 0.1.5

@sparrc
Copy link
Contributor

sparrc commented Aug 14, 2015

This is a compatibility issue with InfluxDB <=0.9.2, I should have made this more clear in the README, but:

InfluxDB <= 0.9.2 requires Telegraf <= 0.1.4
InfluxDB > 0.9.2 requires Telegraf >= 0.1.5

Apologies for the confusion, I'm going to update the README now and keep links to version 0.1.4

sparrc added a commit that referenced this issue Aug 14, 2015
sparrc added a commit that referenced this issue Aug 14, 2015
sparrc added a commit that referenced this issue Aug 14, 2015
@gavinzhou
Copy link
Author

Thank you

sparrc added a commit that referenced this issue Aug 14, 2015
sparrc added a commit that referenced this issue Aug 14, 2015
sparrc added a commit that referenced this issue Aug 14, 2015
sparrc added a commit that referenced this issue Aug 14, 2015
@gavinzhou gavinzhou reopened this Aug 17, 2015
@gavinzhou
Copy link
Author

I update influxdb to 0.9.3

[root@influxdbSrv01 ~]# influx
Connected to http://localhost:8086 version 0.9.2
InfluxDB shell 0.9.3-nightly-1548f62

but I get same error messages

2015/08/17 16:20:18 Error in plugins: unable to parse 'disk_total,fstype=rootfs,host=influxdbSrv01,path=/ value=10432581632i': invalid number
[root@influxdbSrv01 ~]# /opt/telegraf/telegraf -version
Telegraf - Version 0.1.5

@gavinzhou
Copy link
Author

I test my config no problem

[root@influxdbSrv01 ~]# /opt/telegraf/telegraf -config /etc/opt/telegraf/telegraf.conf -test -filter disk
plugin [disk] is enabled (filter options)
* Plugin: disk
> [fstype="rootfs" path="/"] disk_total value=10432581632
> [fstype="rootfs" path="/"] disk_free value=4376494080
> [fstype="rootfs" path="/"] disk_used value=6056087552
> [fstype="rootfs" path="/"] disk_inodes_total value=655360
> [fstype="rootfs" path="/"] disk_inodes_free value=604732
> [fstype="rootfs" path="/"] disk_inodes_used value=50628
> [fstype="proc" path="/proc"] disk_total value=0
> [fstype="proc" path="/proc"] disk_free value=0
> [fstype="proc" path="/proc"] disk_used value=0
> [fstype="proc" path="/proc"] disk_inodes_total value=0
> [fstype="proc" path="/proc"] disk_inodes_free value=0
> [fstype="proc" path="/proc"] disk_inodes_used value=0
> [fstype="sysfs" path="/sys"] disk_total value=0
> [fstype="sysfs" path="/sys"] disk_free value=0
> [fstype="sysfs" path="/sys"] disk_used value=0
> [fstype="sysfs" path="/sys"] disk_inodes_total value=0
> [fstype="sysfs" path="/sys"] disk_inodes_free value=0
> [fstype="sysfs" path="/sys"] disk_inodes_used value=0
> [fstype="devtmpfs" path="/dev"] disk_total value=1041399808
> [fstype="devtmpfs" path="/dev"] disk_free value=1041338368
> [fstype="devtmpfs" path="/dev"] disk_used value=61440
> [fstype="devtmpfs" path="/dev"] disk_inodes_total value=254248
> [fstype="devtmpfs" path="/dev"] disk_inodes_free value=253808
> [fstype="devtmpfs" path="/dev"] disk_inodes_used value=440
> [fstype="devpts" path="/dev/pts"] disk_total value=0
> [fstype="devpts" path="/dev/pts"] disk_free value=0
> [fstype="devpts" path="/dev/pts"] disk_used value=0
> [fstype="devpts" path="/dev/pts"] disk_inodes_total value=0
> [fstype="devpts" path="/dev/pts"] disk_inodes_free value=0
> [fstype="devpts" path="/dev/pts"] disk_inodes_used value=0
> [fstype="tmpfs" path="/dev/shm"] disk_total value=1050816512
> [fstype="tmpfs" path="/dev/shm"] disk_free value=1050816512
> [fstype="tmpfs" path="/dev/shm"] disk_used value=0
> [fstype="tmpfs" path="/dev/shm"] disk_inodes_total value=256547
> [fstype="tmpfs" path="/dev/shm"] disk_inodes_free value=256546
> [fstype="tmpfs" path="/dev/shm"] disk_inodes_used value=1
> [fstype="ext4" path="/"] disk_total value=10432581632
> [fstype="ext4" path="/"] disk_free value=4376494080
> [fstype="ext4" path="/"] disk_used value=6056087552
> [fstype="ext4" path="/"] disk_inodes_total value=655360
> [fstype="ext4" path="/"] disk_inodes_free value=604732
> [fstype="ext4" path="/"] disk_inodes_used value=50628
> [fstype="binfmt_misc" path="/proc/sys/fs/binfmt_misc"] disk_total value=0
> [fstype="binfmt_misc" path="/proc/sys/fs/binfmt_misc"] disk_free value=0
> [fstype="binfmt_misc" path="/proc/sys/fs/binfmt_misc"] disk_used value=0
> [fstype="binfmt_misc" path="/proc/sys/fs/binfmt_misc"] disk_inodes_total value=0
> [fstype="binfmt_misc" path="/proc/sys/fs/binfmt_misc"] disk_inodes_free value=0
> [fstype="binfmt_misc" path="/proc/sys/fs/binfmt_misc"] disk_inodes_used value=0
> [fstype="xfs" path="/opt"] disk_total value=321965260800
> [fstype="xfs" path="/opt"] disk_free value=321117536256
> [fstype="xfs" path="/opt"] disk_used value=847724544
> [fstype="xfs" path="/opt"] disk_inodes_total value=314572800
> [fstype="xfs" path="/opt"] disk_inodes_free value=314570923
> [fstype="xfs" path="/opt"] disk_inodes_used value=1877
[root@influxdbSrv01 ~]# grep "disk" /etc/opt/telegraf/telegraf.conf
# Read metrics about disk usage by mount point
[disk]

@sparrc
Copy link
Contributor

sparrc commented Aug 17, 2015

@gavinzhou I believe the problem is that your DB is still running 0.9.2 even though your shell is a 0.9.3 nightly, from the first line of the banner:

Connected to http://localhost:8086 version 0.9.2
InfluxDB shell 0.9.3-nightly-1548f62

@beckettsean @gunnaraasen can you confirm?

@beckettsean
Copy link
Contributor

@gavinzhou I can confirm @sparrc is correct. You are running the 0.9.2 version of the database, using the 0.9.3-nightly version of the CLI to connect.

Please upgrade your running database process to a 0.9.3 nightly if you want to use telegraf 0.1.5, or stay on 0.9.2 and run telegraf 0.1.4.

@beckettsean
Copy link
Contributor

For instance, running the most recent nightly as both the shell and the daemon, you can see that my version outputs match:

root@sean-test:/opt/influxdb# ./influx
Connected to http://localhost:8086 version 0.9.3-nightly-1548f62
InfluxDB shell 0.9.3-nightly-1548f62

@gavinzhou
Copy link
Author

I miss update my influxdb
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants