Search found 5 matches
- Mon Sep 02, 2019 1:51 am
- Forum: Open Source Nagios Projects
- Topic: Cisco ASA 5515 VPN sessions and Usernames
- Replies: 9
- Views: 3281
Re: Cisco ASA 5515 VPN sessions and Usernames
So now the scripts runs and gives the same output from command line for both root and nagios users. [root@xxxxxx etc]# /usr/local/nagios/libexec/check_asa_vpn.sh WARNING - Connected VPN users: xxxx [root@xxxxxx etc]# su nagios [nagios@xxxxxx etc]$ /usr/local/nagios/libexec/check_asa_vpn.sh WARNING -...
- Fri Aug 30, 2019 11:40 am
- Forum: Open Source Nagios Projects
- Topic: Cisco ASA 5515 VPN sessions and Usernames
- Replies: 9
- Views: 3281
Re: Cisco ASA 5515 VPN sessions and Usernames
Hi Scott.
I get no output when I run
I get no output when I run
Code: Select all
sshpass -p 'xxx' ssh [email protected] $'sh vpn-sessiondb svc\n exit\n'- Fri Aug 30, 2019 10:33 am
- Forum: Open Source Nagios Projects
- Topic: Cisco ASA 5515 VPN sessions and Usernames
- Replies: 9
- Views: 3281
Re: Cisco ASA 5515 VPN sessions and Usernames
Hmmmm. I get "OK- No VPN users connected."
- Fri Aug 30, 2019 8:57 am
- Forum: Open Source Nagios Projects
- Topic: Cisco ASA 5515 VPN sessions and Usernames
- Replies: 9
- Views: 3281
Re: Cisco ASA 5515 VPN sessions and Usernames
I'm not really familiar with this but what do you get when you run this from the Nagios server? To me it seems like there is an extra $ in there sshpass -p 'xxx' ssh xxx@xxx.xxx.xxx.xxx $'sh vpn-sessiondb svc\n exit\n' | grep "Username : " | awk {'print $3'} | tr "\\\ " " &...
- Fri Aug 30, 2019 5:38 am
- Forum: Open Source Nagios Projects
- Topic: Cisco ASA 5515 VPN sessions and Usernames
- Replies: 9
- Views: 3281
Cisco ASA 5515 VPN sessions and Usernames
Hello, I want to get the number of VPN sessions on an ASA 5515 and the usernames of the users connected. Warning will be at if any users are connected. No critical alert needed. I have created the script below: #!/bin/bash VPN_USERS=$(sshpass -p 'xxx' ssh xxx@xxx.xxx.xxx.xxx $'sh vpn-sessiondb svc\n...