Closed opeyrega closed 6 years ago
Hello,
Sorry for the late answer. I was in vacation with poor internet connection.
I couldn't reproduce the problem with the sample linux file I have in the repository.
Is it possible for you to attach your nmon file?
Regards,
Alain
Hello,
NAME: nmon2influxdb - upload NMON stats to InfluxDB database
USAGE: nmon2influxdb [global options] command [command options] [arguments...]
VERSION: 0.9.0
Generating default configuration file : /root/.nmon2influxdb.cfg ################################################### File /root/test.nmon imported : 512046 points !
--> It's OK
--> so I delete configuration file and db in influxdb.
rm /root/.nmon2influxdb.cfg rm: remove regular file `/root/.nmon2influxdb.cfg'? y
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring. Connected to http://localhost:8086 version 0.12.1 InfluxDB shell 0.12.1
show databases name: databases
name _internal TEST nmon2influxdb_log
DROP DATABASE TEST DROP DATABASE nmon2influxdb_log
2017/08/28 10:18:01 Generating default configuration file : /root/.nmon2influxdb.cfg 2017/08/28 10:18:01 Using configuration file /root/.nmon2influxdb.cfg NAME: nmon2influxdb - upload NMON stats to InfluxDB database
USAGE: nmon2influxdb [global options] command [command options] [arguments...]
VERSION: 2.1.3
2017/08/28 10:18:33 Using configuration file /root/.nmon2influxdb.cfg 2017/08/28 10:18:33 Creating InfluxDB database TEST panic: runtime error: index out of range
goroutine 1 [running]: panic(0x7faac0, 0xc420012100) /usr/local/go/src/runtime/panic.go:500 +0x1a1 github.com/adejoux/influxdbclient.(InfluxDB).ReadLastPoint(0xc420210240, 0x87c7ee, 0x5, 0xc4201745d0, 0x87e3b7, 0x9, 0x0, 0x1, 0x0, 0x0, ...) /home/adejoux/go/src/github.com/adejoux/influxdbclient/api.go:285 +0x2b7 github.com/adejoux/nmon2influxdb/nmon.Import(0xc420097cc0) /home/adejoux/go/src/github.com/adejoux/nmon2influxdb/nmon/import.go:83 +0x53e github.com/codegangsta/cli.HandleAction(0x7d7f00, 0x8ce580, 0xc420097cc0, 0xc420018f00, 0x0) /home/adejoux/go/src/github.com/codegangsta/cli/app.go:487 +0x7c github.com/codegangsta/cli.Command.Run(0x87cc7c, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8817df, 0x11, 0x0, ...) /home/adejoux/go/src/github.com/codegangsta/cli/command.go:207 +0xb96 github.com/codegangsta/cli.(App).Run(0xc420091380, 0xc42000c0a0, 0x5, 0x5, 0x0, 0x0) /home/adejoux/go/src/github.com/codegangsta/cli/app.go:250 +0x812 main.main() /home/adejoux/go/src/github.com/adejoux/nmon2influxdb/main.go:301 +0x2160
Hello,
Thanks for your input. it's really clear. I imported the file with my latest version and it seems to work.
╭─adejoux@adejoux-VirtualBox ~/devel/go/src/github.com/adejoux/go-ldap-manager ‹master*› ╰─$ nmon2influxdb import ~/Downloads/test.nmon 2017/08/29 15:39:41 Using configuration file /home/adejoux/.nmon2influxdb.cfg 2017/08/29 15:39:43 NMON file separator: , ##################################################################################### File /home/adejoux/Downloads/test.nmon imported : 427383 points !
Can you try with this binary?
Regards,
Alain
Hi,
Thanks for your reply, I think my mistake was on old influxdb version. I take your last binary with last version of influxdb and all works perfectly.
Thanks for all your work
Regards,
Olivier
Great news. Thanks :)
Hello,
when i try 0.9 version all works perfectly with nmon linux file. But with latest version, i have this kind of error :
` No database were created
Regards