Page 1 of 2

Palo Alto 5220 Checks need assistance

Posted: Wed Jan 23, 2019 10:55 am
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$

Re: Palo Alto 5220 Checks need assistance

Posted: Wed Jan 23, 2019 3:22 pm
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$

Re: Palo Alto 5220 Checks need assistance

Posted: Wed Jan 23, 2019 3:28 pm
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.

Re: Palo Alto 5220 Checks need assistance

Posted: Wed Jan 23, 2019 3:32 pm
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.

Re: Palo Alto 5220 Checks need assistance

Posted: Wed Jan 23, 2019 3:33 pm
by cdienger
Absolutely. We'll wait to hear back from you.

Re: Palo Alto 5220 Checks need assistance

Posted: Thu Feb 07, 2019 2:36 pm
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?

Re: Palo Alto 5220 Checks need assistance

Posted: Thu Feb 07, 2019 3:17 pm
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%

Re: Palo Alto 5220 Checks need assistance

Posted: Thu Feb 07, 2019 3:31 pm
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$

Re: Palo Alto 5220 Checks need assistance

Posted: Thu Feb 07, 2019 3:36 pm
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

Re: Palo Alto 5220 Checks need assistance

Posted: Thu Feb 07, 2019 3:55 pm
by benningtonr