Monitor vpn interfaces

L5 Sessionator

Monitor vpn interfaces


According other discution I know that monitoring for tunnel interfaces through snmp is currently not possible. Would like to know if someone have done something to monitor them through the API ans can agree to share with us ....


Tags (4)
L3 Networker

Re: Monitor vpn interfaces

I am not sure about monitoring the interfaces but from the API one can surely get the interface statistics....even if it is a logical interface such as the tunnel interfaces.

From the cli run the follwing steps:

1) >> debug cli on

2)>> configure

3) # run show interface < interface name>

that should give you the PAI output that you could use in a script or your browser from the next time....

that can be done as follows (although the following examples are not for interfaces )

Now if you want to use the XML API to create object, you can send your request with these info:


element=<entry name='test'><description>my desc</description><ip-netmask></ip-netmask></entry>

Example of API URL Request:

https://hostname/api/?type=config&action=set&key=INSERT API KEY HERE&xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address&element=<entry name='test'><description>my desc</description><ip-netmask></ip-netmask></entry>

L3 Networker

Re: Monitor vpn interfaces

I found an easier way to do it....

https://<Enter Firewall's IP here>/api/?type=op&cmd=<show><interface>tunnel.1</interface></show>&key=<Insert the key value here>

The key value can be generated using :

First login to a firewall through a browser.

To generate the key using the Rest API use the following syntax and submit to the browser on a new tab.


I hope this is helpful. I dont how good an indicator this will be to monitor a logical interface. But its worth a shot.

L3 Networker

Re: Monitor vpn interfaces

Nope...It does not seem like we get the interface status, but we do get all the other statistics including the interface counters.

I dont know If that is helpful to you.


L5 Sessionator

Re: Monitor vpn interfaces

Thx a lot for your help :-)


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 Live Community as a whole!

The Live Community thanks you for your participation!