{"action":"created","issue":{"url":"https://api.github.com/repos/Cacti/plugin_routerconfigs/issues/34","repository_url":"https://api.github.com/repos/Cacti/plugin_routerconfigs","labels_url":"https://api.github.com/repos/Cacti/plugin_routerconfigs/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/Cacti/plugin_routerconfigs/issues/34/comments","events_url":"https://api.github.com/repos/Cacti/plugin_routerconfigs/issues/34/events","html_url":"https://github.com/Cacti/plugin_routerconfigs/issues/34","id":299326247,"number":34,"title":"Plugin doesnt acquire IP of the server.","user":{"login":"rtripon","id":28921178,"avatar_url":"https://avatars1.githubusercontent.com/u/28921178?v=4","gravatar_id":"","url":"https://api.github.com/users/rtripon","html_url":"https://github.com/rtripon","followers_url":"https://api.github.com/users/rtripon/followers","following_url":"https://api.github.com/users/rtripon/following{/other_user}","gists_url":"https://api.github.com/users/rtripon/gists{/gist_id}","starred_url":"https://api.github.com/users/rtripon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtripon/subscriptions","organizations_url":"https://api.github.com/users/rtripon/orgs","repos_url":"https://api.github.com/users/rtripon/repos","events_url":"https://api.github.com/users/rtripon/events{/privacy}","received_events_url":"https://api.github.com/users/rtripon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-02-22T12:00:19Z","updated_at":"2018-02-22T15:06:16Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nIf anyone managed to automatically run this plugin, please help. I'm struggling big time with it, I got the last devel branch and I'm stuck at this error:\r\n\r\n������������\r\n| |\r\n||| |||\r\n.:|||||:..:|||||:.\r\nc2960\r\nThis is a secured device.\r\nUnauthorized use is prohibited by law.\r\nIf you are not authorized to access this device please disconnect.\r\n\r\nUser Access Verification\r\n\r\nUsername: �� ��������'���user\r\nPassword:\r\n\r\nc2960-POP#copy running-config tftp\r\nAddress or name of remote host []? y\r\nTranslating \"y\"\r\n\r\n?Invalid host address or name\r\n%Error parsing filename (Invalid IP address or hostname)\r\nc2960-POP-Atrium#\r\n\r\nFor some reasons, the IP of the tftp server isnt acquired.\r\n\r\nVersion 1.2, cacti version 1.1.35 using spine.\r\n\r\nSome logs:\r\nphp -q /var/www/html/cacti/plugins/routerconfigs/router-download.php\r\n2018/02/22 13:56:38 - RCONFIG NOTICE: Starting automatic backup\r\n2018/02/22 13:56:38 - RCONFIG STATS: Backup now running since 2018-02-22 13:56:38\r\n2018/02/22 13:56:38 - RCONFIG DEBUG: SELECT *                           FROM plugin_routerconfigs_devices                               WHERE enabled = 'on'                            AND (1519300598 - (schedule * 86400)) - 3600 > lastbackup\r\n2018/02/22 13:56:38 - RCONFIG NOTICE: 0 Devices Backed Up and 0 Devices Failed in 0 seconds\r\n2018/02/22 13:56:38 - RCONFIG DEBUG: 0 devices backed up successfully.\r\n2018/02/22 13:56:38 - RCONFIG DEBUG: 0 devices failed to backup.\r\nPHP Notice:  Array to string conversion in /var/www/html/cacti/lib/database.php on line 261\r\nPHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/html/cacti/include/phpmailer/class.phpmailer.php on line 1015\r\nPHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/html/cacti/include/phpmailer/class.phpmailer.php on line 1016\r\n2018/02/22 13:56:46 - RCONFIG STATS: Time:7.64 Downloaded:0 Failed:0\r\n\r\n\r\n\r\nI ran DEVEL level on logs:\r\n\r\n2018/02/22 12:58:24 - RCONFIG NOTICE: Starting automatic backup\r\n2018/02/22 12:58:24 - DBCALL DEVEL: SQL Cell: \"SELECT value FROM settings WHERE name = 'plugin_routerconfigs_running'\"\r\n2018/02/22 12:58:24 - DBCALL DEVEL: SQL Exec: \"REPLACE INTO settings (name, value)   VALUES ('plugin_routerconfigs_running', 1519297104)\"\r\n2018/02/22 12:58:24 - RCONFIG STATS: Backup now running since 2018-02-22 12:58:24\r\n2018/02/22 12:58:24 - RCONFIG DEBUG: SELECT *                           FROM plugin_routerconfigs_devices                               WHERE enabled = 'on'                            AND (1519297104 - (schedule * 86400)) - 3600 > lastbackup\r\n2018/02/22 12:58:24 - DBCALL DEVEL: SQL Assoc: \"SELECT *    FROM plugin_routerconfigs_devices    WHERE enabled = 'on'    AND (1519297104 - (schedule * 86400)) - 3600 > lastbackup    \"\r\n2018/02/22 12:58:24 - RCONFIG NOTICE: 0 Devices Backed Up and 0 Devices Failed in 0 seconds\r\n2018/02/22 12:58:24 - RCONFIG DEBUG: 0 devices backed up successfully.\r\n2018/02/22 12:58:24 - RCONFIG DEBUG: 0 devices failed to backup.\r\n2018/02/22 12:58:24 - DBCALL DEVEL: SQL Cell: \"SELECT full_name   FROM user_auth   WHERE email_address = ?\"\r\n2018/02/22 12:58:24 - ERROR PHP NOTICE: Array to string conversion in file: /var/www/html/cacti/lib/database.php  on line: 261\r\n2018/02/22 12:58:24 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/routerconfigs/router-download.php: 84 plugin_routerconfigs_download)(/plugins/routerconfigs/functions.php: 203 send_mail)(/lib/functions.php: 3634 db_fetch_cell_prepared)(/lib/database.php: 261 execute)(CactiErrorHandler)(/lib/functions.php: 4624 cacti_debug_backtrace)\r\n2018/02/22 12:58:24 - ERROR PHP WARNING: trim() expects parameter 1 to be string, array given in file: /var/www/html/cacti/include/phpmailer/class.phpmailer.php  on line: 1015\r\n2018/02/22 12:58:24 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/routerconfigs/router-download.php: 84 plugin_routerconfigs_download)(/plugins/routerconfigs/functions.php: 203 send_mail)(/lib/functions.php: 3645 mailer)(/lib/functions.php: 3782 setFrom)(/include/phpmailer/class.phpmailer.php: 1015 trim)(CactiErrorHandler)(/lib/functions.php: 4619 cacti_debug_backtrace)\r\n2018/02/22 12:58:24 - ERROR PHP WARNING: trim() expects parameter 1 to be string, array given in file: /var/www/html/cacti/include/phpmailer/class.phpmailer.php  on line: 1016\r\n2018/02/22 12:58:24 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/routerconfigs/router-download.php: 84 plugin_routerconfigs_download)(/plugins/routerconfigs/functions.php: 203 send_mail)(/lib/functions.php: 3645 mailer)(/lib/functions.php: 3782 setFrom)(/include/phpmailer/class.phpmailer.php: 1016 trim)(CactiErrorHandler)(/lib/functions.php: 4619 cacti_debug_backtrace)\r\n2018/02/22 12:58:25 - MAILER Mail Successfully Sent to 'xxxx@gmail.com', Subject: 'Network Device Configuration Backups - Reattempt'\r\n2018/02/22 12:58:25 - DBCALL DEVEL: SQL Assoc: \"SELECT *  FROM plugin_routerconfigs_backups  WHERE btime < ?\"\r\n2018/02/22 12:58:25 - DBCALL DEVEL: SQL Exec: \"DELETE FROM plugin_routerconfigs_backups  WHERE btime < ?\"\r\n2018/02/22 12:58:25 - RCONFIG STATS: Time:0.46 Downloaded:0 Failed:0\r\n2018/02/22 12:58:25 - DBCALL DEVEL: SQL Exec: \"REPLACE INTO settings (name, value)   VALUES ('plugin_routerconfigs_running', 0)\"\r\n\r\n\r\nThe mail part is working, I get an email everytime I try to run the backups manually.\r\n\r\n0 devices backed up successfully.\r\n1 devices failed to backup.\r\nThese devices failed to backup\r\n------------------------------\r\nATRIUM - ERROR: TELNET no Config uploaded from Router\r\n"},"comment":{"url":"https://api.github.com/repos/Cacti/plugin_routerconfigs/issues/comments/367709388","html_url":"https://github.com/Cacti/plugin_routerconfigs/issues/34#issuecomment-367709388","issue_url":"https://api.github.com/repos/Cacti/plugin_routerconfigs/issues/34","id":367709388,"user":{"login":"rtripon","id":28921178,"avatar_url":"https://avatars1.githubusercontent.com/u/28921178?v=4","gravatar_id":"","url":"https://api.github.com/users/rtripon","html_url":"https://github.com/rtripon","followers_url":"https://api.github.com/users/rtripon/followers","following_url":"https://api.github.com/users/rtripon/following{/other_user}","gists_url":"https://api.github.com/users/rtripon/gists{/gist_id}","starred_url":"https://api.github.com/users/rtripon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtripon/subscriptions","organizations_url":"https://api.github.com/users/rtripon/orgs","repos_url":"https://api.github.com/users/rtripon/repos","events_url":"https://api.github.com/users/rtripon/events{/privacy}","received_events_url":"https://api.github.com/users/rtripon/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T15:06:16Z","updated_at":"2018-02-22T15:06:16Z","author_association":"NONE","body":"Unticking the 'y' stops the process at:\r\n\r\nUser Access Verification\r\n\r\nUsername: �� ��\u0018\u0001����'��\u0003tacacs\r\nPassword: \r\n\r\nCORE#copy run tftp://192.168.1.1/CORE\r\nAddress or name of remote host [192.168.1.1]? "}}
{"actor":{"display_login":"rtripon"}}