Page 2 of 2

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Fri Apr 03, 2020 9:19 am
by dheerushops
Getting Critical for HTTP:


HTTP

CRITICAL 04-03-2020 09:03:36 8d 4h 12m 32s 4/4 connect to address 66.248.241.245 and port 80: Connection refused

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Tue Apr 07, 2020 4:38 pm
by cdienger
What is the full plugin command for this check?

It looks like either the server isn't listening on port 80 or something is blocking the connection for the Nagios server to the webserver.

Does a curl work from the Nagios server if you run:

Code: Select all

curl -v 66.248.241.245
?

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Wed Apr 08, 2020 8:33 am
by dheerushops
[root@nagiosserver ~]# curl -v 66.248.241.245
* About to connect() to 66.248.241.245 port 80 (#0)
* Trying 66.248.241.245... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
[root@nagiosserver ~]#
[root@nagiosserver ~]#
[root@nagiosserver ~]# ping 66.248.241.245
PING 66.248.241.245 (66.248.241.245) 56(84) bytes of data.
64 bytes from 66.248.241.245: icmp_seq=1 ttl=64 time=0.223 ms
^C
--- 66.248.241.245 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 921ms
rtt min/avg/max/mdev = 0.223/0.223/0.223/0.000 ms
[root@nagiosserver ~]#

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Wed Apr 08, 2020 8:38 am
by dheerushops
httpd service is inactive. We started httpd service.


But still we are getting Warning alert . Can you please check.

HTTP

WARNING 04-08-2020 08:23:36 0d 0h 0m 48s 4/4 HTTP WARNING: HTTP/1.1 403 Forbidden - 4299 bytes in 0.003 second response time

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Fri Apr 10, 2020 2:42 pm
by cdienger
It looks like the server is responding with a '403 Forbidden' message. Do you want to see a CRITICAL instead of WARNING or are you expecting this request to be successful?

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Wed Jun 03, 2020 9:30 am
by dheerushops
How to get only CPU Load and Ping alert through email ?

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Tue Jun 09, 2020 8:01 am
by dheerushops
How to get only CPU Load and Ping alerts through email ?

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Fri Jul 10, 2020 8:45 am
by dheerushops
We have configured SMTP server with nagios server. We have to set the notifications alerts to one email for CPU alert only. Can you please tell us the steps.

Re: Return code of 255 for service 'CPU Load' on hos

Posted: Thu Jul 30, 2020 10:34 am
by dheerushops
We have configured SMTP server with nagios server. We have to set the notifications alerts to one email for CPU alert only. Can you please tell us the steps.