ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.7k stars 912 forks source link

Opnsense OPNsense 23.10.1_2-amd64 #3045

Closed bueste closed 6 hours ago

bueste commented 6 months ago

I had integrate opnsense in my oxidized.

[2024-01-26T23:05:23.055618 #840] DEBUG -- : lib/oxidized/input/ssh.rb cat /conf/config.xml @ 10.1.21.1 with expect: /^([\w.@-]+[#>]\s?)$/
D, [2024-01-26T23:05:23.122699 #840] DEBUG -- : lib/oxidized/model/model.rb Executing opnsense-version 2>/dev/null || echo "OPNsense "`cat /usr/local/opnsense/version/opnsense`
D, [2024-01-26T23:05:23.122945 #840] DEBUG -- : lib/oxidized/input/ssh.rb opnsense-version 2>/dev/null || echo "OPNsense "`cat /usr/local/opnsense/version/opnsense` @ 10.1.21.1 with expect: /^([\w.@-]+[#>]\s?)$/
D, [2024-01-26T23:05:23.138201 #840] DEBUG -- : lib/oxidized/input/cli.rb Running pre_logout commands at 10.195.21.1
D, [2024-01-26T23:05:23.140130 #840] DEBUG -- : lib/oxidized/node.rb: Oxidized::SSH ran for 10.1.21.1 successfully

The Version 23.10.1 has no /usr/local/opnsense/version/opnsense.

In the backupfile is following in:

<html>
<body>
<!--StartFragment-->
<!-- Missing /usr/local/opnsense/version/2
--
  | cat: /usr/local/opnsense/version/opnsense: No such file or directory
  | OPNsense  -->
  | <!-- Missing /usr/local/opnsense/version/2
  | cat: /usr/local/opnsense/version/opnsense: No such file or directory
  | OPNsense  -->
  | <!-- Missing /usr/local/opnsense/version/2
  | cat: /usr/local/opnsense/version/opnsense: No such file or directory
  | OPNsense  -->

<!--EndFragment-->
</body>
</html>

Whats wrong? Could somebody fix it?

Thx bueste

robertcheramy commented 5 months ago

We need a model maintainer for OPNsense who could work on this issue.

JohnnyBBravo commented 4 months ago

I'm having the same issue...