Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

fritsspits

Reviews(1)
byfritsspits, January 11, 2016
1 of 1 people found this review helpful
check_linux_stats
Hi,

There's a small bug in v1.5 on line 62:

"if" should be "elsif" otherwise the -C (check_cpu) option will always show help.

Here's the diff:

--- /usr/lib/nagios/plugins/check_linux_stats.pl.org 2016-01-12 11:51:20.586228411 +0100
+++ /usr/lib/nagios/plugins/check_linux_stats.pl 2016-01-12 11:49:45.223925210 +0100
@@ -59,7 +59,7 @@
if($o_cpu){
check_cpu();
}
-if($o_context){
+elsif($o_context){
check_context_switch();
}
elsif($o_mem){
Owner's reply

I fixed this ugly bug..