Replies: 1 comment
|
Sorry, it looks like nobody picked up this question. Questions about the library aside, you've defined two classes with the same name, which won't work in Python. The second definition will overwrite the first one, so you've got no way to refer to your Resource class. As for the nagios library usage, I'm not sure what you're trying to accomplish. You wouldn't normally be checking against static integers like that.... the idea behind a plugin is that you should be able to set ranges for values to be in, compare those ranges to a metric which you obtain, and return a result after comparing the two. If all you want to do is return results based on static values you don't need nagiosplugin .. you could just use an Have you looked at the tutorials? The check_load example is about as simple as it gets, and you should be able to adapt that to just about any simple case. If that doesn't seem to fit with your use case, then it would help if you explained what it is you're trying to write a check for, and what's different about it that makes the structure of the examples not work for you. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi
after multiple reading of the tutorial I still dont understand the logic :/
Am I on the right way? :)
All reactions