[Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Marco Tirado
Hello Users: I have a problem with an event handler of mine. The handler starts a java daemon-like program which loops forever waiting for connections and performs JMX queries against our java applications. The problem is that the handler times out when it is run by nagios. This is what I see in

[Nagios-users] monitoring load balanced url

2009-07-02 Thread shadih rahman
All, I am trying to monitor an url which is load balanced behind csm. I want it go to warnning state if 50% of the servers are unavailable behind csm. Can someone please give me some suggestion how I can achieve this. Thanks -- Cordially, Shadhin Rahman

Re: [Nagios-users] monitoring load balanced url

2009-07-02 Thread shadih rahman
All, I thought of this approach. I will create a service call 'check_public_url' on host1, host2, host3, host4, and etc. Then I would create another check which will use check_cluster plugin to check the service status like below ./check_cluster -s check_public_url -d -w 0:50 -c 50:75 Am

Re: [Nagios-users] monitoring load balanced url

2009-07-02 Thread Marc Powell
On Jul 2, 2009, at 8:20 AM, shadih rahman wrote: All, I am trying to monitor an url which is load balanced behind csm. I want it go to warnning state if 50% of the servers are unavailable behind csm. Can someone please give me some suggestion how I can achieve this. Thanks Use

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Marco Tirado
That is exactly what I am doing (or trying to do with) the character at the end of my command. But it does not appear to be working, the command looks like this: nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS JMXServer $PORT /dev/null 21 $LOG_FILE Any suggestions? Am I missing something else?

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread David Rosenstrauch
Perhaps instead of using a java daemon to do JMX queries, you could use the check_jmx nagios plugin. (Available at the monitoring exchange site.) I've been using it in our Nagios system, and it's been working nicely (after some enhancements). I'm in the process of adopting and enhancing the

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Kevin Keane
First, put a space in front of that . Otherwise, it may be treated as part of the variable name. Second, I believe that the 21 needs to come AFTER the redirection to $LOG_FILE. Otherwise, what you are doing is redirecting stderr to stdin - which is still the console - and THEN redirecting

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Andreas Ericsson
Marco Tirado wrote: Hello Users: I have a problem with an event handler of mine. The handler starts a java daemon-like program which loops forever waiting for connections and performs JMX queries against our java applications. The problem is that the handler times out when it is run by

Re: [Nagios-users] Event Handlers, start a java program, nohup issues.

2009-07-02 Thread Marc Powell
On Jul 2, 2009, at 9:16 AM, Marco Tirado wrote: That is exactly what I am doing (or trying to do with) the character at the end of my command. But it does not appear to be working, the command looks like this: nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS JMXServer $PORT /dev/ null 21

[Nagios-users] Send SMS via Serial

2009-07-02 Thread Eduardo Barreto
Hi all, I'm trying to set a solution to send sms via serial port (RS-232). On the server (running nagios), I've connected a mobile interface, which is a router for mobile calls and with a simple test using minicom and with some AT commands could send a message. Therefore, I'm very lost on how to

Re: [Nagios-users] Send SMS via Serial

2009-07-02 Thread Alex Burger
What protocol does the mobile interface use? If it's TAP / IXO, then something like QuickPage should work. http://www.qpage.org/ Alex Eduardo Barreto wrote: I'm trying to set a solution to send sms via serial port (RS-232). On the server (running nagios), I've connected a mobile interface,

Re: [Nagios-users] Send SMS via Serial

2009-07-02 Thread Johannes Dagemark
Hello Eduardo Didn't you send the exact same message yesterday? anyway, here is the answer I sent you in case you did not receive it I would recommend using smstools, http://smstools.meinemullemaus.de/ have been using it for years now and it's rock solid cheers Johannes Eduardo Barreto

Re: [Nagios-users] Send SMS via Serial

2009-07-02 Thread Edgar Matzinger
LS, Hi all, I'm trying to set a solution to send sms via serial port (RS-232). On the server (running nagios), If it looks like a modem, I would opt for sms_client. Is in service at our location for many years... HTH, cu l8r, Edgar.

Re: [Nagios-users] How to surpess notifications if ping fails.

2009-07-02 Thread Jeremiah Jester
For some reason notifications are not being sent from nagios when i unplug the network cable from one of the hosts being monitored. Nagios recognizes that the hose is down but no notification... [1246567497] HOST ALERT: psefilesrv;DOWN;SOFT;1;(No Information Returned From Host Check)

[Nagios-users] Nagios Alerts to SMS using SMSTools help?

2009-07-02 Thread Mirza Dedic
Hello, I plan to use smstools for my Nagios box to send out alerts to our cells if per say, our email gateway was down and Nagios alerts would not be delivered to the blackberries. In order to do this, I see a lot of users are using smstools, when I checked their site it seems that the

Re: [Nagios-users] How to surpess notifications if ping fails.

2009-07-02 Thread Marc Powell
On Jul 2, 2009, at 3:54 PM, Jeremiah Jester wrote: For some reason notifications are not being sent from nagios when i unplug the network cable from one of the hosts being monitored. Nagios recognizes that the hose is down but no notification... [1246567559] HOST NOTIFICATION:

[Nagios-users] how does nagios locate config path?

2009-07-02 Thread megamic
Hi I want to build and install Nagios under a certain path (eg /opt/local) but tell it to find it's configuration (nagios.cfg, cgi.cfg) elsewhere (eg /export/nagios). There is useful configure directive for the lockfile (--with-lockfile), is there something similar for configuration path?

Re: [Nagios-users] how does nagios locate config path?

2009-07-02 Thread Mark Gius
The main nagios configuration file is configurable in the init script. All other files are read based on the cfg_file and cfg_dir directives in that main nagios configuration file. So you can either use the default nagios.cfg, which then points to things in /export/nagios, or edit the init

Re: [Nagios-users] how does nagios locate config path?

2009-07-02 Thread megamic
Thanks for that reply. So the init.d script tell the nagios daemon where to find the config files and other things...what about the CGI scripts...how do they know where to look? On Jul 3, 2009 8:56am, Mark Gius mg...@createspace.com wrote: The main nagios configuration file is