TOP LEVEL CATEGORIES
EXPLORE
Description:
Plugin to check linux system performance (cpu, mem, load, disk usage, disk io, network usage, open files and processes). A perl plugin using Sys::Statistics::Linux
Thanks to Jonny Schulz, the author of Sys::Statistics::Linux, for his great work (http://search.cpan.org/~bloonix/) !
v1.2 Changelog : – Add Paging statistics – Add swapused and active memory on perfparse statistics – Remove unused -H option (mthuijs) v1.3 Changelog : – Add uptime check, warning threshold in minutes (csterley) – Replace /usr/local/nagios/libexec with FindBin (eulen) – Fix reports network traffic in bytes (dbsanders) v1.4 Changelog : – Illegal division by zero (helium_rday, RedFish) – Get the cache out of the used memory (waterdeep, dbsanders) – Removed unused $return_str on check io disk (RedFish) – Add steal cpu statistics v1.5 Changelog : – Add paging statistics to check for major faults (kevin@candidsource.com) – bug, when using unit=MB for disk usage, the perf data writtens only KB (john12) – Bug, multiple pipe on IO perfcournter (ledistordu) – Add CPU context switch statistics
Current Version
1.5
Last Release Date
2015-11-27
Compatible With
Owner
Woody
License
GPL
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
check_linux_stats
nrpe.cfg.sample
I fixed this ugly bug..
Hello, thanks for your comment, Ussue fixed on v1.5
Hello, It's not an issue, but the plugin gets the cache out of the used memory and shows the *real* physical memory usage. 47% MemUsed + 52% MemCached = 99% Regards,
Hello, issue fixed,
Yes I still maitain my plugin !
Hello, thanks for your comment, I fixed this two issues on v1.4 !
Hello, I fixed this issue on v1.4,
Hi, You can already check a process using the -T parameter. Example : ./check_linux_stats.pl -T -w 200000000 -c 300000000 -p /var/run/vmtoolsd.pid Returns virtual mem & cpu information : PROCESSES OK |vmtoolsd_vsize=39239680;200000000;300000000 vmtoolsd_nswap=0 vmtoolsd_cnswap=0 vmtoolsd_cpu=1
I fixed it, The plugin can report a notify if the boot time is lower than a given warning threshold in minutes. ./check_linux_stats.pl -U -w 12 WARNING : up 0 days, 00:11:23 |uptime=683
Hi, This format is the same as the default format that is used by the command 'uptime', 'w', or 'cat /proc/loadavg' ./check_linux_stats.pl -L -w wload1,wload5,wload15 -c cload,cload5,cload15
Hi, Did you try nrpe (or nsca) : # command.cfg on nagios server # $ARG1$ = check_cpu_usage,check_mem_usage,etc.. define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } # nrpe.cfg on the remote server command[check_cpu_usage]=/usr/local/nagios/libexec/check_linux_stats.pl -C -w 90 -c 100 -s 5 command[check_load_average]=/usr/local/nagios/libexec/check_linux_stats.pl -L -w 10,8,5 -c 20,18,15 command[check_memory_usage]=/usr/local/nagios/libexec/check_linux_stats.pl -M -w 99,50 -c 100,50 command[check_disk_usage]=/usr/local/nagios/libexec/check_linux_stats.pl -D -w 10 -c 5 -p /,/usr,/tmp,/var command[check_disk_io]=/usr/local/nagios/libexec/check_linux_stats.pl -I -w 100,70 -c 150,100 -p sda1,sda2,sda4 command[check_network_usage]=/usr/local/nagios/libexec/check_linux_stats.pl -N -w 30000 -c 45000 -p eth0 command[check_open_files]=/usr/local/nagios/libexec/check_linux_stats.pl -F -w 10000,150000 -c 15000,250000 command[check_socket_usage]=/usr/local/nagios/libexec/check_linux_stats.pl -S -w 1000 -c 2000 command[check_number_procs]=/usr/local/nagios/libexec/check_linux_stats.pl -P -w 1000 -c 2000
Hi, you mean the plugin returns perfdata but you cannot getting graph in nagios ?
Right, you must install Sys-Statistics-Linux perl package. See on CPAN : http://search.cpan.org/~bloonix/Sys-Statistics-Linux/
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.