adejoux / nmon2influxdb

Make NMON data dynamic with InfluxDB
GNU Affero General Public License v3.0
80 stars 29 forks source link

Configuration File Location /etc/nmon2influxdb #35

Closed awilson77584 closed 7 years ago

awilson77584 commented 7 years ago

Is is feasible to move the configuration file to the /etc directory? Perhaps in an /etc/nmon2influxdb directory?

adejoux commented 7 years ago

Hello,

I planned to add this feature with my reworking of the configuration. I would like to add a config sub command. It will permit me to manage encrypted password properly.

But I am not sure when I will code it :) So let's add first this quick to implement change :)

Thanks,

Alain

adejoux commented 7 years ago

Support for /etc/nmon2influxdb/nmon2influxdb.cfg added. It's first checking if it's present before checking home directory.

Closing.

Alain

awilson77584 commented 7 years ago

Hi Alain. I get an error message about failed authentication when using /etc/nmon2influxdb.cfg even with the import ssh-related values commented out. I executed nmon2influxdb import *.nmon in a local directory and get the authentication error. I did rm the zero byte ~/.nmon2influxdb.cfg in that test. Is it required?

When using a ~/.nmon2influxdb.cfg file, everything functions normally.

Another question, when we use debug = true, where are the log files stored?

Thanks!

adejoux commented 7 years ago

Hello,

It's really really strange. I couldn't reproduce the problem.

The debugging for now is not useful. I opened issue #37. I will improve it during this weekend and provide you a version allowing a better debug. To see what happens.

Thanks,

Alain

awilson77584 commented 7 years ago

Thanks!

adejoux commented 7 years ago

Hello,

I didn't finish my new debug mechanism but I improved the existing one. Could you test with version 2.1.1. in debug mode.

It will start with a section like that:

configuration: &{Debug:true Timezone:Europe/Paris InfluxdbUser:root InfluxdbPassword:root InfluxdbServer:localhost InfluxdbPort:8086 InfluxdbDatabase:nmon_reports GrafanaUser: GrafanaPassword: GrafanaURL: GrafanaAccess: GrafanaDatasource: HMCServer: HMCUser: HMCPassword: HMCDatabase:nmon2influxdbHMC HMCDataRetention: HMCManagedSystem: HMCManagedSystemOnly:false HMCSamples:0 ImportSkipDisks:false ImportAllCpus:false ImportBuildDashboard:false ImportForce:false ImportSkipMetrics:JFSINODE|TOP|PCPU ImportLogDatabase:nmon2influxdb_log ImportLogRetention:2d ImportDataRetention: ImportSSHUser:adejoux ImportSSHKey:/home/adejoux/.ssh/id_rsa DashboardWriteFile:false StatsLimit:0 StatsSort:mean StatsFilter: StatsFrom: StatsTo: StatsHost: Metric: ListFilter: ListHost: Inputs:[]}

It will allows us to see what is the differences between the two locations.

Thanks

Alain

adejoux commented 7 years ago

No news and not reproductible in my environment. Closing it for now.