device42 / device42-nagios-health-check Goto Github PK
View Code? Open in Web Editor NEWDevice42 Health Checks in Nagios
License: Apache License 2.0
Device42 Health Checks in Nagios
License: Apache License 2.0
Nagios::Plugin appears to be have been replaced by Monitoring:Plugin.
http://search.cpan.org/~nierlein/Monitoring-Plugin-0.39/lib/Monitoring/Plugin.pm
Please can you review an update accordingly.
The swapfree and memfree codes is diffrent,but their the logic of the judgement is the same,and the result should be same
I modify follows:
if ($plugin->opts->item eq 'memfree') {
# -- add 100 - make the free become avaliable
$data_val = 100 - getPercentage('memtotal',$data_val);
}
if($plugin->opts->item eq 'memfree') {
$plugin->set_thresholds(warning => (100 - $plugin->opts->warning), critical => (100 - $plugin->opts->critical));
# -- add 2 lines make the display value and actual match
$output_val = 100-$data_val;
$output_text = $plugin->opts->item . " = " . $output_val;
} else {
$plugin->set_thresholds(warning => $plugin->opts->warning, critical => $plugin->opts->critical);
}
Great plugin, thank you.
It would be greater if you can add performance data to this Nagios Plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.