All ok, big thx to you. Problem solve.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
Search found 10 matches
- Wed Apr 26, 2017 12:17 am
- Forum: Open Source Nagios Projects
- Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
- Replies: 10
- Views: 15213
Re: HTTP WARNING: HTTP/1.1 400 Bad Request
- Mon Apr 24, 2017 10:28 pm
- Forum: Open Source Nagios Projects
- Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
- Replies: 10
- Views: 15213
Re: HTTP WARNING: HTTP/1.1 400 Bad Request
change tossax wrote:Try using the -f follow option:
Code: Select all
/usr/local/nagios/libexec/check_http -H portal.work.com -f follow
Code: Select all
check_http!-H!-f follow
- Mon Apr 24, 2017 4:37 am
- Forum: Open Source Nagios Projects
- Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
- Replies: 10
- Views: 15213
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...
- Tue Apr 18, 2017 11:25 pm
- Forum: Open Source Nagios Projects
- Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
- Replies: 10
- Views: 15213
Re: HTTP WARNING: HTTP/1.1 400 Bad Request
Send you pm, please check.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.
- Tue Apr 18, 2017 11:16 pm
- Forum: Open Source Nagios Projects
- Topic: Email notification
- Replies: 6
- Views: 1666
Re: Email notification
Ready to close. Thanks!dwhitfield wrote:Did you have any more questions or are we ready to close? Thanks!
- Thu Apr 13, 2017 10:33 pm
- Forum: Open Source Nagios Projects
- Topic: Email notification
- Replies: 6
- Views: 1666
Re: Email notification
Thx to you.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
- Thu Apr 13, 2017 10:30 pm
- Forum: Open Source Nagios Projects
- Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
- Replies: 10
- Views: 15213
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...
- Wed Apr 12, 2017 11:21 pm
- Forum: Open Source Nagios Projects
- Topic: HTTP WARNING: HTTP/1.1 400 Bad Request
- Replies: 10
- Views: 15213
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 ?
/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 ?
- Wed Apr 12, 2017 10:25 pm
- Forum: Open Source Nagios Projects
- Topic: Email notification
- Replies: 6
- Views: 1666
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...
- Wed Apr 12, 2017 12:36 am
- Forum: Open Source Nagios Projects
- Topic: Email notification
- Replies: 6
- Views: 1666
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...