How do I check the Internet connection state

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
huaming
Posts: 26
Joined: Thu Jan 16, 2020 3:49 am

How do I check the Internet connection state

Post by huaming »

Hi Support team.

in my ENV, we use checkpoint 5100 as DMZ firewall. We connect the Internet link (fixed IP) to this firewall. I am looking for a script which can monitor the logical connection state of this link. Would you please suggest some scripts.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How do I check the Internet connection state

Post by ssax »

You could setup a host check that pings an external IP address and if it's not reachable that should alert on no internet.

A lot of customers use this plugin which may work for it:

https://labs.consol.de/nagios/check_nwc ... index.html

Which requires a different setup:

Code: Select all

wget https://labs.consol.de/assets/downloads/nagios/check_nwc_health-8.3.1.tar.gz
tar zxf check_nwc_health-8.3.1.tar.gz
cd check_nwc_health-8.3.1
./configure
make all
make install

Code: Select all

/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode cpu-load
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode hardware-health
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode memory-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode disk-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-errors
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-health
You could also use the SNMP or SNMP Walk wizards to monitor specific SNMP OIDs if you have SNMP enabled on the remote device.

If it's an interface on the firewall you should be able to run the Network Switch / Router wizard against it to monitor port bandwidth/port status if you have SNMP enabled.
huaming
Posts: 26
Joined: Thu Jan 16, 2020 3:49 am

Re: How do I check the Internet connection state

Post by huaming »

THanks, I will explore it.
Locked