Monitoring the firewall

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Monitoring the firewall

L1 Bithead

Hello,

 

i would like to monitor the firewall using centreon. Unfortunately we are using the free version so we dont have access to the snmp and ssh plugins packs and we have to do everything by ourselves.

 

To get CPU, uptime information and so on i can use snmp using OID. However to get more detailled informations i would like to run ssh command remotely. 

 

The problem is that when i try to execute an ssh command it get stuck and nothing happened (while when i directly connect to a shell it works).

 

For example this work : ssh admin@paloaltovm

but this does not work : ssh admin@paloaltovm "show system resources"

 

Is there anything i can do to solve that ? thank you

1 REPLY 1

Community Team Member

Hi @zakergfx ,

 

I have no experience using SSH on the PA like that (adding additional commands after the SSH connect) but I've found some similar discussions on the same topic so my guess is that it isn't supported.

 

I suggest using an expect script instead:

https://live.paloaltonetworks.com/t5/api-articles/scripts-expect-scripts-for-operational-and-config-...

 

or even using XML API.

 

Kind regards,

-Kim.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.
  • 712 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!