I'm not sure I understand the question, but, the nrpe comes from the same directory - I guess.
No, I only have one nagios server. What I'm trying to accomplish with nagios is to check a webserver and make sure that it's webpage is up.
So, when I manually run the command:
/usr/local/nagios/libexec/check_http -H serverhostname.com -S -p 7773 -u /folder/webpage.jsp
I get a positive response of OK.
I think I've got the nrpe.cfg command line configured. But, having a little trouble in getting the services.cfg arguments for the nrpe to work.
For instance, here is my nrpe.cfg command line to check for https with port check:
command[check_https_port]=/usr/local/nagios/libexec/check_http -H $ARG1$ -S -p $ARG2$ -u $ARG3$
It has 3 arguments, one for the webpage, one for the port no., and one for the actual folder and file/page.
Here's my services.cfg for checking the https site
Are my inputs for the arguments correct - nope. I guess I need to see a sample or a proper syntax on how to provide the right arguments.
Again many thanks and sorry for being a newbie.