Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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){