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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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
?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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 ~]#
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post by dheerushops »

How to get only CPU Load and Ping alert through email ?
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post by dheerushops »

How to get only CPU Load and Ping alerts through email ?
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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.
Locked