Archive

Posts Tagged ‘Perl’

mytop mysql

April 27th, 2012 No comments

I would like to share the ultimate MySQL performance debugger tool.
Written by my friend Nereu.

The output is like this

Read more…

nagios report

March 28th, 2010 3 comments

I have a custom script to generate monthly reports about Hosts and Services.

The syntax is pretty simple: Read more…

Categories: HowTo, Linux, Nagios, plugins Tags: , , , , ,

Parse nagios services.cfg

August 20th, 2009 No comments

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 I wrote this perl script to parse the services.cfg and get the use info parse it and set as a service_description, it can also be used for other means, like changing just a specific service…
The script use a nice concept called Finite State Machine
version 6, generate new services.cfg creating service_description, download here
version 7, looks up for a specific service or host and changes itm download here

[ad]

Parse nagios hosts.cfg

August 7th, 2009 No comments

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 paste the IP, or I write a script that does it to me.
Here is theĀ  perl script to get IP address from hostnames
Downlaod

Categories: HowTo, Nagios, PerlScripts Tags: , , , , ,

Can't locate VMware/VmPerl.pm

June 2nd, 2009 No comments

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 do:
#sh Configure -Dusethreads -Duseithreads -Dusemultiplicity -Duselargefiles -Dotherlibdirs=/usr/lib/perl5/5.8.0
#make test
#make
#make install
i was Still getting an error like:

Read more…

Perl Open Relay Script

February 18th, 2009 1 comment

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.

Read more…

Categories: HowTo, PerlScripts, Security Tags: , , ,

Perl Nagios Plugin

January 21st, 2009 1 comment

Thanks to Ton Voon now it has become even easier to develop nagios plugins using Perl.
A family of perl modules to streamline writing Nagios Just Released 6 Jan 2009.

Read more…

Script to automatically get emails from pop3

November 20th, 2008 4 comments

Script to automaticly get emails from pop3 servers using getmail allows multiple downloads, auto search.

Read more…

Scripts VBS, Perl, Batch

September 4th, 2008 1 comment

.
.

Well you are looking for a script.
I let you browse to my personal collection of scripts, most of then were written by me.

Read more…