KangaCoders / newrelic_openvpn_agent

New Relic plugin to monitor OpenVPN
MIT License
12 stars 1 forks source link

Getting newrelic_openvpn_agent working on OpenVpn Access server #5

Open beholmes2004 opened 7 years ago

beholmes2004 commented 7 years ago

I'm unable to get the agent working on OpenVpn Access server.

here is the error i'm getting: [2017-03-22 18:41:46 UTC] Error occurred in poll cycle: divided by 0 [2017-03-22 18:41:46 UTC] Gathered 0 statistics [2017-03-22 18:42:46 UTC] Error occurred in poll cycle: divided by 0 [2017-03-22 18:42:46 UTC] Gathered 0 statistics [2017-03-22 18:43:46 UTC] Error occurred in poll cycle: divided by 0 [2017-03-22 18:43:46 UTC] Gathered 0 statistics ^C[2017-03-22 18:44:32 UTC] Shutting down... [2017-03-22 18:44:32 UTC] Shutdown complete openvpnas@usw2openvpndl01:/etc/newrelic$ newrelic_openvpn_agent run [2017-03-22 19:54:08 UTC] Agent OpenVPN Agent is at version 0.0.1 [2017-03-22 19:54:34 UTC] Error occurred in poll cycle: divided by 0 [2017-03-22 19:54:34 UTC] Gathered 0 statistics

Few other items to note:

1) hopefully i got Ruby and RubyGem installed correctly. I have little knowledge with Linux and verifying packages have been installed correctly.

2) The path to the log files refers to openvpn-status.log in the etc/openvpn directory. Access Server does not use that same setup. So I pointed it to what I think is the correct path. /var/log/openvpnas.log. When I start the polling I get the errors as shown above.

3) We are migrating all of our monitoring over to NewRelic, so it is also a new environment to me.

Thanks Ben

Thanks Ben