kg2857 wrote: ↑Thu Jul 11, 2024 10:59 pm
I'd make a host check with check_ping or check_icmp, a service check on the httpd service and a check that verifies the web site returns a certain string.
Thank you for your reply and apologies for my lack of knowledge on this but does this mean adding a new host (using the wizard or other method) or changing the current host command from:
Code: Select all
check_xi_service_http! -f ok -u "/" -S --sni -p 443
to something else?
Cheers,
Jamie
EDIT/UPDATE
I think i understand this a little better now, when using the Core Config Manager i can see the drop down options for check_ping and check_icmp so i decided to delete my website monitor and start again.
This time i added the host via CCM and havent added any services yet.
I have it set to use check_icmp "$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$"
arg1 = 100.0,20%
arg2 = 200.0,20%
So all i have is a single Host Check (check_icmp) and this keeps flipping between
Up - PING OK - Packet loss = 0%, RTA = 14.47 ms
and
Down - PING CRITICAL - Packet loss = 100%
EDIT 2
i have now noticed that i can replicate this issue directly in the linux terminal, basically when i start a ping to a website, it either works immediately and i will get 0% packet loss or sometimes it hangs for ages (only when starting the ping command) and then starts pinging so it seems that from my linux box, when starting a ping it sometimes hangs for a while but on other occasions works fine.
If it doesnt hang when i start the ping, it just works and never drops out, seems to be only when initiating the ping request
Here is an example of 2 different linux boxes hosted on the same hyper-v machine running pings started at the same time
The right side is the nagios vm (as you can see it didn't respond to the first 20 requests), left is a Kali vm that works continuously
ping.png
You do not have the required permissions to view the files attached to this post.