Nagios Monitoring Question

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

BigBirdy
Posts: 133
Joined: Sun Mar 13, 2005 2:10 pm
Location: Squamish, BC
Contact:

Nagios Monitoring Question

Postby BigBirdy » Thu Jun 23, 2005 8:47 pm

I have been setting up the various commands and services to monitor our Scalix install on our existing Nagios machine. I have a couple of problems:

1: How to setup the checks for the SWA and other web services?

Since we are running tomcat on 8443, I made the changes to the commands as follows: (uneccessary text removed)

check_ubermanager
command_line $USER1$/check_http -H $HOSTADDRESS$ -u /caa?query=monitor -p 8443

check_res
command_line $USER1$/check_http -H $HOSTADDRESS$ -u /res/RESDispatcher?query=monitor -p 8443

check_swa
command_line $USER1$/check_http -H $HOSTADDRESS$ -u /webmail/ -p 8443

These all return "Invalid HTTP response received from host on port 8443"

2: Settings for the check_queues, check_daemons and check_services

These all fail with "no output" but I can run any of them as root. The command for each is listed as

command_line sudo $USER1$/check_queues.py -c $ARG1$ -w $ARG2$ -q $ARG3$

So I added the nagios user to the /etc/sudoers file, but still no luck?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Re: Nagios Monitoring Question

Postby ScalixSupport » Fri Jun 24, 2005 8:19 am

BigBirdy wrote:I have been setting up the various commands and services to monitor our Scalix install on our existing Nagios machine. I have a couple of problems:

1: How to setup the checks for the SWA and other web services?

Since we are running tomcat on 8443, I made the changes to the commands as follows: (uneccessary text removed)

check_ubermanager
command_line $USER1$/check_http -H $HOSTADDRESS$ -u /caa?query=monitor -p 8443

check_res
command_line $USER1$/check_http -H $HOSTADDRESS$ -u /res/RESDispatcher?query=monitor -p 8443

check_swa
command_line $USER1$/check_http -H $HOSTADDRESS$ -u /webmail/ -p 8443

These all return "Invalid HTTP response received from host on port 8443"

2: Settings for the check_queues, check_daemons and check_services

These all fail with "no output" but I can run any of them as root. The command for each is listed as

command_line sudo $USER1$/check_queues.py -c $ARG1$ -w $ARG2$ -q $ARG3$

So I added the nagios user to the /etc/sudoers file, but still no luck?


Hello,

with regard to the first part of your question :

Please use --ssl on the command line as you are connecting to an SSL server, e.g.

command_line $USER1$/check_http --ssl -H $HOSTADDRESS$ -u /caa?query=monitor -p 8443

Cheers,

Sascha.

BigBirdy
Posts: 133
Joined: Sun Mar 13, 2005 2:10 pm
Location: Squamish, BC
Contact:

Postby BigBirdy » Mon Jul 04, 2005 8:32 pm

Thanik for the suggestion. It worked for the ubermanager check and returned...

OK - HTTP/1.1 302 Moved Temporarily - 0.092 second response time

But the basic check for the SWA does not? Running the command manually returns the following...

./check_http --ssl -H 192.168.1.3 -u /res/RESDispatcher?query=monitor -p 8443


HTTP WARNING: HTTP/1.1 404 /res/RESDispatcher


Anything else I might be missing?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Jul 05, 2005 9:46 am

BigBirdy wrote:Thanik for the suggestion. It worked for the ubermanager check and returned...

OK - HTTP/1.1 302 Moved Temporarily - 0.092 second response time

But the basic check for the SWA does not? Running the command manually returns the following...

./check_http --ssl -H 192.168.1.3 -u /res/RESDispatcher?query=monitor -p 8443


HTTP WARNING: HTTP/1.1 404 /res/RESDispatcher


Anything else I might be missing?


Actually, for monitoring purposes it would be sufficient to just not pass a URL on and by the mere fact that you are getting a response on that port you can be certain the box still lives. So why don't you try that? The error codes you are getting back are standard http error codes, a redirect and a page not found. Both are due to the URL passed.

Cheers,

Sascha.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 34 guests

cron