Palo Alto 5220 Checks need assistance

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Palo Alto 5220 Checks need assistance

Post by benningtonr »

i am still trying to set up the Palo Alto check. I t has been awhile do to the time it has taken to get the Palos in place. Anyway, i have some of the checks working, but for some reason uptime is not responding properly in the GUI, but it does at the CLI.

this is from the CLI:
[root@nagios libexec]# ./check_paloalto 192.168.98.238 WHRO-RO uptime
0 days, 1 hours, 33 minutes, 42 seconds
You have mail in /var/spool/mail/root
[root@nagios libexec]#


This is from the gui Check: I have the host the same as above
[[email protected] ~]$ /usr/local/nagios/libexec/check_paloalto $hostaddress$ WHRO-RO uptime
0 days, 0 hours, 0 minutes, 0 seconds

Here is the help command from the CLI:
[root@nagios libexec]# ./check_paloalto --help

Warning: Wrong command line arguments.
Usage: ./check_paloalto <hostname> <community> <part> <warning> <critical>

Parts are: load, sessionuse, state, uptime, fan, temp
Example: ./check_paloalto 127.0.0.1 public uptime

Here is what I have set as the command in XI:
$USER1$/check_paloalto $hostaddress$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Palo Alto 5220 Checks need assistance

Post by cdienger »

The macros are case sensitive. Instead of:

$USER1$/check_paloalto $hostaddress$ $ARG1$ $ARG2$ $ARG3$ $ARG4$

use:

$USER1$/check_paloalto $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Palo Alto 5220 Checks need assistance

Post by benningtonr »

Okay, i will make the change, but it works with load as the part. But i will make the change and report back.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Palo Alto 5220 Checks need assistance

Post by benningtonr »

Well blow my skirt up, that made it report uptime properly, thank you

I would like to leave this open as I put in the other checks tomorrow, just in case there are other issues.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Palo Alto 5220 Checks need assistance

Post by cdienger »

Absolutely. We'll wait to hear back from you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Palo Alto 5220 Checks need assistance

Post by benningtonr »

Well all seems to be right with the world, but I do have one other issue with this. My utilization always shows 0%, yet that is not what the Palo shows me, it is at 2-3%

Any Ideas?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Palo Alto 5220 Checks need assistance

Post by scottwilkerson »

benningtonr wrote:Well all seems to be right with the world, but I do have one other issue with this. My utilization always shows 0%, yet that is not what the Palo shows me, it is at 2-3%

Any Ideas?
What command/args are you using when getting 0%
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Palo Alto 5220 Checks need assistance

Post by benningtonr »

[[email protected] ~]$ /usr/local/nagios/libexec/check_paloalto 192.168.98.238 WHRO-RO load 5 10
Utilization: 0%
OK: Utilization=0%|'Utilization'=0%;5;10;0;100

$USER1$/check_paloalto $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Palo Alto 5220 Checks need assistance

Post by scottwilkerson »

Can you share your plugin, because the one I just downloaded from here looks like it requires flags for the args, so they must not be the same
https://pypi.org/project/check_paloalto/#files
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Palo Alto 5220 Checks need assistance

Post by benningtonr »

Locked