Re: [Nagios-users] Service event handler script not activating

2008-11-14 Thread Dennis Hünseler

Hi Darren,

did you check the commands on command line as root or as nagios user?
Because i think your problem is the user which runs the commands.

Regards, Dennis

On Fri, 14 Nov 2008 18:22:59 -0700, Darren Spruell
[EMAIL PROTECTED]
wrote:
 I had success with the first service eventhandler we implemented and
 am now trying to duplicate it for a second service (with a slightly
 modified eventhandler script) and failing. The eventhandler that is
 failing is for the Argus Daemon service on host quagmire, and the
 failure is that although the logs show the event handler being called
 with expected arguments, the command executed from the eventhandler
 script (an SSH connection to the target host) is never observed. If we
 call the eventhandler script manually with the same expected
 arguments, it operates properly (SSH connection occurs and remote
 service is started).
 
 Running Nagios 2.10 (nagios-2.10-3.fc7) on Fedora 7 GNU/Linux. SELinux
 enabled but set to not enforce.
 
 # /etc/nagios/nagios.cfg
 log_event_handlers=1
 event_handler_timeout=30
 enable_event_handlers=1
 
 # /etc/nagios/definitions.cfg (object configuration file)
 define service{
 namegeneric-service ; The
 'name' of this service template
 ...
 event_handler_enabled   1   ;
 Service event handler is enabled
 register0
 }
 
 define service{
 use ti-service
 host_name   quagmire
 service_description Argus Daemon
 check_command   check_nrpe!check_proc_argus
 event_handler
 handler_restart_service_openbsd!/usr/local/bin/start-argus!_nrpe
 }
 
 # /etc/nagios/commands.cfg
 define command{
 command_namehandler_restart_service_openbsd
 command_line
 $USER1$/eventhandlers/service-restart-openbsd.sh $HOSTADDRESS$ $ARG2$
 $SERVICESTATE$ $SERVICES
 TATETYPE$ $SERVICEATTEMPT$ $ARG1$
 }
 
 # service-restart-openbsd.sh:
 $ ls -lZ /usr/lib64/nagios/plugins/eventhandlers/
 -rwxr-xr-x  root root system_u:object_r:bin_t 
 service-restart-linux.sh
 -rwxr-xr-x  root root system_u:object_r:bin_t
 service-restart-openbsd.sh
 
 - snip -
 #!/bin/sh
 #
 #$Id$
 #
 # Event handler script for restarting a service. The idea of a service
on
 # OpenBSD doesn't really work as it doesn't use a SysV init but a
 monolithic
 # rc. For this reason we call a script on the remote server and don't
 # parameterize paths to an init script in this handler.
 #
 # [Attribution] taken from example in Nagios documentation at:
 # http://nagios.sourceforge.net/docs/2_0/eventhandlers.html
 #
 # Note: This script will only restart the service if the service is
 #   retried 3 times (in a soft state) or if the service somehow
 #   manages to fall into a hard error state.
 #
 # Host to connect to
 DST_HOST=$1
 # User to connect as via SSH
 DST_USER=$2
 # Service state (OK, WARNING, etc.)
 SVC_STATE=$3
 # Service type (SOFT, HARD, etc.)
 SVC_STATE_TYPE=$4
 # Service attempt (3, 4, etc.)
 SVC_STATE_ATTEMPT=$5
 # Script name (full path.)
 SVC_NAME=$6
 
 case $SVC_STATE in
 # Only deal with services that have dropped to CRITICAL state.
 CRITICAL)
 case $SVC_STATE_TYPE in
 # SOFT failures we deal with once it becomes apparent that
 # the failure is definate (on the third failure, before
 # notifications are sent out.)
 SOFT)
 case $SVC_STATE_ATTEMPT in
 3)
 /usr/bin/ssh -tt -l $DST_USER $DST_HOST sudo
 $SVC_NAME
 ;;
 esac
 ;;
 HARD)
 # If we hit a HARD failure, attempt to deal with it one
 # last time.
 /usr/bin/ssh -tt -l $DST_USER $DST_HOST sudo $SVC_NAME
 ;;
 esac
 ;;
 esac
 
 # Eventhandlers should always exit successfully, apparently.
 exit 0
 - /snip -
 
 Here's the logs showing detection of the service reaching the two
 states the eventhandler script should activate on (SOFT/3 and HARD):
 
 [1226710816] SERVICE ALERT: quagmire;Argus
 Daemon;CRITICAL;SOFT;1;PROCS CRITICAL: 0 processes with command name
 'argus'
 [1226710816] SERVICE EVENT HANDLER: quagmire;Argus

Daemon;CRITICAL;SOFT;1;handler_restart_service_openbsd!/usr/local/bin/start-argus!_nrpe
 [1226710876] SERVICE ALERT: quagmire;Argus
 Daemon;CRITICAL;SOFT;2;PROCS CRITICAL: 0 processes with command name
 'argus'
 [1226710876] SERVICE EVENT HANDLER: quagmire;Argus

Daemon;CRITICAL;SOFT;2;handler_restart_service_openbsd!/usr/local/bin/start-argus!_nrpe
 [1226710936] SERVICE ALERT: quagmire;Argus
 Daemon;CRITICAL;SOFT;3;PROCS CRITICAL: 0 processes with command name
 'argus'
 [1226710936] SERVICE EVENT HANDLER: quagmire;Argus


Re: [Nagios-users] Turning off notification_period for ping

2008-11-07 Thread Dennis Hünseler


Hi Kenneth, 

it is normally defined in the Host-Template, so if you use the
generic-host template for example for this host you have to check this
template for the setting. But if you want this setting for several hosts
that are behind a firewall you should create a special host template for
them and when you know they will be reachable just change the host-template
of the specific host to the normal one. 

And the option you have to set to 0 is not natification_period it is
NOTIFICATION_INTERVAL, if this is set to 0 you only get one notification.


Regards, Dennis 

On Fri, 7 Nov 2008 13:07:48 +0100, Kenneth Holter  wrote:  Hi. I
have a few machines that are currently blocked by the firewall, which are
reported down by Nagios. I'm pretty happy with having just _one_
notification of this kind of error, and would like to set the
notification_period for this kind of check to 0. Problem is that I can't
find the place where this is defined. Does anyone know this? I'm
running
Nagios 3.0.3. [1] Regards, Kenneth Holter 

Links:
--
[1] http://3.0.3.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] Turning off notification_period for ping

2008-11-07 Thread Dennis Hünseler


Additional to my first mail it is the same for service-templates and their
notifications :-) 

On Fri, 7 Nov 2008 13:07:48 +0100, Kenneth Holter  wrote:  Hi. I
have a few machines that are currently blocked by the firewall, which are
reported down by Nagios. I'm pretty happy with having just _one_
notification of this kind of error, and would like to set the
notification_period for this kind of check to 0. Problem is that I can't
find the place where this is defined. Does anyone know this? I'm running
Nagios 3.0.3. [1] Regards, Kenneth Holter   
Mit freundlichen Gren,

Dennis Hnseler
 

Links:
--
[1] http://3.0.3.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] hosts.config

2008-11-06 Thread Dennis Hünseler


Hi Layne, 

regarding the config you can configure contacts in stead of complete
groups, but the keyword is contactS not contact as in your example :-) 

CONTACTS: This is a list of the _short names_ of the contacts [1] that
should be notified whenever there are problems (or recoveries) with this
host. Multiple contacts should be separated by commas. Useful if you want
notifications to go to just a few people and don't want to configure
contact groups [2]. You must specify at least one contact or contact group
in each host definition. 

Regards, Dennis 

On Thu, 6 Nov 2008 10:54:35 -0500, Layne Meier  wrote: I have a question
for anyone that can answer this for me. From the documentation, in
configuring a host, this is the example given: 

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0

contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7

process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command
check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address
192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

define host{
 host_name bogus-router
 alias Bogus Router #1
 address 192.168.1.254
 parents server-backbone
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups router-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
  

Links:
--
[1] http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact
[2]
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contactgroup
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a 

Re: [Nagios-users] PING is WARNING?

2008-11-05 Thread Dennis Hünseler

Yes you can :-)
In the Service definition you can configure which notifications go out for
which service:

notification_optionsw,u,c,r (this will be warning,
unknown, critical, recovery)

From nagios Documentation:

notification_options:   This directive is used to determine when
notifications for the service should be sent out. Valid options are a
combination of one or more of the following: w = send notifications on a
WARNING state, u = send notifications on an UNKNOWN state, c = send
notifications on a CRITICAL state, r = send notifications on recoveries (OK
state), f = send notifications when the service starts and stops flapping,
and s = send notifications when scheduled downtime starts and ends. If you
specify n (none) as an option, no service notifications will be sent out.
If you do not specify any notification options, Nagios will assume that you
want notifications to be sent out for all possible states. Example: If you
specify w,r in this field, notifications will only be sent out when the
service goes into a WARNING state and when it recovers from a WARNING
state. 


regards, Dennis

On Wed, 5 Nov 2008 09:23:24 +0100, Bjørn T Johansen [EMAIL PROTECTED]
wrote:
 That's the problem; I don't get any errors from the commandline and
Nagios
 also thinks the ping is OK most of the time...
 But is there a way to disable notification from warnings for this check?
 
 BTJ
 
 On Wed, 05 Nov 2008 08:58:26 +0100
 Dennis Hünseler [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 try pinging these machines from command line and take a look at the
 output.
 I think you will get an error on command line too.
 
 regards, Dennis
 
 On Wed, 5 Nov 2008 08:27:29 +0100, Bjørn T Johansen [EMAIL PROTECTED]
 wrote:
  I get a lot of these from Nagios, what does those mean? All this is
  local
  servers (on our LAN) so not sure why ping is sending a warning?
  
  
  * Nagios *
  
  Notification Type: PROBLEM
  
  Service: PING
  Host: host
  Address: ip
  State: WARNING
  
  Date/Time: Wed Nov 5 00:03:54 CET 2008
  
  Additional Info:
  
  PING WARNING - System call sent warnings to stderr Packet loss = 0%,
  RTA
 =
  0.19 ms
  
  
  
  Is there a workaround? or perhaps a way to not notify on ping for just
  warnings?
  
  
  Regards,
  
  BTJ

-- 
Mit freundlichen Grüßen,

Dennis Hünseler

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] schedule check problem

2008-07-22 Thread Dennis Hünseler

[EMAIL PROTECTED] schrieb:

Hi,

I've got a strange problem with the nagios. Recently, for testing 
purpose we did install nagios server on a intel based pc and now we 
would like to move the nagios server to an high end machine like HP 
proliant DL 380.


The nagios server on Intel based pc works fine and it was able to 
monitor all the clients using check_nrpe plugin. I have now installed 
nagios server, nagios plugins and nrpe on a high end machine and 
copied all the configuration files from old server to here and then 
started nagios service. All looks ok except for scheduling checks.


The time on nagios server is ahead of the time displayed on the nagios 
interface for Next Scheduled Check. The Next Scheduled Check for some 
service shows,


Next Scheduled Check:  07-22-2008 09:31:04
Last Check Time:07-22-2008 09:37:53

but the time on nagios server is,
Tue Jul 22 09:40:06 GMT 2008

The time is not sync properly and when I refresh the page maually, it 
shows all services are in green which means all are working ok. but 
after few seconds when I refresh the same page manually, the services 
were in red color. tells me the error as , critical CHECK_NRPE: Socket 
timeout after 10 seconds


then if you refresh later some point, all service will show in green. 
why does this difference?


where do i change the settings so the time on the nagios interface 
will sync the time with the nagios server?


please help me!!!

Thanks

--
Shankar Asam


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/


___
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

Hi,
you should be sure that all your servers(nagios server and the ones 
being checked) run the same time, for example by using a ntp server to 
synchronise your time. That will avoid any problems like different time 
in checks


Kind regards,
Dennis Hünseler
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] Remote check with check_load check_disk

2008-05-07 Thread Dennis Hünseler
Uwe Großkinsky schrieb:
 hello list

 i will check a remotehost with check_load check_disk and so on in
 nagios.
 nrpe was 2.12 was installed (compiled) (plugins was also compiled) and
 run very fine (check_ping, check_http and so on was working fine).

 but now i will check the status from the systemload with the some
 plugins, for example check_load but i dont understand the right way to
 configure.

 i have read the documentation but i am hanging.

 thanks a lot

 greets uwe


 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 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

   
Hi uwe,

just go to the remote host and edit the nrpe.cfg

command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 
30,25,20

and on your nagios host create the referring check_definition:


define service{
use generic-service-perf ; 
Name of service template to use
host_name   your_host
service_description nrpe_Current Load
check_command   check_nrpe!check_load
}

Kind regards, Dennis

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] monitor any process/service which runs on linux box using nagios

2008-04-24 Thread Dennis Hünseler

nagios nagios schrieb:

Hi All,

how we can monitor any process/service which runs on linux box using 
nagios... i tried using NRPE by deploying on remote host.. but 
whenever i tired connecting remote machine  from nagios using 
check_nrpe it will give some error  connection refuse .. i followed 
the instrucation in README file but some where i missing . please help 
me on this


[EMAIL PROTECTED] libexec]# ./check_nrpe -H remotemachine -p 5666
Connection refused by host


thanks
manjunath A


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone



___
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

Hi,

do you have the nrpe-daemon running on the remote machine and did you 
open the needed ports on your firewalls?


Kind regards, Dennis
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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] monitor any process/service which runs on linux box using nagios

2008-04-24 Thread Dennis Hünseler

nagios nagios schrieb:

Hi,

i guess nrpe service is not running , i created the file as mentioned 
in the README file n placed it under/etc/xinetd.d/ , how we can make 
it run  yes port is opened n i entered in /etc/service file.


thanks
manju


On Thu, Apr 24, 2008 at 12:55 PM, Dennis Hünseler 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


nagios nagios schrieb:

Hi All,

how we can monitor any process/service which runs on linux box
using nagios... i tried using NRPE by deploying on remote host..
but whenever i tired connecting remote machine  from nagios using
check_nrpe it will give some error  connection refuse .. i
followed the instrucation in README file but some where i missing
. please help me on this

[EMAIL PROTECTED] libexec]# ./check_nrpe -H remotemachine -p 5666
Connection refused by host


thanks
manjunath A


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone



___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
mailto: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

Hi,

do you have the nrpe-daemon running on the remote machine and did
you open the needed ports on your firewalls?

Kind regards, Dennis



Hi again,

like Marcus just wrote check if you did these steps, regarding the 
documentation(especially restarting the xinetd):

##
Install the NRPE daemon as a service under xinetd.
make install-xinetd
Edit the /etc/xinetd.d/nrpe file and add the IP address of the 
monitoring server to the only_from directive.

only_from = 127.0.0.1 nagios_ip_address
Add the following entry for the NRPE daemon to the /etc/services file.
nrpe 5666/tcp # NRPE
Restart the xinetd service.
service xinetd restart
#

Kind regards, Dennis

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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] SMS gateway

2008-01-04 Thread Dennis Hünseler
Hello Mad Unix,

I use smstools to send the sms through gsm modem.

Kind regards,
Dennis

Mad Unix schrieb:
 which tools do you use to send sms through GSM modem (connected via
 COM)  through nagios:
 smstools, kanal, or smsclient

  
 On 1/3/08, *Dennis Hünseler* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 please take a look at this postings first:

 
 http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.netforum_name=nagios-users
 
 http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.netforum_name=nagios-users

 Thanks. 

 On Thu, 3 Jan 2008 10:54:59 +0200, Mad Unix wrote:

 *I am trying to connect 2N Analog GSM Gateways* to my Linux
 Server in order to send SMS messages to
 my admins through nagios.

 1. any one installed this device before on RHEL5 server if yes
 your help appreciated.
 2. how can modify the nagios config in order to send SMS messages

 -- 
 madunix

 kind regards,Dennis Hünseler




 -- 
 madunix 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] SMS gateway

2008-01-03 Thread Dennis Hünseler


Hi,

please take a look at this postings first:

http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.netforum_name=nagios-users

Thanks. 

On Thu, 3 Jan 2008 10:54:59 +0200, Mad Unix  wrote:
 I am trying to connect 2N Analog GSM Gateways to my Linux Server in
order to send SMS messages to
 my admins through nagios.
 1. any one installed this device before on RHEL5 server if yes your
help appreciated. 
 2. how can modify the nagios config in order to send SMS messages
 -- 
 madunix

kind regards,Dennis Huuml;nseler-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Environmental monitoring

2007-11-28 Thread Dennis Hünseler


Hi Kevin, 

what about self made humidity and temperature sensors on serial line? I
remember several how to's online...
If this could be one option for you ask google how to :-)

kind regards, Dennis
On Wed, 28 Nov 2007 09:48:51 -0500 (EST), Kevin Scott Sumner
[EMAIL PROTECTED] wrote:
 This is somewhat off-topic, but can anyone recommend a vendor for
 environmental?  I would like to monitor the temp. and humidity of our two
 server rooms.  Integration with Nagios is a huge plus.
 
 Cheers,
 Kevin
 -
 Kevin Sumner
 [EMAIL PROTECTED]
 (919) 962-6494
 Assistant Systems Administrator
 Physics and Astronomy Networking Infrastructure and Computing
 University of North Carolina at Chapel Hill
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] SMS gateway

2007-11-28 Thread Dennis Hünseler

Hi everybody,

the solution i prefer is using a gsm modem like Siemens TC35i and the
smstools, which are available as Debian Package or as source for example.
The modem gets connected via serial and is controlled by smstools. Just ask
google for smstools and tc35i...

Kind regards, Dennis

On Wed, 28 Nov 2007 22:40:06 +0100 (CET), Marcel Hecko [EMAIL PROTECTED]
wrote:
 
 Hi, does anybody know of any HARDWARE solution into which I would just
 stick GSM SIM card and send SMS messages from Nagios?
 Something with ethernet interface - like - I would just call HTTP URI and
 the device will send the SMS text to the number encoded in the HTTP
 request (both - the text and phone number).
 
 Basically - very basic SMS gateway. With pre-paid sim card that would be
 just magic!
 
 Does something like that exist? Possibly with two-way communitaction?
 What price should I be looking at?
 
 Cheers!
 Marcel
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] PING WARNING - DUPLICATES FOUND!

2007-11-21 Thread Dennis Hünseler


Hello Stephen, 

this isn't a nagios error. You seem to have some Problems with your
network. Try pinging the monitored host from your nagios host and
there you should also see duplicate icmp-replys... If you get this
take a look at your network.
kind regards, Dennis 
On Wed, 21 Nov 2007 08:07:34 -, stephen wing  wrote:
 Hi All  

 I have an intermittent ping problem. I am running nagios
1.2 on AIX and an monitoring both AIX and Windows client. I do a ping
test using the check_ping command, but sometimes I get a problem  with
the ping which says ldquo;PING WARNING - DUPLICATES FOUND!rdquo;,
this then sends me the notification, then almost immediately I get the
recovery notification. Can anybody explain why this happens and is
there anything I can do to stop getting these false errors.  
 Regards  

 Stephen  
 ---  

 Stephen Wing  

 Steria Limited  

 Senior Technical Consultant  

 Telephone  02890393605  

 Mobile  
07966823605  
 *
 This email originates from Steria Limited, registered office: Three
Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered
in England and Wales, number 2706218; www.steria.co.uk.
 This email and any attachments may contain confidential information
and may be subject to copyright or other intellectual property rights.
 It is only for the use of the addressee(s). You are prohibited from
copying, forwarding, disclosing, saving or otherwise using it in any
way if you are not the addressee(s) or responsible for delivery.
 If you receive this email by mistake, please advise the sender and
cancel it immediately.
 Steria may monitor the content of emails within its network to
ensure compliance with its policies and procedures.
 Any email is susceptible to alteration and its integrity cannot be
assured. Steria shall not be liable if the message is altered,
modified, falsified, or edited.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Check disk

2007-10-30 Thread Dennis Hünseler
Hi,

in nagios 3.0 for example use a service-definition like

 check_command   check_local_disk!20!10!/var

where
20 stands for the warning level of 20 % free
10 stands for the critical level of 10 % free
/var gives the script the system-path to check

this will make a check like:
check_disk -w 20 -c 10 -p /var
DISK OK - free space: /var 10538 MB (56% inode=99%);|
/var=8147MB;19665;19675;0;19685

kind regards,

Dennis
 Hi All,

 I always monitore the HDD of computer which are running with Windows, now
 I
 want to monitore the HDD of some server which are running on linux plate
 form. So I'm looking for how to write the commande, I know that I've to
 use
 check_disk
 Some body can tell me how

 Thanks

 --
 JFK
 In God we trust, the rest we monitore
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now 
 http://get.splunk.com/___
 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



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] contact_groups not working for services

2007-10-25 Thread Dennis Hünseler
Hi,

did you define contacts for the services as well? Just defining contacts
for the host wont be enough.

kind regards,
dennis
 Hi,

 We use contact groups with our hosts to deliver notifications. It only 
 works for host states though. When using contacts with the host service 
 states are also sent notifications for. I've tried both 3.0b3 and 3.0b5, 
 same thing.

 Since host notifications are sent out the contact group itself is 
 apparently applied, it's just the notifications for services that isn't 
 working. I've set up tests where I can see in the notifications log that 
 notifications are/are not sent out correctly.

 Working for hosts but not services:
 define host{
 use linux-server
 host_name  localhost
 aliaslocalhost
 address  127.0.0.1
 contact_groups   test
 }

 Working for both hosts and services:
 define host{
 use linux-server
 host_name  localhost
 aliaslocalhost
 address  127.0.0.1
 contacts  test
 }

 Best regards,
 Tina Danielsson

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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

   


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Email Report Datetime and Output are empty

2007-10-15 Thread Dennis Hünseler
Hi Ricardo,

try using $LONGDATETIME$ instead ob $DATETIME$ and $SERVICEOUTPUT$ instead
of $OUTPUT$

kind regards,

dennis
 font size=-1Hi all,br
 br
 i'm a new user of Nagios(2.9), i have a little problem, when i receive
 a email report from nagios,br
 I see:br
 /font
 pre wrap=Notification Type: PROBLEM

 Service: IIS
 Host: Web Server #2
 Address: 192.168.10.12
 State: WARNING

 Date/Time: $

 Additional Info:

 $
 /pre
 No info with the var $DATETIME$ and $OUTPUT$. br
 I'm using a gentoo distro with the standard sSMTP 2.60.4.br
 br
 Any idea?br
 pre class=moz-signature cols=72--
 Riccardo Cupardo
 /pre
 /body
 /html

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now 
 http://get.splunk.com/___
 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



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] How to limit access to external command

2007-10-12 Thread Dennis Hünseler


Hi Luca,

this part of your cgi.cfg should normaly control the use of the external
commands

 authorized_for_all_host_commands=nagiosadmin,web
 authorized_for_all_service_commands=nagiosadmin,web

This means that with your actual config the user nagiosadmin and the user
web should be allowed to set an external command like discribed in the
default cgi.cfg

snip--
# GLOBAL HOST/SERVICE COMMAND ACCESS
# These two options are comma-delimited lists of all usernames that
# can issue host or service related commands via the command
# CGI (cmd.cgi) for all hosts and services that are being monitored.
# By default, users can only issue commands for hosts or services
# that they are contacts for (unless you you choose to not use
# authorization).  You may use an asterisk (*) to authorize any
# user who has authenticated to the web server.
snip--/

kind regards

Dennis
 Hi all,
 i have enabled the external command and all work fine. now i wanto to
 limit the execution of external commands trought web interface to only
 few users but i don't know how can i do.

 I have 2 users:
  - web: this is the admin, it work great no problem with this user(is
 only an apache user)
  - LucaGmail : this is the user that access the nagios web interface
 and i want to limit, it can view only the service and host associated
 to it (this is good) and can execute external commands (this is not
 good); (LucaGmail is a contact for nagios and an apache user).

 How can i limit the execution of external command?

 below you can see some configuration of my installation:

 in cgi.cfg

 I set use_authentication to 1

 default_user_name=nagiosadmin
 authorized_for_system_information=nagiosadmin,theboss,jdoe,web
 authorized_for_system_commands=nagiosadmin,web
 authorized_for_configuration_information=nagiosadmin,jdoe,web
 authorized_for_all_services=nagiosadmin,guest,web
 authorized_for_all_hosts=nagiosadmin,guest,web
 authorized_for_all_host_commands=nagiosadmin,web
 authorized_for_all_service_commands=nagiosadmin,web

 and in the htpasswd.user there are 2 users:
 web
 LucaGmail

 in the httpd.conf

 ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
 Directory /usr/local/nagios/sbin
 Options ExecCGI FollowSymLinks
 AllowOverride None
 Order allow,deny
 Allow from all
 AuthName Nagios Access
 AuthType Basic
 AuthUserFile /usr/local/nagios/etc/htpasswd.users
 Require valid-user
 /Directory

 an ls -la of rw directory give me:

 drwxrws--- 2 nagios nagcmd 4096 Oct 11 16:10 .
 drwxrwxr-x 5 nagios nagcmd 4096 Oct 12 10:19 ..
 prw-rw 1 nagios nagcmd0 Oct 11 17:32 nagios.cmd

 in the nagcmd group there are these users:
 -apache (webserver user)
 -nagios


 sorry for my english... if you need more info ask without problem

 Thank you
 bye
 Luca

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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





-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] nagios and local syslog

2007-10-11 Thread Dennis Hünseler
Hi Oliver,

one possibilty would be to use syslog-ng and define a filter which matches
Nagios and seperate it this way.

kind regards,

Dennis


 Hello

 I want to log nagios to syslog using a specific local (example LOCAL7)
 I didn't find any options in nagios.cfg to do such a thing.
 Is anyone know how to do it ?
 By default , logs arrive in /val/log/messages file .

 nagios 3.0b3
 os : redhat ES4

 Olivier

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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





-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Problem: Picking up wrong serverhostname withcheck_http

2007-10-04 Thread Dennis Hünseler
Hi Rob,

try

/usr/local/nagios/libexec/check_http -H relibase.ebi.ac.uk
HTTP OK HTTP/1.1 200 OK - 419 bytes in 0.198 seconds
|time=0.198169s;;;0.00 size=419B;;;0

kind regards, Dennis

On Thu, 04 Oct 2007 14:30:20 +0100, Robert Hulme [EMAIL PROTECTED] wrote:
 I am trying to use the check_http plugin in Nagios 3 to see if
 relibase.ebi.ac.uk is OK.
 
 When I call it from the command prompt I get this:
 trueman% /usr/local/nagios/libexec/check_http relibase
 HTTP WARNING: HTTP/1.1 404 Not Found
 trueman% /usr/local/nagios/libexec/check_http relibase.ebi.ac.uk
 HTTP WARNING: HTTP/1.1 404 Not Found
 trueman% /usr/local/nagios/libexec/check_http relibase.ebi.ac.uk.
 HTTP WARNING: HTTP/1.1 404 Not Found
 
 However if I access relibase in Firefox (or with wget) the index page is
 returned normally.
 
 A little digging later has revealed that there are two relibases:
 
 trueman% dig relibase
 
 ;  DiG 9.3.4  relibase
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: SERVFAIL, id: 12743
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
 
 ;; QUESTION SECTION:
 ;relibase.  IN  A
 
 ;; Query time: 0 msec
 ;; SERVER: 172.22.2.11#53(172.22.2.11)
 ;; WHEN: Thu Oct  4 14:24:29 2007
 ;; MSG SIZE  rcvd: 26
 
 trueman% dig relibase.ebi.ac.uk
 
 ;  DiG 9.3.4  relibase.ebi.ac.uk
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 28374
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
 
 ;; QUESTION SECTION:
 ;relibase.ebi.ac.uk.IN  A
 
 ;; ANSWER SECTION:
 relibase.ebi.ac.uk. 454 IN  CNAME   www4.ebi.ac.uk.
 www4.ebi.ac.uk. 2612IN  A   193.62.197.14
 
 ;; Query time: 0 msec
 ;; SERVER: 172.22.2.11#53(172.22.2.11)
 ;; WHEN: Thu Oct  4 14:24:31 2007
 ;; MSG SIZE  rcvd: 71
 
 Is there a way to force check_http to use the correct one? It seems to
 be resolving the first one rather than the second one.
 
 If I try to access http://relibase/; from my desktop I get The web
 server you are trying to contact has closed down.  For further
 information, please contact [EMAIL PROTECTED] which is not what I get
 if I access http://relibase.ebi.ac.uk/;.
 
 I'm going to try to get the systems deparment here to fix this so that
 both queries, but is there a work around? (other than using www4 or the
 IP directly).
 
 Thanks
 -Rob
 
 --
 Think of how stupid the average person is, and realize half of them are
 stupider than that.
 -- George Carlin
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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
-- 
kind regards,

Dennis H?nseler


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] check_disk command

2007-10-01 Thread Dennis Hünseler
Hi Stephen, 

i think yoou should use check_disk 90 95 /hondata/subfolder as check
parameter. This returns an error if it doesn't exist. Otherwise the new
version of check_disc returns the value of the root partition.

Kind regards,

Dennis

 On Mon, 1 Oct 2007 15:46:20 +0100, stephen wing  wrote:
 Hi All  

 I have a query regarding the check_disk command running
on an AIX machine via the nrpe daemon.  

 I have defined the following commands on my client in the nrpe.cfg
file :-  
 command[check_root]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd4  

 command[check_usr]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd2  

 command[check_home]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd1  

 command[check_var]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd9var  

 command[check_tmp]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd3  

 command[check_opt]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd10opt  

 command[check_hcndata]=/usr/local/nagios/libexec/check_disk 90 95
/dev/fslv01  
 These commands work fine and give me the free disk space in the
filesystems. My problem is that I unmounted the filesystem /hcndata
which has a device name of /dev/fslv01. When this happens I would
expect nagios to report that /hcndata filesystem was unavailable.
Instead the service reports filesystem OK, but it is giving me the
statistics from the / filesystem as checked by the first command, ie
check_root.  

 Has anybody else seen this and if so how do I resolve the issue ?  
 I am running nagios 2.9 and nrpe 1.4.9  
 Regards  

 Stephen  
 ---  

 Stephen Wing  

 Steria Limited  

 Senior Technical Consultant  

 Telephone  02890393605  

 Mobile   07966823605  
 *
This email originates from Steria Limited, registered office: Three
Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered
in England and Wales, number 2706218; www.steria.co.uk.  This email
and any attachments may contain confidential information and may be
subject to copyright or other intellectual property rights.  It is
only for the use of the addressee(s). You are prohibited from copying,
forwarding, disclosing, saving or otherwise using it in any way if you
are not the addressee(s) or responsible for delivery. If you receive
this email by mistake, please advise the sender and cancel it
immediately. Steria may monitor the content of emails within its
network to ensure compliance with its policies and procedures. Any
email is susceptible to alteration and its integrity cannot be
assured. Steria shall not be liable if the message is altered,
modified, falsified, or edited.

 kind regards, Dennis H?nseler  


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] notifications 3.0b3 not working.

2007-09-26 Thread Dennis Hünseler
Hi there,

It's hard to find out what goes wrong if we don't get some parts of the log and 
some parts of the config files. If you don't see any notifications in the 
logfile(/var/log/messages) there should at least be some lines like 

Sep 23 11:05:17 caladan nagios: SERVICE ALERT: 
serv2;SMTP;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds
Sep 23 11:06:17 caladan nagios: SERVICE ALERT: 
serv2;SMTP;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds
Sep 23 11:07:17 caladan nagios: SERVICE ALERT: 
serv2;SMTP;CRITICAL;HARD;3;CRITICAL - Socket timeout after 10 seconds

Important is the line with the HARD state change, which causes the notification.
If there aren't lines like that give us a look at the configs.

Kind regards,
 
Dennis Hünseler

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Lee
Sent: Thursday, September 27, 2007 5:07 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] notifications 3.0b3 not working.

Hi all,

I am running Nagios 3.0b3 on Redhat AS4 PPC and everything is great, except 
that my notifications do not work at all. I have sendmail installed and 
configured and I am able to send mail from the server by simple sendmail 
commands and by running the command below:

/usr/bin/printf %b * Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | 
/usr/sbin/sendmail -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is 
$HOSTSTATE$ ** [EMAIL PROTECTED]

I look in the nagios log and there is no notification history at all. I have 
enabled notifications in the nagios.cfg file,  my contacts and contact groups 
seem to be ok and are listed. 

The timeperiod i am using is the 24/7 so that should not be too much of an 
issue and everything in the hostc.cfg is there and setup correctly.

I was thinking that this problem had to do with the bug in the previous release 
of version 3 which would not allow contactgroups to get notifications but 
allowed contacts, so I added contacts and still nothing. After that I upgraded 
and here I am.

I have done a lot of looking around in the last few days and am stuck. Any 
assistance would be appreciated.


- Ken Lee (kenlee)

---
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] nagios 3.0b3 abnormal cpu load ?

2007-09-07 Thread Dennis Hünseler
Hi,

i have nagios-3.0b3 running for 7 days now with around 350 checks and
around 40 hosts. No problems with CPU-load etc. I only have high cpu-load
produced by mysqld if i restart nagios and ndoutisl trys
truncating/cleaning my database... That is the only problem i can see...

kind regards, dennis
 Hi,



 I'm trying to setup a nagios 3.0b3 server, and I configured it with only
 one host, one check (ping).

 I can successfully start nagios, but I have concerns about the server
 cpu load : that's around 99% cpu usage all the time, on a P4 3GHz
 machine...



 Is there something I could do to decrese this load ? I tried installing
 a nagios 2.9 server using the same configuration, and the load caused by
 nagios is just ... 0.

 I guess this is a bug in the beta 3 ?



 Increasing the sleep time in nagios.cfg does not help at all even if I
 put sleep_time=2500 (2500 seconds !)



 Any suggestions would be welcome :-)



 P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
 know if this could help. I don't see many usefull things with maximum
 debug verbosity...





 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now 
 http://get.splunk.com/___
 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



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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