Posts Tagged ‘hostname’

change linux hostname

January 23rd, 2012 No comments

change linux RedHat / CentOS hostname

vim /etc/sysconfig/network

vim /etc/hosts servername

Read more…

Categories: HowTo, Linux Tags: , ,

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

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