This support forum board is for support questions relating to
Nagios XI, our flagship commercial network monitoring solution.
-
lgute
- Posts: 416
- Joined: Mon Apr 06, 2020 2:49 pm
Post
by lgute »
Hi
@baber,
I think the single quotes may be in the wrong place.
baber wrote: ↑Tue Jul 09, 2024 1:38 am
I changed it such as follow
Code: Select all
define service{
use local-service
host_name subs
service_description mebp
servicegroups OD
check_command check_http!' -H mb.com -w 5 -c 10 -p 8980 -u /mb/ai/branch/all -a mba:785\!"@"Nobv'
}
Is that correct ?
You previously posted, that running the check_http command with the username and password in single quotes does work.
baber wrote: ↑Tue Jul 02, 2024 11:16 am
so thanks now when I am running
/usr/local/nagios/libexec/check_http -H myurl.com -w 5 -c 10 -p 8980 -u /me/api/test/all -a 'john:555!@BabP'
on nagios it is working but ...
I think your single quotes need to be in the same place as what you were using when running the check command in the terminal.
Code: Select all
check_command check_http! -H myurl.com -w 5 -c 10 -p 8980 -u /me/api/test/all -a 'john:555\!@BabP'
Or with your latest example (assuming the double quotes are not actually a part of the password).
Code: Select all
check_command check_http! -H mb.com -w 5 -c 10 -p 8980 -u /mb/ai/branch/all -a 'mba:785\!@Nobv'
Please let us know if you have any other questions or concerns.
-Laura
-
baber
- Posts: 308
- Joined: Wed Oct 21, 2015 4:39 am
Post
by baber »
lgute wrote: ↑Tue Jul 09, 2024 9:18 am
Hi
@baber,
I think the single quotes may be in the wrong place.
baber wrote: ↑Tue Jul 09, 2024 1:38 am
I changed it such as follow
Code: Select all
define service{
use local-service
host_name subs
service_description mebp
servicegroups OD
check_command check_http!' -H mb.com -w 5 -c 10 -p 8980 -u /mb/ai/branch/all -a mba:785\!"@"Nobv'
}
Is that correct ?
You previously posted, that running the check_http command with the username and password in single quotes does work.
baber wrote: ↑Tue Jul 02, 2024 11:16 am
so thanks now when I am running
/usr/local/nagios/libexec/check_http -H myurl.com -w 5 -c 10 -p 8980 -u /me/api/test/all -a 'john:555!@BabP'
on nagios it is working but ...
I think your single quotes need to be in the same place as what you were using when running the check command in the terminal.
Code: Select all
check_command check_http! -H myurl.com -w 5 -c 10 -p 8980 -u /me/api/test/all -a 'john:555\!@BabP'
Or with your latest example (assuming the double quotes are not actually a part of the password).
Code: Select all
check_command check_http! -H mb.com -w 5 -c 10 -p 8980 -u /mb/ai/branch/all -a 'mba:785\!@Nobv'
Thanks. solved with your solution
-
lgute
- Posts: 416
- Joined: Mon Apr 06, 2020 2:49 pm
Post
by lgute »
Hi
@baber,
Thank you for the update. I'm glad I could help.
Since you have a resolution, I am going to lock this thread and mark it Resolved.
Please let us know if you have any other questions or concerns.
-Laura