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 :/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?
Problem with check_http for https site
Re: Problem with check_http for https site
Former Nagios Employee.
me.
me.
Re: Problem with check_http for https site
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.
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
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
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
"pwd" is a VERY useful tip - thank you! 
Re: Problem with check_http for https site
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: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?
Code: Select all
export PS1="\w $"
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.
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
And thank you for the tip about the source/compiled folders too - it makes a lot more sense now.
Re: Problem with check_http for https site
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.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..?
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
AND the tips about the command prompt and /libexec
I'm having a good day today!
I'm having a good day today!
Re: Problem with check_http for https site
Remember me when I start asking for MVP nominations next year. 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Problem with check_http for https site
It would appear you're starting quite early this yeareloyd wrote:Remember me when I start asking for MVP nominations next year.
Former Nagios Employee.
me.
me.