Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
fritsspits
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){
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..