Re: [Nagios-users] Need some help regarding with tomcat server

2007-02-07 Thread Morris, Patrick
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of raghavendra kristam
> Sent: Wednesday, February 07, 2007 9:09 AM
> To: Josh Yost
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Need some help regarding with 
> tomcat server
> 
> Hi,
>  
> # /usr/local/nagios/libexec/check_tcp -H  
> Connection refused # /usr/local/nagios/libexec/check_tcp -H 
>  -p 5 Connection refused
> 
> Please let me know why i am getting Connection refused and 
> showing the status as critical in web interface. 

Is it really running on port 5?  If not, that's your problem.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Need some help regarding with tomcat server

2007-02-07 Thread raghavendra kristam

Hi,

# /usr/local/nagios/libexec/check_tcp -H 
Connection refused
# /usr/local/nagios/libexec/check_tcp -H  -p 5
Connection refused

Please let me know why i am getting Connection refused and showing the
status as critical in web interface.

Thanks,
Raghavendra.

On 1/30/07, Josh Yost <[EMAIL PROTECTED]> wrote:


raghavendra kristam wrote:
> Hi,
[snip]

> a)For server availability: listening to Tomcat server port periodically
and
> send out notification when there is no response on the port.
> b)For memory/disk usage: periodically check memory/disk space and send
out
> notification when the usage reaches certain thresholds.
> c) For requests per minute for the Tomcat Server and per JSP level
requests
> per minute and response time
>
>

Hi,

a) can be handled by check_tcp or check_http (fyi - I can't use
check_http -S for tomcat 4; I think it's a problem w/ the SSL
implementation on the older tomcats)

b) memory/CPU can be handled by either SNMP or, if running on Windows,
by using nsclient

c) not sure on this one, but maybe someone else has ideas.  I don't know
where these numbers would exist.

Good luck,
- Josh

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Need some help regarding with tomcat server

2007-01-31 Thread Morris, Patrick
> After Installed Nagios2.7 and Nagios plugin-1.4.5.
> The following configuration files are located in 
> /usr/local/nagios/etc cgi.cfg-sample  commands.cfg-sample  
> localhost.cfg-sample  nagios.cfg-sample  resource.cfg-sample 
> 
> Later copy those from $NAGIOSHOME/etc/*.cfg-sample to 
> $NAGIOSHOME/etc/*.cfg as 
> 
> cgi.cfg  commands.cfg  htpasswd.users  localhost.cfg  
> nagios.cfg  resource.cfg
> 
> The below configuration are not availble in /usr/local/nagios/etc/ .
> Do we need to create these files in /usr/local/nagios/etc/ or 
> did I missed any thing during installation time. 
> Please let me know.

If you've specified in your nagios.cfg file that that's where the files
are, then that's where you need to put them... Or you need to change
your nagios.cfg to point to where they are.  Pretty simple, really.

Also, keep in mind that just dropping the sample config files in without
customizing them to your environment will probably not work.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Need some help regarding with tomcat server

2007-01-31 Thread raghavendra kristam

Hi,

After Installed Nagios2.7 and Nagios plugin-1.4.5.
The following configuration files are located in /usr/local/nagios/etc
cgi.cfg-sample  commands.cfg-sample  localhost.cfg-sample  nagios.cfg-sample
resource.cfg-sample

Later copy those from $NAGIOSHOME/etc/*.cfg-sample to $NAGIOSHOME/etc/*.cfg
as

cgi.cfg  commands.cfg  htpasswd.users  localhost.cfg  nagios.cfg
resource.cfg
The below configuration are not availble in /usr/local/nagios/etc/ .
Do we need to create these files in /usr/local/nagios/etc/ or did I missed
any thing during installation time.
Please let me know.

cfg_file=/usr/local/nagios/etc/contactgroups.cfg
 cfg_file=/usr/local/nagios/etc/contacts.cfg
 cfg_file=/usr/local/nagios/etc/dependencies.cfg
 #cfg_file=/usr/local/nagios/etc/escalations.cfg
 cfg_file=/usr/local/nagios/etc/hostgroups.cfg
 cfg_file=/usr/local/nagios/etc/hosts.cfg
 cfg_file=/usr/local/nagios/etc/servicegroups.cfg
 cfg_file=/usr/local/nagios/etc/disk_services.cfg
 cfg_file=/usr/local/nagios/etc/database_services.cfg
 cfg_file=/usr/local/nagios/etc/web_services.cfg
 cfg_file=/usr/local/nagios/etc/local_services.cfg
 cfg_file=/usr/local/nagios/etc/timeperiods.cfg
 cfg_file=/usr/local/nagios/etc/windows-services.cfg
 # PERFPARSE LINE BELOW
 cfg_file=/usr/local/nagios/etc/nagios_perfparse.cfg

 http://www.totkat.org/pages/nagios-conf.shtml

Thanks,
Raghavendra.


On 1/30/07, David Rudder <[EMAIL PROTECTED]> wrote:


By the way, NagiosExchange has a plugin for monitoring JMX.

http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1[p_view]=808&tx_netnagext_pi1[page]=10%3A10

It doesn't address, specifically, what you asked for.  But, it may be
even better.  For instance, your Java app will throw out of memory
errors if it reaches the maximum allocated to the VM.  This is usually
way below the amount available to the OS.  So, you'll want to measure
memory usage via JMX and not via the standard OS calls.

-Dave

David Rudder wrote:
> c) is a difficult one, but I expect it's been handled before.
> Tomcat stores its logs in the httpd common log format.  So, any nagios
> plugins that examine the Apache logs should be able to handle Tomcat's
> as well.  I see Ethan wrote a check_log that will check for a pattern.
> Maybe you could build on that.  If you're just looking to see if a
> request took a long time, you can add %D to the access log pattern
> (specified in conf/server.xml).  That shows the time it took, in millis,
> to fulfill the request.  However, I'm not sure if a page's request takes
> longer for a client with a slow link.
>
> Anyway, given the standardized way Tomcat stores it's log, it might not
> be too difficult to find someone who solved the same problem for
> Apache's httpd and apply that to Tomcat.
>
> -Dave
>
> raghavendra kristam wrote:
>
>> Hi,
>>
>> I am quite new to nagios and finally I installed the required
>> softwares on linux machine.
>> I am able to access the web interface using the url
>> http://:90/nagios .
>>
>> a) nagios-2.7
>> b) nagios-plugins-1.4.5
>> c) Apache httpd-2.2.4
>> d) mysql4.1.22
>>
>>
>> I need to do the following scenarios with nagios. Please let me know
>> how to handle this scenarios.
>>
>> a)For server availability: listening to Tomcat server port
>> periodically and send out notification when there is no response on
>> the port.
>> b)For memory/disk usage: periodically check memory/disk space and send
>> out notification when the usage reaches certain thresholds.
>> c) For requests per minute for the Tomcat Server and per JSP level
>> requests per minute and response time
>>
>>
>> Please let me know whether all these scenarios supported by nagios or
>> not ?
>>
>> Thanks,
>> Raghavendra.
>>
>>

>>
>>
-
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
>> opinions on IT & business topics through brief surveys - and earn cash
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>

>>
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 

Re: [Nagios-users] Need some help regarding with tomcat server

2007-01-30 Thread David Rudder
By the way, NagiosExchange has a plugin for monitoring JMX.
http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1[p_view]=808&tx_netnagext_pi1[page]=10%3A10

It doesn't address, specifically, what you asked for.  But, it may be 
even better.  For instance, your Java app will throw out of memory 
errors if it reaches the maximum allocated to the VM.  This is usually 
way below the amount available to the OS.  So, you'll want to measure 
memory usage via JMX and not via the standard OS calls. 

-Dave

David Rudder wrote:
> c) is a difficult one, but I expect it's been handled before.
> Tomcat stores its logs in the httpd common log format.  So, any nagios 
> plugins that examine the Apache logs should be able to handle Tomcat's 
> as well.  I see Ethan wrote a check_log that will check for a pattern.  
> Maybe you could build on that.  If you're just looking to see if a 
> request took a long time, you can add %D to the access log pattern 
> (specified in conf/server.xml).  That shows the time it took, in millis, 
> to fulfill the request.  However, I'm not sure if a page's request takes 
> longer for a client with a slow link.
>
> Anyway, given the standardized way Tomcat stores it's log, it might not 
> be too difficult to find someone who solved the same problem for 
> Apache's httpd and apply that to Tomcat.
>
> -Dave
>
> raghavendra kristam wrote:
>   
>> Hi,
>>
>> I am quite new to nagios and finally I installed the required 
>> softwares on linux machine. 
>> I am able to access the web interface using the url 
>> http://:90/nagios .
>>  
>> a) nagios-2.7
>> b) nagios-plugins-1.4.5
>> c) Apache httpd-2.2.4
>> d) mysql4.1.22
>>
>>
>> I need to do the following scenarios with nagios. Please let me know 
>> how to handle this scenarios.
>>
>> a)For server availability: listening to Tomcat server port 
>> periodically and send out notification when there is no response on 
>> the port.
>> b)For memory/disk usage: periodically check memory/disk space and send 
>> out notification when the usage reaches certain thresholds.
>> c) For requests per minute for the Tomcat Server and per JSP level 
>> requests per minute and response time
>>
>>
>> Please let me know whether all these scenarios supported by nagios or 
>> not ?
>>
>> Thanks,
>> Raghavendra.
>>
>> 
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> 
>>
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue. 
>> ::: Messages without supporting info will risk being sent to /dev/null
>> 
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Need some help regarding with tomcat server

2007-01-30 Thread David Rudder
c) is a difficult one, but I expect it's been handled before.
Tomcat stores its logs in the httpd common log format.  So, any nagios 
plugins that examine the Apache logs should be able to handle Tomcat's 
as well.  I see Ethan wrote a check_log that will check for a pattern.  
Maybe you could build on that.  If you're just looking to see if a 
request took a long time, you can add %D to the access log pattern 
(specified in conf/server.xml).  That shows the time it took, in millis, 
to fulfill the request.  However, I'm not sure if a page's request takes 
longer for a client with a slow link.

Anyway, given the standardized way Tomcat stores it's log, it might not 
be too difficult to find someone who solved the same problem for 
Apache's httpd and apply that to Tomcat.

-Dave

raghavendra kristam wrote:
>
> Hi,
>
> I am quite new to nagios and finally I installed the required 
> softwares on linux machine. 
> I am able to access the web interface using the url 
> http://:90/nagios .
>  
> a) nagios-2.7
> b) nagios-plugins-1.4.5
> c) Apache httpd-2.2.4
> d) mysql4.1.22
>
>
> I need to do the following scenarios with nagios. Please let me know 
> how to handle this scenarios.
>
> a)For server availability: listening to Tomcat server port 
> periodically and send out notification when there is no response on 
> the port.
> b)For memory/disk usage: periodically check memory/disk space and send 
> out notification when the usage reaches certain thresholds.
> c) For requests per minute for the Tomcat Server and per JSP level 
> requests per minute and response time
>
>
> Please let me know whether all these scenarios supported by nagios or 
> not ?
>
> Thanks,
> Raghavendra.
>
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Need some help regarding with tomcat server

2007-01-30 Thread Josh Yost
raghavendra kristam wrote:
> Hi,
[snip]

> a)For server availability: listening to Tomcat server port periodically and
> send out notification when there is no response on the port.
> b)For memory/disk usage: periodically check memory/disk space and send out
> notification when the usage reaches certain thresholds.
> c) For requests per minute for the Tomcat Server and per JSP level requests
> per minute and response time
> 
> 

Hi,

a) can be handled by check_tcp or check_http (fyi - I can't use
check_http -S for tomcat 4; I think it's a problem w/ the SSL
implementation on the older tomcats)

b) memory/CPU can be handled by either SNMP or, if running on Windows,
by using nsclient

c) not sure on this one, but maybe someone else has ideas.  I don't know
where these numbers would exist.

Good luck,
 - Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Need some help regarding with tomcat server

2007-01-30 Thread Rob Blake

On 1/30/07, raghavendra kristam <[EMAIL PROTECTED]> wrote:


Hi,
I am quite new to nagios and finally I installed the required softwares on
linux machine.
I am able to access the web interface using the url http://:90/nagios
.

a) nagios-2.7
b) nagios-plugins-1.4.5
c) Apache httpd-2.2.4
d) mysql4.1.22


I need to do the following scenarios with nagios. Please let me know how
to handle this scenarios.

a)For server availability: listening to Tomcat server port periodically
and send out notification when there is no response on the port.
b)For memory/disk usage: periodically check memory/disk space and send out
notification when the usage reaches certain thresholds.
c) For requests per minute for the Tomcat Server and per JSP level
requests per minute and response time




a: Simply use the check_http plugin and supply the port as 8080. I assume
that's what your tomcat instance listens on.
b: Use either check_snmp or use check_disk plugins to accomplish these.
c: Not sure if you can do this. I certainly don't know of any Nagios plugins
that will do this for you. Maybe tomcat exposes this information via JMX or
something similar, but I'm not too up on that. Either way you're going to be
writing your own plugin to monitor it.

For how to use each of the mentioned plugins, simply run them with the -h
switch and go from there. Most are extremely self explanitory.

Rob.


Please let me know whether all these scenarios supported by nagios or not ?


Thanks,
Raghavendra.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Need some help regarding with tomcat server

2007-01-30 Thread raghavendra kristam

Hi,
I am quite new to nagios and finally I installed the required softwares on
linux machine.
I am able to access the web interface using the url
http://:90/nagios.

a) nagios-2.7
b) nagios-plugins-1.4.5
c) Apache httpd-2.2.4
d) mysql4.1.22


I need to do the following scenarios with nagios. Please let me know how to
handle this scenarios.

a)For server availability: listening to Tomcat server port periodically and
send out notification when there is no response on the port.
b)For memory/disk usage: periodically check memory/disk space and send out
notification when the usage reaches certain thresholds.
c) For requests per minute for the Tomcat Server and per JSP level requests
per minute and response time


Please let me know whether all these scenarios supported by nagios or not ?

Thanks,
Raghavendra.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null