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 ? Thanks Chanan
-----Original Message----- From: [email protected] [mailto:[email protected]] 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 Hi. > 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 then > 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 [email protected] http://mail.perl.org.il/mailman/listinfo/perl 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 08:05:00 _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
