Quantcast
Channel: Johannes Weber – Weberblog.net
Viewing all articles
Browse latest Browse all 311

MRTG/Routers2: Template Palo Alto

$
0
0

Here is my MRTG/Routers2 configuration for a Palo Alto Networks PA-200 firewall. It uses all available OIDs from the PAN-MIB. With a few search-and-replace runs, this template can be used in many other scenarios.

SNMP Tests

In my testbed, I am using a PA-200 with PAN-OS 6.1.1. That is, I used the Enterprise SNMP MIB 6.1 from Palo Alto. This is relevant to know since Palo Alto changed a few OIDs from PAN-OS version 5.0.x to 6.0.x.

Note that the following template must be adjusted if it is used with other Palo Alto firewalls, e.g., when more than CPU or multiple VSYS are used.

Unfortunately, the PA firewall is very limited when it comes to monitoring it via SNMP. Is has only a single MIB with a few values. Furthermore, the interfaces cannot be monitored as known from other firewall vendors. :( For example, there are no counters for subinterfaces or for VLAN interfaces. This is really bad! Furthermore, no site-to-site VPN statistics can be read out, and so on. However, at least the speed of the fan can be requested. ;)

The following values are accessible via SNMP:

  • CPU of the data- and management-plane
  • Disk space of all partitions
  • Fan speed
  • GlobalProtect tunnels
  • Sessions: ICMP, SSL, TCP, UDP
  • Temperature
  • Memory: real and swap
  • Interfaces: all data ports + management port

My MRTG/Routers2 Configuration

At first, I ran the cfgmaker to get the interfaces. I am also using two global options: one for the icon and one for the “mirror” graph style:

cfgmaker --snmp-options=:::::2 --show-op-down --zero-speed=1000000000 --global "routers.cgi*Icon: firewall3-sm.gif" --global "routers.cgi*GraphStyle[_]: mirror" --output=NAMEOFTHEFIREWALL.cfg COMMUNITY@192.168.120.2

Then, as always, I deleted the Global Config Options except the two ones that were added through the global options with cfgmaker. Furthermore, the “noHC[…]: yes” lines (if present) can be deleted.

For all specific Palo Alto OIDs, use the following template and copy the contents into the just generated cfg file. Of course, the targets for the interfaces should not be copied. Read the first lines of that file to know which values must be adjusted.

Sample Graphs

This leads to the following graphs (here in the monthly view):

fd-wv-fw02.cfg-192.168.120.2_CPUData-m-l2 fd-wv-fw02.cfg-192.168.120.2_CPUMgmt-m-l2 fd-wv-fw02.cfg-192.168.120.2_mem-m-l2 fd-wv-fw02.cfg-192.168.120.2_temperature-m-l2 fd-wv-fw02.cfg-192.168.120.2_FanSpeed-m-l2 fd-wv-fw02.cfg-192.168.120.2_GPGW-m-l2 fd-wv-fw02.cfg-192.168.120.2_SessionsActive-m-l2 fd-wv-fw02.cfg-192.168.120.2_SessionsICMPSSL-m-l2 fd-wv-fw02.cfg-192.168.120.2_SessionsTCPUDP-m-l2 fd-wv-fw02.cfg-192.168.120.2_ethernet1_1-m-l2 fd-wv-fw02.cfg-192.168.120.2_mgmt-m-l2 fd-wv-fw02.cfg-192.168.120.2_config-partition-m-l2 fd-wv-fw02.cfg-192.168.120.2_log-partition-m-l2 fd-wv-fw02.cfg-192.168.120.2_root-partition-m-l2

Links

 


Viewing all articles
Browse latest Browse all 311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>