Cacti / plugin_flowview

FlowView Plugin for Cacti
GNU General Public License v2.0
18 stars 10 forks source link

Add a Template Export Button to make sharing Template information with the Cacti Group Easy #111

Closed TheWitness closed 1 week ago

TheWitness commented 1 month ago

Is your feature request related to a problem? Please describe.

Since we need a way to share templates, provide an export button so users can help the Cacti Group with Table development.

Describe the solution you'd like

A simple export button to save the Template Data as JSON or YAML.

Describe alternatives you've considered

That's it. Pretty simple.

Additional context

Helps us with future developments.

TheWitness commented 1 month ago

Example Templates section for a MicroTik router.

image

TheWitness commented 1 month ago

Example Templates section for a MicroTik router.

image

TheWitness commented 1 month ago

Example Templates section for a MicroTik router.

image

TheWitness commented 1 month ago

Example Templates section for a MicroTik router.

image

bmfmancini commented 2 weeks ago

Cisco IOS 12.4 Advanced service pack Router 7200

image

TheWitness commented 2 weeks ago

@xmacan or @arno-st, can you guys upload your Flow Template definitions?

bmfmancini commented 2 weeks ago

Template with Cisco IOS BGP other routing protocols don't add any more to the template as far as I can see

192.168.2.10:51601 | 256 | flowEndSysUpTime | 21 | unsigned32 | 4 | N
192.168.2.10:51601 | 256 | flowStartSysUpTime | 22 | unsigned32 | 4 | N
192.168.2.10:51601 | 256 | octetDeltaCount | 1 | unsigned64 | 4 | N
192.168.2.10:51601 | 256 | packetDeltaCount | 2 | unsigned64 | 4 | N
192.168.2.10:51601 | 256 | ingressInterface | 10 | unsigned32 | 2 | n
192.168.2.10:51601 | 256 | egressInterface | 14 | unsigned32 | 2 | n
192.168.2.10:51601 | 256 | sourceIPv4Address | 8 | ipv4Address | 4 | C4
192.168.2.10:51601 | 256 | destinationIPv4Address | 12 | ipv4Address | 4 | C4
192.168.2.10:51601 | 256 | protocolIdentifier | 4 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | ipClassOfService | 5 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | sourceTransportPort | 7 | unsigned16 | 2 | n
192.168.2.10:51601 | 256 | destinationTransportPort | 11 | unsigned16 | 2 | n
192.168.2.10:51601 | 256 | samplerId | 48 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | classId | 51 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | ipNextHopIPv4Address | 15 | ipv4Address | 4 | C4
192.168.2.10:51601 | 256 | destinationIPv4PrefixLength | 13 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | sourceIPv4PrefixLength | 9 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | tcpControlBits | 6 | unsigned16 | 1 | C
192.168.2.10:51601 | 256 | flowDirection | 61 | unsigned8 | 1 | C
192.168.2.10:51601 | 256 | bgpDestinationAsNumber | 17 | unsigned32 | 2 | n
192.168.2.10:51601 | 256 | bgpSourceAsNumber | 16 | unsigned32 | 2 | n
192.168.2.10:58087 | 256 | flowEndSysUpTime | 21 | unsigned32 | 4 | N
192.168.2.10:58087 | 256 | flowStartSysUpTime | 22 | unsigned32 | 4 | N
192.168.2.10:58087 | 256 | octetDeltaCount | 1 | unsigned64 | 4 | N
192.168.2.10:58087 | 256 | packetDeltaCount | 2 | unsigned64 | 4 | N
192.168.2.10:58087 | 256 | ingressInterface | 10 | unsigned32 | 2 | n
192.168.2.10:58087 | 256 | egressInterface | 14 | unsigned32 | 2 | n
192.168.2.10:58087 | 256 | sourceIPv4Address | 8 | ipv4Address | 4 | C4
192.168.2.10:58087 | 256 | destinationIPv4Address | 12 | ipv4Address | 4 | C4
192.168.2.10:58087 | 256 | protocolIdentifier | 4 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | ipClassOfService | 5 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | sourceTransportPort | 7 | unsigned16 | 2 | n
192.168.2.10:58087 | 256 | destinationTransportPort | 11 | unsigned16 | 2 | n
192.168.2.10:58087 | 256 | samplerId | 48 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | classId | 51 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | ipNextHopIPv4Address | 15 | ipv4Address | 4 | C4
192.168.2.10:58087 | 256 | destinationIPv4PrefixLength | 13 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | sourceIPv4PrefixLength | 9 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | tcpControlBits | 6 | unsigned16 | 1 | C
192.168.2.10:58087 | 256 | flowDirection | 61 | unsigned8 | 1 | C
192.168.2.10:58087 | 256 | bgpDestinationAsNumber | 17 | unsigned32 | 2 | n
192.168.2.10:58087 | 256 | bgpSourceAsNumber | 16 | unsigned32 | 2 | n
192.168.2.10:58619 | 256 | sourceIPv4Address | 8 | ipv4Address | 4 | C4
192.168.2.10:58619 | 256 | destinationIPv4Address | 12 | ipv4Address | 4 | C4
192.168.2.10:58619 | 256 | ingressInterface | 10 | unsigned32 | 4 | N
192.168.2.10:58619 | 256 | sourceTransportPort | 7 | unsigned16 | 2 | n
192.168.2.10:58619 | 256 | destinationTransportPort | 11 | unsigned16 | 2 | n
192.168.2.10:58619 | 256 | ipClassOfService | 5 | unsigned8 | 1 | C
192.168.2.10:58619 | 256 | protocolIdentifier | 4 | unsigned8 | 1 | C
192.168.2.10:58619 | 256 | octetDeltaCount | 1 | unsigned64 | 4 | N
192.168.2.10:58619 | 256 | packetDeltaCount | 2 | unsigned64 | 4 | N
192.168.2.10:58619 | 256 | egressInterface | 14 | unsigned32 | 4 | N
TheWitness commented 2 weeks ago

Cisco IOS 12.4 Advanced service pack Router 7200

image

Is the the entirety of the template. It seems much more brief that your example above.

TheWitness commented 2 weeks ago

Oh, I see now, every time you restart the service, the port number of the source is changing.

arno-st commented 2 weeks ago

Mine is really simple, but it's all int the config I setup on my L3 switch. I can add more field but no need for now.

flowview template cisco 4500X

xmacan commented 2 weeks ago

192.168.222.1   258     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   258     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   258     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   258     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   258     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   258     sourceTransportPort     7   unsigned16  2   n
192.168.222.1   258     destinationTransportPort    11  unsigned16  2   n
192.168.222.1   258     ingressInterface    10  unsigned32  2   n
192.168.222.1   258     egressInterface     14  unsigned32  2   n
192.168.222.1   258     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   258     postIpDiffServCodePoint     98  unsigned8   1   C
192.168.222.1   258     applicationId   95  octetArray  9   C9
192.168.222.1   258     vendorReserved  66  string  4   C4
192.168.222.1   258     vendorReserved  65  string  2   C2
192.168.222.1   258     forwardingStatus    89  unsigned8   1   C
192.168.222.1   258     flowEndReason   136     unsigned8   1   C
192.168.222.1   258     sourceIPv4Address   8   ipv4Address     4   C4
192.168.222.1   258     destinationIPv4Address  12  ipv4Address     4   C4
192.168.222.1   259     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   259     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   259     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   259     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   259     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   259     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   259     sourceTransportPort     7   unsigned16  2   n
192.168.222.1   259     destinationTransportPort    11  unsigned16  2   n
192.168.222.1   259     ingressInterface    10  unsigned32  2   n
192.168.222.1   259     egressInterface     14  unsigned32  2   n
192.168.222.1   259     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   259     postIpDiffServCodePoint     98  unsigned8   1   C
192.168.222.1   259     applicationId   95  octetArray  9   C9
192.168.222.1   259     vendorReserved  66  string  4   C4
192.168.222.1   259     vendorReserved  65  string  2   C2
192.168.222.1   259     forwardingStatus    89  unsigned8   1   C
192.168.222.1   259     flowEndReason   136     unsigned8   1   C
192.168.222.1   259     sourceIPv6Address   27  ipv6Address     16  n8
192.168.222.1   259     destinationIPv6Address  28  ipv6Address     16  n8
192.168.222.1   260     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   260     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   260     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   260     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   260     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   260     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   260     ingressInterface    10  unsigned32  2   n
192.168.222.1   260     egressInterface     14  unsigned32  2   n
192.168.222.1   260     icmpTypeCodeIPv4    32  unsigned16  2   n
192.168.222.1   260     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   260     applicationId   95  octetArray  9   C9
192.168.222.1   260     vendorReserved  66  string  4   C4
192.168.222.1   260     vendorReserved  65  string  2   C2
192.168.222.1   260     forwardingStatus    89  unsigned8   1   C
192.168.222.1   260     flowEndReason   136     unsigned8   1   C
192.168.222.1   260     sourceIPv4Address   8   ipv4Address     4   C4
192.168.222.1   260     destinationIPv4Address  12  ipv4Address     4   C4
192.168.222.1   261     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   261     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   261     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   261     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   261     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   261     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   261     ingressInterface    10  unsigned32  2   n
192.168.222.1   261     egressInterface     14  unsigned32  2   n
192.168.222.1   261     icmpTypeCodeIPv4    32  unsigned16  2   n
192.168.222.1   261     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   261     applicationId   95  octetArray  9   C9
192.168.222.1   261     vendorReserved  66  string  4   C4
192.168.222.1   261     vendorReserved  65  string  2   C2
192.168.222.1   261     forwardingStatus    89  unsigned8   1   C
192.168.222.1   261     flowEndReason   136     unsigned8   1   C
192.168.222.1   261     sourceIPv6Address   27  ipv6Address     16  n8
192.168.222.1   261     destinationIPv6Address  28  ipv6Address     16  n8
192.168.222.1   262     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   262     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   262     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   262     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   262     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   262     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   262     sourceTransportPort     7   unsigned16  2   n
192.168.222.1   262     destinationTransportPort    11  unsigned16  2   n
192.168.222.1   262     ingressInterface    10  unsigned32  2   n
192.168.222.1   262     egressInterface     14  unsigned32  2   n
192.168.222.1   262     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   262     postIpDiffServCodePoint     98  unsigned8   1   C
192.168.222.1   262     applicationId   95  octetArray  9   C9
192.168.222.1   262     vendorReserved  66  string  4   C4
192.168.222.1   262     vendorReserved  65  string  2   C2
192.168.222.1   262     forwardingStatus    89  unsigned8   1   C
192.168.222.1   262     flowEndReason   136     unsigned8   1   C
192.168.222.1   262     sourceIPv4Address   8   ipv4Address     4   C4
192.168.222.1   262     destinationIPv4Address  12  ipv4Address     4   C4
192.168.222.1   262     postNATSourceIPv4Address    225     ipv4Address     4   C4
192.168.222.1   262     postNATDestinationIPv4Address   226     ipv4Address     4   C4
192.168.222.1   262     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   262     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   263     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   263     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   263     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   263     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   263     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   263     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   263     sourceTransportPort     7   unsigned16  2   n
192.168.222.1   263     destinationTransportPort    11  unsigned16  2   n
192.168.222.1   263     ingressInterface    10  unsigned32  2   n
192.168.222.1   263     egressInterface     14  unsigned32  2   n
192.168.222.1   263     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   263     postIpDiffServCodePoint     98  unsigned8   1   C
192.168.222.1   263     applicationId   95  octetArray  9   C9
192.168.222.1   263     vendorReserved  66  string  4   C4
192.168.222.1   263     vendorReserved  65  string  2   C2
192.168.222.1   263     forwardingStatus    89  unsigned8   1   C
192.168.222.1   263     flowEndReason   136     unsigned8   1   C
192.168.222.1   263     sourceIPv4Address   8   ipv4Address     4   C4
192.168.222.1   263     destinationIPv4Address  12  ipv4Address     4   C4
192.168.222.1   263     postNATSourceIPv6Address    281     ipv6Address     16  n8
192.168.222.1   263     postNATDestinationIPv6Address   282     ipv6Address     16  n8
192.168.222.1   263     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   263     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   264     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   264     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   264     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   264     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   264     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   264     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   264     sourceTransportPort     7   unsigned16  2   n
192.168.222.1   264     destinationTransportPort    11  unsigned16  2   n
192.168.222.1   264     ingressInterface    10  unsigned32  2   n
192.168.222.1   264     egressInterface     14  unsigned32  2   n
192.168.222.1   264     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   264     postIpDiffServCodePoint     98  unsigned8   1   C
192.168.222.1   264     applicationId   95  octetArray  9   C9
192.168.222.1   264     vendorReserved  66  string  4   C4
192.168.222.1   264     vendorReserved  65  string  2   C2
192.168.222.1   264     forwardingStatus    89  unsigned8   1   C
192.168.222.1   264     flowEndReason   136     unsigned8   1   C
192.168.222.1   264     sourceIPv6Address   27  ipv6Address     16  n8
192.168.222.1   264     destinationIPv6Address  28  ipv6Address     16  n8
192.168.222.1   264     postNATSourceIPv6Address    281     ipv6Address     16  n8
192.168.222.1   264     postNATDestinationIPv6Address   282     ipv6Address     16  n8
192.168.222.1   264     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   264     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   265     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   265     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   265     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   265     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   265     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   265     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   265     sourceTransportPort     7   unsigned16  2   n
192.168.222.1   265     destinationTransportPort    11  unsigned16  2   n
192.168.222.1   265     ingressInterface    10  unsigned32  2   n
192.168.222.1   265     egressInterface     14  unsigned32  2   n
192.168.222.1   265     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   265     postIpDiffServCodePoint     98  unsigned8   1   C
192.168.222.1   265     applicationId   95  octetArray  9   C9
192.168.222.1   265     vendorReserved  66  string  4   C4
192.168.222.1   265     vendorReserved  65  string  2   C2
192.168.222.1   265     forwardingStatus    89  unsigned8   1   C
192.168.222.1   265     flowEndReason   136     unsigned8   1   C
192.168.222.1   265     sourceIPv6Address   27  ipv6Address     16  n8
192.168.222.1   265     destinationIPv6Address  28  ipv6Address     16  n8
192.168.222.1   265     postNATSourceIPv4Address    225     ipv4Address     4   C4
192.168.222.1   265     postNATDestinationIPv4Address   226     ipv4Address     4   C4
192.168.222.1   265     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   265     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   266     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   266     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   266     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   266     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   266     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   266     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   266     ingressInterface    10  unsigned32  2   n
192.168.222.1   266     egressInterface     14  unsigned32  2   n
192.168.222.1   266     icmpTypeCodeIPv4    32  unsigned16  2   n
192.168.222.1   266     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   266     applicationId   95  octetArray  9   C9
192.168.222.1   266     vendorReserved  66  string  4   C4
192.168.222.1   266     vendorReserved  65  string  2   C2
192.168.222.1   266     forwardingStatus    89  unsigned8   1   C
192.168.222.1   266     flowEndReason   136     unsigned8   1   C
192.168.222.1   266     sourceIPv4Address   8   ipv4Address     4   C4
192.168.222.1   266     destinationIPv4Address  12  ipv4Address     4   C4
192.168.222.1   266     postNATSourceIPv4Address    225     ipv4Address     4   C4
192.168.222.1   266     postNATDestinationIPv4Address   226     ipv4Address     4   C4
192.168.222.1   266     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   266     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   267     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   267     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   267     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   267     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   267     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   267     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   267     ingressInterface    10  unsigned32  2   n
192.168.222.1   267     egressInterface     14  unsigned32  2   n
192.168.222.1   267     icmpTypeCodeIPv4    32  unsigned16  2   n
192.168.222.1   267     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   267     applicationId   95  octetArray  9   C9
192.168.222.1   267     vendorReserved  66  string  4   C4
192.168.222.1   267     vendorReserved  65  string  2   C2
192.168.222.1   267     forwardingStatus    89  unsigned8   1   C
192.168.222.1   267     flowEndReason   136     unsigned8   1   C
192.168.222.1   267     sourceIPv4Address   8   ipv4Address     4   C4
192.168.222.1   267     destinationIPv4Address  12  ipv4Address     4   C4
192.168.222.1   267     postNATSourceIPv6Address    281     ipv6Address     16  n8
192.168.222.1   267     postNATDestinationIPv6Address   282     ipv6Address     16  n8
192.168.222.1   267     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   267     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   268     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   268     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   268     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   268     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   268     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   268     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   268     ingressInterface    10  unsigned32  2   n
192.168.222.1   268     egressInterface     14  unsigned32  2   n
192.168.222.1   268     icmpTypeCodeIPv4    32  unsigned16  2   n
192.168.222.1   268     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   268     applicationId   95  octetArray  9   C9
192.168.222.1   268     vendorReserved  66  string  4   C4
192.168.222.1   268     vendorReserved  65  string  2   C2
192.168.222.1   268     forwardingStatus    89  unsigned8   1   C
192.168.222.1   268     flowEndReason   136     unsigned8   1   C
192.168.222.1   268     sourceIPv6Address   27  ipv6Address     16  n8
192.168.222.1   268     destinationIPv6Address  28  ipv6Address     16  n8
192.168.222.1   268     postNATSourceIPv6Address    281     ipv6Address     16  n8
192.168.222.1   268     postNATDestinationIPv6Address   282     ipv6Address     16  n8
192.168.222.1   268     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   268     postNAPTDestinationTransportPort    228     unsigned16  2   n
192.168.222.1   269     octetDeltaCount     1   unsigned64  8   J
192.168.222.1   269     postOctetDeltaCount     23  unsigned64  8   J
192.168.222.1   269     packetDeltaCount    2   unsigned64  4   N
192.168.222.1   269     postPacketDeltaCount    24  unsigned64  4   N
192.168.222.1   269     flowStartSysUpTime  22  unsigned32  4   N
192.168.222.1   269     flowEndSysUpTime    21  unsigned32  4   N
192.168.222.1   269     ingressInterface    10  unsigned32  2   n
192.168.222.1   269     egressInterface     14  unsigned32  2   n
192.168.222.1   269     icmpTypeCodeIPv4    32  unsigned16  2   n
192.168.222.1   269     protocolIdentifier  4   unsigned8   1   C
192.168.222.1   269     applicationId   95  octetArray  9   C9
192.168.222.1   269     vendorReserved  66  string  4   C4
192.168.222.1   269     vendorReserved  65  string  2   C2
192.168.222.1   269     forwardingStatus    89  unsigned8   1   C
192.168.222.1   269     flowEndReason   136     unsigned8   1   C
192.168.222.1   269     sourceIPv6Address   27  ipv6Address     16  n8
192.168.222.1   269     destinationIPv6Address  28  ipv6Address     16  n8
192.168.222.1   269     postNATSourceIPv4Address    225     ipv4Address     4   C4
192.168.222.1   269     postNATDestinationIPv4Address   226     ipv4Address     4   C4
192.168.222.1   269     postNAPTSourceTransportPort     227     unsigned16  2   n
192.168.222.1   269     postNAPTDestinationTransportPort    228     unsigned16  2   n```
TheWitness commented 2 weeks ago

Mine is really simple, but it's all int the config I setup on my L3 switch. I can add more field but no need for now.

flowview template cisco 4500X

That's depressing, but good to know.

TheWitness commented 1 week ago

I've added the Export Button. Still giving this some more thought of course.

TheWitness commented 1 week ago

@arno-st, please test when you get in next week. I've reduced the 'minimum' for IPV4 V9 and IPFIX templates to the set you specified above. Going to keep the IPV6 the same for now.

arno-st commented 1 week ago

Hmm you change the path in stone on flow-capture.service i have to change all line !!

I will do it tomorrow

arno-st commented 1 week ago

Whoaa not good:

25/06/2024  16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[668]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
--
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[668]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[655]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[655]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP PHP ERROR Backtrace:   (/plugins/flowview/flow_collector.php[701]:strtolower(),  CactiErrorHandler())
25/06/2024 16:15:55 - ERROR PHP DEPRECATED in  Plugin 'flowview':  strtolower(): Passing null to parameter #1 ($string) of type string is  deprecated in file: /usr/share/cacti/plugins/flowview/flow_collector.php   on line: 701
25/06/2024 16:15:55 - CMDPHP PHP ERROR WARNING Backtrace:  (/plugins/flowview/flow_collector.php[701]:CactiErrorHandler())
25/06/2024 16:15:55 - ERROR PHP WARNING in  Plugin 'flowview':  Undefined array key "protocol" in file:  /usr/share/cacti/plugins/flowview/flow_collector.php  on line: 701
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[686]:flowview_db_execute_prepared(),  /plugins/flowview/database.php[82]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'last_updated' in 'field list'
25/06/2024 16:15:55 - FLOWVIEW WARNING: Flowview Listener child_32 is starting up
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[668]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[655]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP PHP ERROR Backtrace:   (/plugins/flowview/flow_collector.php[701]:strtolower(),  CactiErrorHandler())
25/06/2024 16:15:55 - ERROR PHP DEPRECATED in  Plugin 'flowview':  strtolower(): Passing null to parameter #1 ($string) of type string is  deprecated in file: /usr/share/cacti/plugins/flowview/flow_collector.php   on line: 701
25/06/2024 16:15:55 - CMDPHP PHP ERROR WARNING Backtrace:  (/plugins/flowview/flow_collector.php[701]:CactiErrorHandler())
25/06/2024 16:15:55 - ERROR PHP WARNING in  Plugin 'flowview':  Undefined array key "protocol" in file:  /usr/share/cacti/plugins/flowview/flow_collector.php  on line: 701
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[686]:flowview_db_execute_prepared(),  /plugins/flowview/database.php[82]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'last_updated' in 'field list'
25/06/2024 16:15:55 - FLOWVIEW WARNING: Flowview Listener child_2 is starting up
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[668]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
25/06/2024 16:15:55 - CMDPHP SQL Backtrace:   (/plugins/flowview/flow_collector.php[655]:flowview_db_execute(),  /plugins/flowview/database.php[69]:db_execute(),  /lib/database.php[385]:db_execute_prepared())
25/06/2024 16:15:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'ex_addr' in 'where clause'
TheWitness commented 1 week ago

The web server has to have the ability to SIGHUP the services. So, the run-as account needed to change. Lot's of changes....

arno-st commented 1 week ago

You lost me ! The problem I have is about the structure of the table, I think. No the run-as user.

By the way the script repair_tables.php has an error: PHP Warning: Undefined array key "Tables_in_cacti" in /usr/share/cacti/plugins/flowview/repair_tables.php on line 36

Table_in_cacti dosen't exist, I think you mean tables

TheWitness commented 1 week ago

Port that separately. Then run the flow view upgrade using a forcever of 3.3.