Skip to content

Conversation

@gonoph
Copy link

@gonoph gonoph commented Sep 14, 2018

It doesn't look like you've updated the project in a few years, but I figured I'd see if you wanted to merge this PR.

I needed a better way to automate the installing of the program on new personal machines, so I started out writing a systemd services file, which then led to writing an rpm .spec file, and finally lead me to researching why the network stats weren't working on my system.

  • I traced the network stats to the usage of netcat - which isn't installed on most of my compute nodes, therefore I rewrote those sections to use python sockets.
  • That lead to me wondering why certain errors weren't appearing, so I captured some of the exceptions and fed them to an array which is printed at the bottom of the banner if --warn is enabled.
  • Then I finished up the .spec and .service files.

Anyways, I hope you find this PR useful and decide to merge it!

Thanks!

1. removed references to netcat executable
2. implemented stats callback code as python sockets
3. added some exceptions to warning log
4. if warnings enabled, print out the warning log of caught exceptions
`/etc/issue` isn't a good way to obtain release information as [outlined in this blog][1].

Therefore, I'm reading it from `/etc/os-release` which appears to be in:

* CentOs
* Fedora
* RHEL
* Ubuntu

If that fails, then it continues to read from `/etc/issue`

[1]: https://gerardnico.com/linux/version
* Was missing the profile.d in the build.
* changed the MemoryHigh to MemoryLimit as systemd doesn't understand it on RHEL 7.5
Added systemd spec file
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

Successfully merging this pull request may close these issues.

1 participant