Page 1 of 1

paloalto firewall specific partion disk space

Posted: Tue Oct 13, 2020 6:25 am
by mejokj
Hello,

We have a paloalto firewall. We need to monitor a specific partion /opt/panlogs disk space. we get below plugin to monitor / partion. But our requirement is to monitor a specific partion /opt/panlogs disk space.

https://nagios-check-paloalto.readthedo ... umentation

Is there any plugin to monitor the specific partion disk space on paloalto firewall paloalto pa220.


Below is the link to the partion details.
https://ibb.co/D8C9mKd

Re: paloalto firewall specific partion disk space

Posted: Tue Oct 13, 2020 4:28 pm
by ssax
It doesn't look like that plugin supports that.

Do you have SNMP enabled on the device? If so, try with one of these:

SNMPv2:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H X.X.X.X -C 'yoursnmpcommunity' --v2c -m "^/opt/panlogs$" -w 80 -c 95 -f
SNMPv3:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H X.X.X.X --login=snmpv3user --passwd='authP@ss' --privpass='privP@ss' --protocols=sha,aes -m "^/opt/panlogs$" -w 80 -c 95 -f

Re: paloalto firewall specific partion disk space

Posted: Wed Oct 14, 2020 4:58 am
by mejokj
Hello,

We have tried the plugin but it shows below error. Tried for the / also same error. Is there any options to monitor it with oid or any other plugin.


+++++++
nagios@emea-nagios-a root]$ /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H host1 -C 'public' --v2c -m "^/opt/panlogs" -w 80 -c 95 -f
Unknown storage : ^/opt/panlogs : ERROR


nagios@emea-nagios-a root]$ /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H host1 -C 'public' --v2c -m /opt/panlogs -w 80 -c 95 -f
Unknown storage : ^/opt/panlogs : ERROR
+++++++

Re: paloalto firewall specific partion disk space

Posted: Wed Oct 14, 2020 4:30 pm
by ssax
What is the output of this?

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H host1 -C 'public' --v2c -m "^/$" -w 80 -c 95 -f -v

Re: paloalto firewall specific partion disk space

Posted: Thu Oct 15, 2020 4:40 am
by mejokj
It also shows the same error.

Unknown storage : ^/$ : ERROR

Re: paloalto firewall specific partion disk space

Posted: Thu Oct 15, 2020 4:04 pm
by ssax
The firewalls may not support it, what is the output of these commands?

Code: Select all

snmpwalk -v 2c -c 'COMMUNITY' X.X.X.X:161 HOST-RESOURCES-MIB::hrFSMountPoint -On
snmpwalk -v 2c -c 'COMMUNITY' X.X.X.X:161 -m PAN-COMMON-MIB -On

Re: paloalto firewall specific partion disk space

Posted: Mon Oct 19, 2020 1:47 am
by mejokj
Hello,

Please find the attached snmp walk output.

Re: paloalto firewall specific partion disk space

Posted: Mon Oct 19, 2020 4:36 pm
by ssax
You mistyped this command, please re-send fresh output of this command (you had MOST instead of HOST):

Code: Select all

snmpwalk -v2c -c XXX Host1:161 HOST-RESOURCES-MIB::hrFSMountPoint -On

Re: paloalto firewall specific partion disk space

Posted: Tue Oct 20, 2020 1:49 am
by mejokj
Hello,

Below is the out put of the snmpwalk

[nagios@nagios]$ snmpwalk -v2c -c XXx HOST1 HOST-RESOURCES-MIB::hrFSMountPoint -On
.1.3.6.1.2.1.25.3.8.1.2 = No Such Object available on this agent at this OID

Re: paloalto firewall specific partion disk space

Posted: Tue Oct 20, 2020 3:16 pm
by cdienger
It looks like it may not have the information you're looking for. Try running this to see if it is able to return anything:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -C XXX -H xxx -m -w 1 -c 2 -v
You may need to check with your paloalto documentation to see if this information is available and which OID to pull it from.