We need to know if varnish is caching hit ratio is as it should. So I wrote this simple bash plugin for nagios. ./check_hitratio.sh 96 90 OK – 98.67% hit_ratio|hit_ratio=98.67 96 = warning 90 = critical if no arg is […]
check how many files in a directory
Script to count how many files exists in directory and subdirectories based on Gerd Stammwitz original script. It is helpfull in some cases, just to find out how many files you have recursive in a directory
check_conntrack_unreplied
Our front end varnish servers expierence a lot of traffic and we currently must have a iptables NAT that routes from port 80 to port 81, where the varnish daemon listen to traffic. Doing this we end up using the […]
Nagios plugin to check folder
This plugin object is to check if a file has been inside certain folder for a period of time and alert if so. It’s still not fully developed so the variables are not passed as arguments but are inside the […]
Check how many users in a group
Nagios plugin to Check how many users in a group check_group.vbs This script verifies if the number of users in a particular group changes. The output in debug mode Example: c:Program Files (x86)Nc_netscript>cscript.exe //nologo C:PROGRA~2NC_Netscr iptcheck_group.vbs -g CN=Domain Admins,CN=Users -u […]
Setup check_vmware.pl on CentOS
Setup VMWare-CLI Perl Kit on CentOS 5.5 x64 (RedHat) Older Post with Simillar Information And overall info on how to monitor ESX IMPORTANT: For ESX(i) 6.x use https://github.com/op5/check_vmware_api First download my full package witch has all dependencies plus the vmware-vSphere-CLI Required […]
How to monitor OpenManage Server Administrator via nagios
Copy the Dell Open Manager to the Linux box using WinSCP # wget http://www.xoroz.com/files/OM_6.1.0_ManNode_A00.tar.gz # yum install libxml2 # tar -zxvf OM_6.1.0_ManNode_A00.tar Options NOTE: With ver 6.1 the “b” option changed to the “d” option x = express – Install […]