Comments (3)
This seems to be due to the fact that the Runtime object is using a StringIO object for the logging StreamHandler, which is attached to an Output object, which is handling both logging output and result output. Instead of building the output as each event happens, the Output object assembles it all at once at the end, and it puts result output ahead of all the logging.
I can see how this has some utility, despite being a bit counterintuitive. For one thing, it keeps a plugin running in verbose mode from violating the Nagios plugin API, so monitoring that is calling the plugin will still work.
I'm inclined to label this wontfix
because of the API issue, but I'm open to discussion about it if you're still interested in seeing this change, @sbraz. Feel free to re-open the issue.
from nagiosplugin.
I'd almost forgotten I'd opened this issue. I can live with the current behaviour, it's just slightly strange :)
from nagiosplugin.
Yeah, a few things got a bit lost when I took over the project. I'm gradually whittling down these old issues. :)
from nagiosplugin.
Related Issues (20)
- Wrong argument order for (all ?) super(*,*) calls HOT 2
- Sample haproxy log, LICENSE, CONTRIBUTORS, etc not installed by package
- Move example code out of the nagiosplugin package into its own path
- Support of pytest capsys HOT 9
- nagiosplugin.state.Warn vs. nagiosplugin.state.Warning (considering nagiosplugin.state.Critical) HOT 1
- Support Nagios passive checks
- Default output only shows one failed metric HOT 4
- Best practice for "missing" metrics? HOT 3
- Support for extra-opts HOT 4
- Support for extra-opts HOT 1
- Multiple calls of a guarded() function retain output HOT 1
- Runtime singleton should be refactored out
- Duplicated text in docstring in state.py
- class Resource should be reimplemented as an actual Abstract Base Class
- Class Context should be reimplemented as an actual Abstract Base Class
- Class Summary could be reimplemented as an actual Abstract Base Class
- Performance class should be a dataclass HOT 1
- Accessing results.by_state creates empty list and corrupts results.most_significant_state HOT 1
- test_examples.py:2: DeprecationWarning: pkg_resources is deprecated as an API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagiosplugin.