plugin to monitor palo-alto and f5 switches

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

plugin to monitor palo-alto and f5 switches

Post by rnjie »

is there a plugin to monitor palo-alto and f5 routers and switches, i just need uptime, cpu and memory.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: plugin to monitor palo-alto and f5 switches

Post by lmiltchev »

There is no wizard, written specifically for these devices but you could try using the "Network Switch / Router", SNMP and/or SNMP Walk monitoring wizard. You could also try using some 3rd party plugins - not sure which one would do the job for you, but here's some that I found:

https://exchange.nagios.org/directory/P ... rk-Gear/F5

https://github.com/ralph-hm/nagios_check_paloalto

https://github.com/ranl/monitor-utils/b ... to-A500.pl

Once you find a plugin that works for you, you could add a check to XI. For more information on how to do this, please review the document below:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: plugin to monitor palo-alto and f5 switches

Post by rnjie »

thank you for your reply, i found this plugin (https://exchange.nagios.org/components/ ... 7&cf_id=24) from one of the nagios exchange website you mentioned above and i was able to download one and try to test it on my server but i still get errors, the script does not really explain how to run the plugin so il just show you how i ran it and the errors am getting.
libexec]# perl check_f5_mem.pl tpclow-f5-01 '!plut0' 5 6 5 6
Argument "noSuchObject" isn't numeric in subtraction (-) at check_f5_mem.pl line 72.
Argument "noSuchObject" isn't numeric in subtraction (-) at check_f5_mem.pl line 72.
Argument "noSuchObject" isn't numeric in subtraction (-) at check_f5_mem.pl line 72.
Argument "noSuchObject" isn't numeric in subtraction (-) at check_f5_mem.pl line 72.
Argument "noSuchObject" isn't numeric in subtraction (-) at check_f5_mem.pl line 72.
Argument "noSuchObject" isn't numeric in subtraction (-) at check_f5_mem.pl line
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: plugin to monitor palo-alto and f5 switches

Post by lmiltchev »

This is a 3rd party plugin. We are not familiar with it, and we haven't tested it. Unfortunately, we don't have the hardware to test it. I assume that your device have different OIDs than the ones, used in the plugin. I can see this section of code:

Code: Select all

my $tmmTotalCyl = '.1.3.6.1.4.1.3375.2.1.1.2.1.41.0';
my $tmmIdleCyl = '.1.3.6.1.4.1.3375.2.1.1.2.1.42.0';
my $tmmSleepCyl = '.1.3.6.1.4.1.3375.2.1.1.2.1.43.0';
my $sysStatMemoryTotal='.1.3.6.1.4.1.3375.2.1.1.2.1.44.0';
my $sysStatMemoryUsed='.1.3.6.1.4.1.3375.2.1.1.2.1.45.0';
You could try running snmpwalk against your device to see if you have these OIDs. You may need to customize the plugin in order for it to work with your hardware.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: plugin to monitor palo-alto and f5 switches

Post by rnjie »

so which one exactly do you guys support so i can use? cuz using the switch/network wizard all return unknown status'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: plugin to monitor palo-alto and f5 switches

Post by lmiltchev »

I don't think our Switch wizard would monitor load balancers... Can you run the following commands:

Code: Select all

snmpwalk -v 2c -c <community> <ip address> > /tmp/walk1
snmpwalk -v 2c -c <community> <ip address> -On > /tmp/walk2
substituting <community> and <ip address> with actual values?

Once you are done, upload the walk1 and walk2 files that were generated in the /tmp directory by running the above commands.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: plugin to monitor palo-alto and f5 switches

Post by rnjie »

please see attachment of files from the commands you requested
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: plugin to monitor palo-alto and f5 switches

Post by lmiltchev »

I don't find any references of CPU or Memory in walk1 file. You can only monitor items that have been enabled on the switch and the ones that you have access to. Are you sure that you have a permission to walk the whole tree?

I didn't find any of the OIDs (from the plugin) in the two files that you provided. I would recommend that you review the documentation for your Cisco switch (or contact the manufacturer), and find what are the OIDs that you need to use in order to obtain the CPU and Memory info. Then, you could use the "SNMP Walk" wizard that ships with Nagios XI in order to add your checks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: plugin to monitor palo-alto and f5 switches

Post by rnjie »

okay, thanks i will do that, what about palo -alto, should i run thesame commands and send you the file to check if there is a plugin i can use?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: plugin to monitor palo-alto and f5 switches

Post by lmiltchev »

You can try running the snmpwalk and grepping for cpu and memory, e.g.

Code: Select all

snmpwalk -v 2c -c <community> <ip address> | grep -i 'cpu\|memory' | grep -v grep
Have you tried any of the 3rd party plugins on the Nagios Exchange? You may not need to use a 3rd party plugin if you knew the OIDs for obtaining the CPU and Memory info. Again, the documentation for the device and/or contacting the manufacture is the best way to go about it. Once you know the OIDs, use the SNMP Walk wizard.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked