danfruehauf / nagios-plugins

Nagios Plugins I maintain, currently only check_vpn and check_sql
GNU General Public License v2.0
29 stars 31 forks source link

check_vpn: add option to specify parameters to l2tpd configuration #3

Open james-gonzalez opened 11 years ago

james-gonzalez commented 11 years ago

Hi, Great plugin... we used OpenVPN and L2TP so this is great for us. Just a question for you... How would I tell it to use a pre-shared key/secret?

I am doing ./check_vpn -t l2tp -u username -p password (I need to also specify the shared secret!)

Thanks!

danfruehauf commented 10 years ago

Thanks for the feedback, happy this is useful for someone!

You may pass options to the plugin ppp options, however I think the parameter you're looking for is in xl2tpd.conf.

Have a look at https://github.com/danfruehauf/nagios-plugins/blob/master/check_vpn/check_vpn_plugins/l2tp.sh#L187

Tell me what's the parameter you're looking for. I think what I'll do is enable the user to pass an extra parameters file for xl2tpd, which we could mend in. It's pretty much an impossible task to cater for every configuration easily.

I was actually planning on doing some work on that plugin and adding some more nice things in. Suggestions always welcome!

danfruehauf commented 10 years ago

Oops, that's the wrong ticket that was closed.

danfruehauf commented 10 years ago

@cultavix I'm still waiting for you to describe me a VPN scenario you have.

If you can provide me with server side configuration, that'd be awesome - I'll understand better what needs implementation.