Problem with check_http for https site

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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Problem with check_http for https site

Post by hsmith »

peterooney wrote:Just as a matter of interest, is there any way to make Linux display the full current path at the command prompt, instead of just the current foldername?
You can issue the 'pwd' command to get your current path, but I am not 100% how to do it all the time. That would get super messy and take up half of your screen at all times though :/
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Problem with check_http for https site

Post by rkennedy »

The directory you tried to compile in is the directory where the plugins are compiled. Not the source.

Thanks for that @eloyd. Yes, to check your current directory you can use the command pwd.
Former Nagios Employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Problem with check_http for https site

Post by neworderfac33 »

I can't use wget, as all downloads have to go via Security.
However, if my colleague comes back in tomorrow, hopefully we can use the Security-cleared nagios-plugins-2.0.tar tht's currently living on our Windows share, but I'll need my colleague's help to FTP it over.
I don't suppose you'd be interested in speculate as to how my plugins ended up in /usr/local/nagios/etc/libexec, would you..?

Cheers

Pete
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Problem with check_http for https site

Post by neworderfac33 »

"pwd" is a VERY useful tip - thank you! :-)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Problem with check_http for https site

Post by eloyd »

peterooney wrote:Just as a matter of interest, is there any way to make Linux display the full current path at the command prompt, instead of just the current foldername?
There is. Your prompt is what is showing you your current directory. You can change your prompt, assuming you're on a RHEL/CentOS machine running bash as your shell (which is the default) as follows:

Code: Select all

export PS1="\w $"
If you want to do this all the time, put it in your ~/.bashrc file. If you want more help, look at http://www.tldp.org/HOWTO/Bash-Prompt-H ... ences.html

EDIT: You can add any other characters in there as well to format it to look better.
Last edited by eloyd on Tue Oct 20, 2015 10:34 am, edited 1 time in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Problem with check_http for https site

Post by neworderfac33 »

And thank you for the tip about the source/compiled folders too - it makes a lot more sense now.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Problem with check_http for https site

Post by eloyd »

peterooney wrote:I don't suppose you'd be interested in speculate as to how my plugins ended up in /usr/local/nagios/etc/libexec, would you..?
This is the default location that Nagios expects to put the plugins into (and find them for execution). If they are not in this directory, you need to update the nagios.cfg file to say where they live.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Problem with check_http for https site

Post by neworderfac33 »

AND the tips about the command prompt and /libexec

I'm having a good day today! :-)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Problem with check_http for https site

Post by eloyd »

Remember me when I start asking for MVP nominations next year. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Problem with check_http for https site

Post by hsmith »

eloyd wrote:Remember me when I start asking for MVP nominations next year. :-)
It would appear you're starting quite early this year :)
Former Nagios Employee.
me.
Locked