Palo Alto 5220 Checks need assistance
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Palo Alto 5220 Checks need assistance
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$
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
The macros are case sensitive. Instead of:
$USER1$/check_paloalto $hostaddress$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
use:
$USER1$/check_paloalto $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
$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
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
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.
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
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
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?
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
What command/args are you using when getting 0%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?
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Palo Alto 5220 Checks need assistance
[[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$
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
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
https://pypi.org/project/check_paloalto/#files
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm