diff options
author | Albert Martinez <a.martinez@mrgc.net> | 2018-09-17 22:37:04 +0200 |
---|---|---|
committer | Wild Kat <wk@users.noreply.github.com> | 2018-09-17 22:37:04 +0200 |
commit | c6d7ca6e1457754adfbf06cf22b12c4efa55c481 (patch) | |
tree | 4b8ae48d3b9eb6646f8641e19d430415d9bb5dad /lib/oxidized | |
parent | 0a5830c489e31ce21d715c9dd2299513c3151f4e (diff) |
Update openbsd.rb (#1490)
* Update openbsd.rb
Routing table shows triggered diffs and the static routes are already in the /etc/hostname.* files defined
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/openbsd.rb | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/lib/oxidized/model/openbsd.rb b/lib/oxidized/model/openbsd.rb index 898e9e3..1b863dc 100644 --- a/lib/oxidized/model/openbsd.rb +++ b/lib/oxidized/model/openbsd.rb @@ -24,38 +24,24 @@ class Openbsd < Oxidized::Model cfg = add_comment('HOSTNAME FILE') cfg += cmd('cat /etc/myname') - cfg += add_comment('HOSTS FILE') - cfg += cmd('cat /etc/hosts') - - cfg += add_comment('INTERFACE FILES') - cfg += cmd('tail -n +1 /etc/hostname.*') - cfg += add_comment('RESOLV.CONF FILE') cfg += cmd('cat /etc/resolv.conf') cfg += add_comment('NTP.CONF FILE') cfg += cmd('cat /etc/ntp.conf') - cfg += add_comment('IP ROUTES PER ROUTING DOMAIN') - cfg += add_small_comment('Routing Domain 0') - cfg += cmd('route -T0 exec netstat -rn') - cfg += add_small_comment('Routing Domain 1') - cfg += cmd('route -T1 exec netstat -rn') - cfg += add_small_comment('Routing Domain 2') - cfg += cmd('route -T2 exec netstat -rn') - cfg += add_small_comment('Routing Domain 3') - cfg += cmd('route -T3 exec netstat -rn') - cfg += add_small_comment('Routing Domain 4') - cfg += cmd('route -T4 exec netstat -rn') - cfg += add_small_comment('Routing Domain 5') - cfg += cmd('route -T5 exec netstat -rn') + cfg += add_comment('PF FILE') + cfg += cmd('cat /etc/pf.conf') + + cfg += add_comment('HOSTS FILE') + cfg += cmd('cat /etc/hosts') + + cfg += add_comment('INTERFACE FILES') + cfg += cmd('tail -n +1 /etc/hostname.*') cfg += add_comment('SNMP FILE') cfg += cmd('cat /etc/snmpd.conf') - cfg += add_comment('PF FILE') - cfg += cmd('cat /etc/pf.conf') - cfg += add_comment('MOTD FILE') cfg += cmd('cat /etc/motd') |