Build precise queries to find exactly what you need
Press ESC to close
@natxo
Favorites2
Views2
Projects6
hi, please correct your info. I just wrote a very simple perl script that checks the power status of vms and the results are quite telling. $ time ./check_vmware_status -H 192.168.0.115 -n centos1 OK: centos1 is powered on. real 0m1.268s $ time perl simpleperlscript --config ~/.visdk/visdkrc_esx_home --vmname centos1 centos1 is poweredOn real 0m0.384s Which is not at all surprising because the perl sdk is really fast. This is the code: https://gist.github.com/anonymous/1c71ce972012b16c24a14bdc7b06eee8 This vmware api will always be faster than ssh commands. Plus you do not need to mess with ssh keys or open firewall ports. Installing the vmware perl sdk is a matter of copying two files in fact (first download the sdk from the vmware site (https://www.vmware.com/support/pubs/sdk_pubs.html), untar and copy https://www.vmware.com/support/pubs/sdk_pubs.html to /usr/local/lib/perl/{perl_version} This step only happens on the nagios host and your workstation where you write the scripts, so much easier.
Reviewed 9 years ago
I only changed this: $ diff check_smb_file.pl* 541a542 > next if $filename eq "." or $filename eq ".."; to exclude the local dir and the upper dir because it would report critical every time otherwise (yes, the modified timestamps on those are older, but I do not need to check those ;-) Thanks
Reviewed 12 years ago
diff check_mailq /tmp/test 16,17c16 and line usage"
I needed to monitor some firewall rules from Windows hosts and missed the functionality offered by the official check_tcp plugin. This one works great for Windows.
Reviewed 13 years ago