Advertisement
Guest User

Nems 1.2

a guest
May 8th, 2017
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.59 KB | None | 0 0
  1. sudo nems-restore /home/pi/nems-scripts/backup.nems
  2. Let me be VERY clear here...
  3. This will WIPE OUT the configuration on this NEMS deployment.
  4. The configuration will be replaced with the one stored in your NEMS backup.
  5.  
  6. Please do this on a fresh deployment of NEMS to prevent data loss.
  7. I am not responsible for this script breaking everything you have done :)
  8. Backup, backup, backup.
  9.  
  10. Are you sure you want to attempt restore? [y/N] y
  11. Backup file is from NEMS 1.0. Proceeding.
  12. Reconciling 9 files...
  13. Consolidation complete.
  14.  
  15. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  16. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  17.  
  18. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  19. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  20.  
  21. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  22. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  23.  
  24. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  25. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  26.  
  27. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  28. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  29.  
  30. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  31. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  32.  
  33. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  34. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  35.  
  36. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  37. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  38.  
  39. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  40. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  41.  
  42. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  43. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  44.  
  45. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  46. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  47.  
  48. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  49. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  50.  
  51. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  52. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  53.  
  54. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  55. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  56.  
  57. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  58. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  59.  
  60. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  61. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  62.  
  63. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  64. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  65.  
  66. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  67. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  68.  
  69. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  70. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  71.  
  72. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  73. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  74.  
  75. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  76. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  77.  
  78. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  79. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  80.  
  81. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  82. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  83.  
  84. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  85. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  86.  
  87. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  88. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  89.  
  90. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  91. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  92.  
  93. [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ]
  94. [ Copyright (c) 2006 - 2013 Sunrise Communications AG, Zurich, Switzerland  ]
  95.  
  96. [INFO]  Started executing /var/www/nconf/bin/add_items_from_nagios.pl
  97. DBI connect('database=nconf;host=localhost','nconf',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "Datei oder Verzeichnis nicht gefunden") at /var/www/nconf/bin/lib/NConf/DB.pm line 81.
  98. Upgrading to newer version of NEMS: Please edit /etc/nagios3/resource.cfg to configure your settings.
  99. NagVis failed. Your NagVis data is corrupt.
  100. Job for mysql.service failed because the control process exited with error code.
  101. See "systemctl status mysql.service" and "journalctl -xe" for details.
  102. Job for nagios3.service failed because the control process exited with error code.
  103. See "systemctl status nagios3.service" and "journalctl -xe" for details.
  104.  
  105. I hope everything worked okay for you.
  106. Please let me know if you had any trouble.
  107.  
  108. PS - I saved a backup for you of the old config. /root/backup.nems
  109. ... just in case
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement