From b8988ecf7edfbcb414fc93baa54e702f95ed80fe Mon Sep 17 00:00:00 2001 From: Christoffer Stokbaek Date: Fri, 5 Aug 2016 10:20:07 +0200 Subject: Switched from prompt grap to ssh exec --- lib/oxidized/pfsense.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/pfsense.rb b/lib/oxidized/pfsense.rb index 67a1a49..078c2a4 100644 --- a/lib/oxidized/pfsense.rb +++ b/lib/oxidized/pfsense.rb @@ -1,6 +1,5 @@ class PfSense < Oxidized::Model - prompt /^\e\[0;1;33m\[\S*\e\[0;1;33m\]\e\[0;1;33m\e\[\S*\e\[0;1;31m@\S*\e\[0;1;33m\]\S*\e\[0;1;31m:\e\[0;0;0m\s$/ comment '# ' @@ -20,6 +19,10 @@ class PfSense < Oxidized::Model end + cfg :ssh do + exec true + end + cfg :telnet do username /^Username:/ password /^Password:/ -- cgit v1.2.1