danfruehauf / nagios-plugins Goto Github PK
View Code? Open in Web Editor NEWNagios Plugins I maintain, currently only check_vpn and check_sql
License: GNU General Public License v2.0
Nagios Plugins I maintain, currently only check_vpn and check_sql
License: GNU General Public License v2.0
Hello, cannot establish a connection with the below config for openvpn udp (xxxxx out sensitive data). Any idea to the failure?:
remote xx.xx.xx.xx 1194 udp
persist-key
auth-user-pass
tls-client
pull
comp-lzo adaptive
nobind
dev tun
persist-tun
ca xxxxxxxxxxxxxxxx.ca
cert xxxxxxxxxxx.crt
key xxxxxxxxxxx.pem
Would be great if we could check these protocols..
They might be a little tricky because there is so many ways to configure them. Several authentication mechanisms like certificates, psk (shared key) and login/pass (eap, xauth..). The good thing is that they work similarly.
IKEv2 is becoming the new standard in the VPN world and it would be a great addition for this plugin.
Much like the check_http plugin of nagios, we should have performance metrics. At least latency.
Hi,
Could you provide us a cmd to install the check_sql plugin and let me know the dependencies, provide the path for downloading and installing the plugin
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!
Hello! I was able to run the plugin from the console, but no from Nagios.
From console
root@:/usr/lib/nagios/plugins# /usr/bin/sudo /usr/lib/nagios/plugins/check_vpn -t pptp -H vpn.com -u [email protected] -p Pa$$w0rd -- require-mppe refuse-pap refuse-eap refuse-chap refuse-mschap
OK: VPN to ' vpn.com' up and running on 'ppp0', 'http://www.google.com' reachable|time=0,216s;size=258B
But from Nagios I get: Critical: VPN (pptp) connection failed to 'vpn.com': ''
My command is
define command {
command_name check_vpn-pptp
command_line /usr/bin/sudo /usr/lib/nagios/plugins/check_vpn -t pptp -H
}
If I set the command as you described in the documentation (sudo
And I included the line to sudoers using visudo: nagios ALL=(ALL) NOPASSWD:/usr/lib/nagios/plugins/check_vpn
Thank you in advance from that great plugin
Hello,
Im trying to setup a relative easy check. The VPN is working as it should, but when I try it with the check_vpn (check_vpn -t l2tp -H -u -p -- debug) script, it always says 'VPN (l2tp) connection failed to '': '''. Any idea what it could be?
Hello,
I am trying to configure the plugin to run on the pptp server itself:
./check_vpn -t pptp -H vpn.com -u user -p pass -- mru 1410 mtu 1410 novj novjccomp nobsdcomp
Critical: VPN (pptp) connection failed to 'vpn.com': ''
I have set the ppp device to eth0 (gre0 is disabled, only eth0 is up and running) in pptp.sh.
declare -r PPTP_DEVICE_PREFIX=eth0
and I still get the above error. Do you have any ideas what might be wrong? strace shows me it probably cannot recognize the correct ppp adapter to work with. I am able to connect to the pptp server using the standard pptp client.
pptp vpn.com --nolaunchpppd
~�}#�!}!}!} }=}!}$}$�}"}&} } } } }#}%�#�}
Hi, thanks first for this module!
When I followed the test you provide here :
./check_vpn -t openvpn -H openvpn.vpn.com -u dan -p password -- --ca /etc/openvpn/ca.crt --config /etc/openvpn/vpn.com.conf --proto tcp
I was not able to connect, adding -d tun to the command above and it is working.
I thought it was the default but apparently when -d tun is missing the script is not working correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.