Search found 10 matches

by Nessero
Wed Apr 26, 2017 12:17 am
Forum: Open Source Nagios Projects
Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
Replies: 10
Views: 15190

Re: HTTP WARNING: HTTP/1.1 400 Bad Request

cdienger wrote:The command should look like this:

define command{
command_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
}


and then the check command:

check_command check_http!-f follow
All ok, big thx to you. Problem solve.
by Nessero
Mon Apr 24, 2017 10:28 pm
Forum: Open Source Nagios Projects
Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
Replies: 10
Views: 15190

Re: HTTP WARNING: HTTP/1.1 400 Bad Request

ssax wrote:Try using the -f follow option:

Code: Select all

/usr/local/nagios/libexec/check_http -H portal.work.com -f follow
change to

Code: Select all

check_http!-H!-f follow
nothing changes in web, HTTP OK: HTTP/1.1 301 Moved Permanently - 352 bytes in 0.115 second response time
by Nessero
Mon Apr 24, 2017 4:37 am
Forum: Open Source Nagios Projects
Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
Replies: 10
Views: 15190

Re: HTTP WARNING: HTTP/1.1 400 Bad Request

You need a -H before the host. Note also the difference if you use -S versus not using it. [root@centos7x64 scripts]# /usr/local/nagios/libexec/check_http -H portal.com -S HTTP OK: HTTP/1.1 200 OK - 10029 bytes in 1.521 second response time |time=1.520601s;;;0.000000 size=10029B;;;0 [root@centos7x6...
by Nessero
Tue Apr 18, 2017 11:25 pm
Forum: Open Source Nagios Projects
Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
Replies: 10
Views: 15190

Re: HTTP WARNING: HTTP/1.1 400 Bad Request

dwhitfield wrote:Is this a public website? Can you pm the URL so that we can test? If you pm make sure you update this thread so it comes back up on our portal.
Send you pm, please check.
by Nessero
Tue Apr 18, 2017 11:16 pm
Forum: Open Source Nagios Projects
Topic: Email notification
Replies: 6
Views: 1659

Re: Email notification

dwhitfield wrote:Did you have any more questions or are we ready to close? Thanks!
Ready to close. Thanks!
by Nessero
Thu Apr 13, 2017 10:33 pm
Forum: Open Source Nagios Projects
Topic: Email notification
Replies: 6
Views: 1659

Re: Email notification

mcapra wrote:That would be done with the notification_interval and notification_timeperiod in your service/host definitions.

More info here:
https://assets.nagios.com/downloads/nag ... tions.html
Thx to you.
by Nessero
Thu Apr 13, 2017 10:30 pm
Forum: Open Source Nagios Projects
Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
Replies: 10
Views: 15190

Re: HTTP WARNING: HTTP/1.1 400 Bad Request

Can you run check_http with verbose output ( -v ) enabled and share the (sanitized) output? It may offer some clues: /usr/local/nagios/libexec/check_http portal.work.com -v Does this portal have a specific port that needs to be used other than 80/443? root@web01:~# /usr/local/nagios/libexec/check_h...
by Nessero
Wed Apr 12, 2017 11:21 pm
Forum: Open Source Nagios Projects
Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
Replies: 10
Views: 15190

HTTP WARNING: HTTP/1.1 400 Bad Request

Hi ! Have strange request from check_http after configure
/usr/local/nagios/libexec/check_http portal.work.com
HTTP WARNING: HTTP/1.1 400 Bad Request - 391 bytes in 0.745 second response time |time=0.744530s;;;0.000000 size=391B;;;0

I know theare load balancer, how can i configure correcct command ?
by Nessero
Wed Apr 12, 2017 10:25 pm
Forum: Open Source Nagios Projects
Topic: Email notification
Replies: 6
Views: 1659

Re: Email notification

Did you follow a particular guide for the Nagios end of things when setting this up? Does your contact have the proper host_notification_commands and service_notification_commands set? Can you share the output of which mail ? The default Linux MTA doesn't typically recognize Postfix unless you tell...
by Nessero
Wed Apr 12, 2017 12:36 am
Forum: Open Source Nagios Projects
Topic: Email notification
Replies: 6
Views: 1659

Email notification

Hi ! Configure nagios and postfix to send email and nothing work. nagios command.cfg: #'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOS...