How to Monitor PAN-OS Disk Usage with SNMP

How to Monitor PAN-OS Disk Usage with SNMP

11332
Created On 03/30/21 16:04 PM - Last Modified 12/06/22 22:01 PM


Objective


To Monitor disk partition usage of a PAN-OS Firewall 

Environment


  • Palo Alto Firewall or Panorama
  • Supported PAN-OS
  • SNMP


Procedure


Use the the hrStorage OID table in the Host-Resources MIB

OID Overview

Item
Name
OID
Source MIB
Description
Partition name 
hrStorageDescr
1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB
What is the name of partition 
Allocation Units
hrStorageAllocationUnits
1.3.6.1.2.1.25.2.3.1.4
HOST-RESOURCES-MIB
What units are these reported in
1024 = KB (KiloByte) 

Partition Size 

hrStorageSize
1.3.6.1.2.1.25.2.3.1.5
HOST-RESOURCES-MIB

Size of partition (in KB)

Partition Used 
hrStorageUsed
1.3.6.1.2.1.25.2.3.1.6
HOST-RESOURCES-MIB
Used storage (in KB)

 

Output from on SNMP Walk:

hrStorageDescr 1.3.6.1.2.1.25.2.3.1.3.(index-number) = Type: Value 

iso.3.6.1.2.1.25.2.3.1.3.1040 = STRING: "Slot-1 Management Config Partition"
iso.3.6.1.2.1.25.2.3.1.3.1041 = STRING: "Slot-1 Management Log Partition"
iso.3.6.1.2.1.25.2.3.1.3.1042 = STRING: "Slot-1 Management Root Partition"

hrStorageAllocationUnits 1.3.6.1.2.1.25.2.3.1.4.(index-number) = Type: Value 

iso.3.6.1.2.1.25.2.3.1.4.1040 = INTEGER: 1024
iso.3.6.1.2.1.25.2.3.1.4.1041 = INTEGER: 1024
iso.3.6.1.2.1.25.2.3.1.4.1042 = INTEGER: 1024


hrStorageSize 1.3.6.1.2.1.25.2.3.1.5.(index-number) = Type: Value 

iso.3.6.1.2.1.25.2.3.1.5.1040 = INTEGER: 16644968
iso.3.6.1.2.1.25.2.3.1.5.1041 = INTEGER: 21828860
iso.3.6.1.2.1.25.2.3.1.5.1042 = INTEGER: 7282104


hrStorageUsed 1.3.6.1.2.1.25.2.3.1.6.(index-number) = Type: Value 

iso.3.6.1.2.1.25.2.3.1.6.1040 = INTEGER: 2441732 
iso.3.6.1.2.1.25.2.3.1.6.1041 = INTEGER: 387632 
iso.3.6.1.2.1.25.2.3.1.6.1042 = INTEGER: 3411416
 

Putting it together: 

The Management Config Partition used index number 1040. Here is how we interpret the output: 
SNMP Walk OutputDescription 
iso.3.6.1.2.1.25.2.3.1.3.1040 = STRING: "Slot-1 Management Config Partition"The name of the partition is "Management Config Partition"
iso.3.6.1.2.1.25.2.3.1.4.1040 = INTEGER: 1024 The allocation is 1024. A unit of 1024 is a KiloByte (KB)
iso.3.6.1.2.1.25.2.3.1.5.1040 = INTEGER: 16644968There is 16644968KB of space in this partition, or 16.64GB 
iso.3.6.1.2.1.25.2.3.1.6.1040 = INTEGER: 2441732There is 2441732KB of used space in this partition, or 2.44GB 

Compare SNMP results to show system disk space output on firewall? 
admin@fw> show system disk-space

Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.0G  3.3G  3.4G  50% /
none            7.9G   76K  7.9G   1% /dev
/dev/sda5        16G  2.4G   13G  16% /opt/pancfg <===== 
/dev/sda6       8.0G  2.6G  5.0G  34% /opt/panrepo
tmpfs           4.8G  4.1G  819M  84% /dev/shm
/dev/sda8        21G  379M   20G   2% /opt/panlogs

 


Additional Information


These are the OIDs commonly used by your favorite SNMP monitoring software. 

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000001UzjCAE&lang=en_US%E2%80%A9&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language