Using Nagios check_snmp plugin to get info from Forcepoint
Posted: Tue Mar 31, 2020 12:08 pm
Hi all.
I have a question regarding custom service, which I wrote, but it seems, it's not working fine. I did read a post here on this forum:
https://support.nagios.com/forum/viewto ... =7&t=32742 which is explained great, but my service isn't pooling any data.
Here is the scenario:
I have a firewall Forcepoint NGFW, from which I wold like to get number of currently established IPsec SAs between the endpoint pair.
Here https://help.stonesoft.com/onlinehelp/S ... D9EB7.html I found this: fwVpnEp6IpsecSa
Further investigation led me to this, where I was able to see the OID (1.3.6.1.4.1.1369.5.2.1.13.1.7) for this service. http://oidref.com/1.3.6.1.4.1.1369.5.2.1.13.1.7
In Nagios I have this command:
define command{
command_name check_ipsec_sas
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -P 3 -L authPriv -U user -a MD5 -A MD5Password -x AES -X AESPAssword -o $ARG1$
}
and this service:
define service {
service_description NUMBER_OF_CURRENTLY_VPN_IPSEC
check_command check_ipsec_sas!1.3.6.1.4.1.1369.5.2.1.13.1.7
host_name host1
notes Number of currently established IPsec SAs
event_handler_enabled 0
use generic-service
contact_groups +admins
}
On the WEB I see my newly created service, status is green, unsder Status Information: SNMP OK - = No Such Instance currently exists at this OID
Can anyone point me to the right direction? Any help is much appreciated.
Regards. Tomi
I have a question regarding custom service, which I wrote, but it seems, it's not working fine. I did read a post here on this forum:
https://support.nagios.com/forum/viewto ... =7&t=32742 which is explained great, but my service isn't pooling any data.
Here is the scenario:
I have a firewall Forcepoint NGFW, from which I wold like to get number of currently established IPsec SAs between the endpoint pair.
Here https://help.stonesoft.com/onlinehelp/S ... D9EB7.html I found this: fwVpnEp6IpsecSa
Further investigation led me to this, where I was able to see the OID (1.3.6.1.4.1.1369.5.2.1.13.1.7) for this service. http://oidref.com/1.3.6.1.4.1.1369.5.2.1.13.1.7
In Nagios I have this command:
define command{
command_name check_ipsec_sas
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -P 3 -L authPriv -U user -a MD5 -A MD5Password -x AES -X AESPAssword -o $ARG1$
}
and this service:
define service {
service_description NUMBER_OF_CURRENTLY_VPN_IPSEC
check_command check_ipsec_sas!1.3.6.1.4.1.1369.5.2.1.13.1.7
host_name host1
notes Number of currently established IPsec SAs
event_handler_enabled 0
use generic-service
contact_groups +admins
}
On the WEB I see my newly created service, status is green, unsder Status Information: SNMP OK - = No Such Instance currently exists at this OID
Can anyone point me to the right direction? Any help is much appreciated.
Regards. Tomi