[Israel.pm] Renaming folder using perl

Berler Chanan bc.other at gmail.com
Tue May 5 08:48:20 PDT 2009

What about the new dlls and new plugins, if you scp only the configuration
it is not enough I was told.
But the idea to create a backup copy sure can be enough.
PS: does anyone knows what will happen to the script if nagios agent will be
down ? will it stop or continue ?

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
Of sawyer x
Sent: Tuesday, May 05, 2009 4:48 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Renaming folder using perl


> My Idea:
> I need to build a nagios plugin / agent manager.
> Currently I build a plugin manager that uses LWP to download the plugin,
> update the nrpe.cfg / NSC.ini
> file and restart the Agent Service. This command like all others is being
> run from plugins folder (NSClient++ folder if I must be correct);
> Until here there is no need to change any of the folders names.
> Now I was asked to build an agent manager, that will download (again with
> LWP) the agent, zipped.
> Then moves / rename the nagios / NSClient++ folder to backup_<scalar
> localtime>
> Unzip the new agent into the new folder (which has the same name), and
> restart the nagios agent service.

What I do is just copy the files I want to backup to a different
folder, scp the new configuration file and reload Nagios. It's simple
and it works.
Perl mailing list
Perl at perl.org.il
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.238 / Virus Database: 270.12.4/2081 - Release Date: 05/05/09

More information about the Perl mailing list