When monitoring ESX hosts using the check_vmware_esx plugin we started noticing a lot of “script time out” errors and the checks going to “Unkown” state even know the default timeout is 90s. For us the problem seems to be solved […]
mytop mysql
I would like to share the ultimate MySQL performance debugger tool. Written by my friend Nereu. The output is like this The code: #!/usr/bin/perl # # 2011-11-03 Nereu # 2011-11-05 Nereu – mytop # use DBI; # EDIT HERE FOR […]
nagios report
I have a custom script to generate monthly reports about Hosts and Services. The syntax is pretty simple: * /usr/local/nagios/libexec/report.pl –email=fel.h2o@gmail.com –type=monthlyservice –debug=0 /usr/local/nagios/libexec/report.pl –email=emailme@gmail.com –type=monthlyservice –debug=1 I usually add it to run once a month one for service and […]
Parse nagios services.cfg
When importing services.cfg from nagios2 to nagios3 with Centreon there are few parameters that must exist, one of them is service_description. In a project I had to import almost 4 thousand services and many did not have a service_description so […]
Parse nagios hosts.cfg
I am in a project to import over 600 servers from old nagios 2.0 to nagios 3.0 / Centreon. So the sysadmins here do not put the address field inside the hosts.cfg, so I either ping 500 servers copy and […]
Can't locate VMware/VmPerl.pm
Reinstall Perl in ESX Error: Can’t locate VMware/VmPerl.pm #vmare-cmd stop working along with all scripts that depend on VMware.pm module. For some reason my perl VMWare::Perl stoped working, so I reinstall perl 5.8.0 version from scratch first download it, then […]
Perl Open Relay Script
Need to check for open relay servers, here is the script I wrote in perl to auto check from a list of IPs or Hostnames. The hardest part was to grab the response from the server smtp->code() smtp-> message() STDOUT […]