1.1.0 version released

New version released adding support for remote file import through ssh.

Added import of remote nmon files

It’s possible to import one remote file or all files in one remote directory.

sftp is used to access remote files.

It’s possible to import file by using one of this ways:

nmon2influxdb import [user]@[host]:/[remote directory]/[nmon file]
nmon2influxdb import [user]@[host]:/[remote directory]
nmon2influxdb import [host]:/[remote directory]/[nmon file]
nmon2influxdb import [host]:/[remote directory]

new configuration parameters

import_ssh_user = "batchuser"
import_ssh_key = "/home/user/.ssh/id_rsa"

If no user is specified, the user specified in the new parameter import_ssh_user is used. By default, it value is the current user name.

The default ssh key used is id_rsa, it can be overriden by the new parameter import_ssh_key.

Its also supporting ssh-agent by default.

Example

nmon2influxdb import adxlpar1:/log/nmon
###############################
File /log/nmon/lpar02_151104_1204.nmon imported : 316320 points !
file not changed since last import: /log/nmon/lpar01_151104_1116.nmon
file not changed since last import: /log/nmon/lpar01_151104_1200.nmon
file not changed since last import: /log/nmon/lpar02_110415.nmon

Fixes

  • [improvement] checksum work on end of file only
  • [fix] fixed bug in resume import function