[Nagios-users-br] #nagios-br em irc.freenode.net

2009-10-22 Thread Diego Ribeiro
Bom dia pessoal, para quem ainda gosta do IRC, existe um # do nagios em
pt_BR na freenode.

[]'s
-- 
   dieggo.rbo at gmail dot com
   FreeBSD-BR User: #1047
   Linux User:  #395884
   www.linkedin.com/in/diegodias
   Limeira - SP -  [o]
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users] 1st post, so naturally the 1st question by the nagios newb re: socket error

2009-10-22 Thread Martin Melin
Hi,
Where did you define the check_s1 command? On which host? It looks like an
NRPE config so is this on one of the web servers or on your Nagios host?

Where did you try running the command from the shell? On the Nagios host or
the web server?

Please show the command definition from Nagios for check_s1 as well.

Make sure that you've edited the correct NRPE config file, reloaded nrped if
you're not using inetd. To check that
the check works from the command line, run the check_nrpe command from
Nagios, not check_http from Nagios or the webserver.

Regards,
Martin Melin

On Thu, Oct 22, 2009 at 3:32 AM, lance raymond lance.raym...@gmail.comwrote:

 Hi all, well I am running GroundWork open source and really happy with the
 layout, etc. and now comes the nagios things.  My goal is to setup things
 neatly, organized and learn as I go rather than asking stupid q's along the
 way.  So with that, the 1st task;

 I have 8 webservers all host numerous sites, a few host only select.  So I
 have created some hostgroups, adding the servers that belong to each, and
 wonderfully it works.  I can select a server, see the group, click the
 group, see the servers (did I mention I'm good)  :)

 Anyway, I want to setup 2 seperate checks one for each website, then
 associate them with the groups, so for example;
 ws1 (site1, site2)
 ws2 (site1)
 ws3 (site1, site2)
 ws4 (site2)

 Pretty simple.  So I copied the check_http command where I saw it used and
 have the following;

 command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H
 $HOSTADDRESS$ -I $HOSTADDRESS$
 command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site1.com -I $HOSTADDRESS$
 command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site2.com -I $HOSTADDRESS$

 The services.cfg has the following (will only show 1 for space)

 define service {
 service_description  check_s1
 usegeneric-service
 hostgroup_name s1_WebServers
 check_commandcheck_s1!3!5
 }

 Now after the above setup and a restart, I have happy to see the check_s1
 listed but it's showing critical with the following error;
 CRITICAL - Socket timeout after 10 seconds

 At the command line check it does work;
  ./check_http -H www.site1.com -I 192.168.50.101
 HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds
 |time=0.089949s;;;0.00 size=14398B;;;0

 I am looking through where people are increasing the timeout, but the
 response time is not even a second, so there must be something else I am
 missing.  So I am looking forward to learning more, welcome any ideas,
 suggestions, or anything else I should know about using nagios under
 groundwork.

 This is running under ubuntu-8.10 server, Program Version:3.0.6, let me
 know what else I can or need to provide on this.



 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Is there new template shipped with nagios3 ?

2009-10-22 Thread J. Bakshi
Hello list,

Please bear with me but I am using my old nagios2 configuration file
with nagios3. I wounder if there is any new template available for
nagios3. I love to use it if any. Here is my running host configuration part

```
define host{
namegeneric-host; The name of
this host template
notifications_enabled   1  ; Host notifications
are enabled
event_handler_enabled   1  ; Host event handler
is enabled
flap_detection_enabled  1  ; Flap detection is
enabled
failure_prediction_enabled  1  ; Failure prediction
is enabled
process_perf_data   1  ; Process performance
data
retain_status_information   1  ; Retain status
information across program restarts
retain_nonstatus_information1  ; Retain non-status
information across program restarts
notification_period  24x7 ; Send host notifications at
any time
register0
}


# Linux host definition template - This is NOT a real host, just a template!

define host{
   name   linux-server   ; The name of this host template
   usegeneric-host   ; This template inherits other values
from the generic-host template
   check_period 24x7 ; By default, Linux hosts are checked
round the clock
   max_check_attempts  10; Check each Linux host 10 times (max)
   check_command  check-host-alive ; Default command to
check Linux hosts
   notification_period workhours   ; Linux admins hate to be woken
up, so we only notify during the day
   notification_interval  120  ; Resend notification every 2 hours
   notification_optionsd,u,r; Only send notifications for
specific host states
   contact_groups   admins  ; Notifications get sent to the
admins by default
   register   0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL
HOST, JUST A TEMPLATE!
   }


define host{
use linux-server
host_name   Office server
address 127.0.0.1
}
``

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Nagios reload command

2009-10-22 Thread Assaf Flatto

Hello .

I have a very annoying issue , when ever i update my nagios config and issue 
the 
/etc/init.d/nagios reload command , nagios crashes . ( see below the part from 
the nagios.log).

1256204302] Caught SIGHUP, restarting...
[1256204302] ndomod: Shutdown complete.
[1256204302] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized 
successfully.
[1256204302] Caught SIGSEGV, shutting down...

And i need to restart nagios completely .
I looked at the syslog of the system , nothing an also could find nothing in 
the nagios.debug log .
The debug log is not set to the top debug options and so is the syslog .
I am running a 3.0.6 from source on SLES 10.2 i586 .

Anyone encountered this behaviour before ?


Thanks 
-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] OpMon - www.opmon.org

2009-10-22 Thread Ricardo Maraschini
Hello there,

Please allow me to introduce you the new version of OpMon.
OpMon is a Nagios based solution, using opensource software available at 
www.opmon.org.
Now you can download a complete ISO image, where you'll find a bunch of 
softwares integrated in a well designed solution.
In the available version of OpMon you can find Capacity Planning, SLA, SLM, 
Service Catalog, Dashboards reports and management.
This release goes with a completely redesigned interface.

OpMon works in any of the following languages:
English, Spanish and Portuguese.
Add a new language turns an easily thing.

If you are interest in try the power of Nagios integrated with a lot of awesome 
reports, please refer to [1].
Thanks for attention.

OpServices

[1] - http://www.opservices.com.br/download

__

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] host_notifications_enabled

2009-10-22 Thread Marco Borsani
Hi all .

 

I am looking for Nagios 3.2.0 . In its documentation you can see that in the
contact definition the directives host_notifications_enabled and
service_notifications_enabled should be required.

 

I am testing  a migration from Nagios 1.4.1 and I forget to insert these 2
news directives..nagios 3.2.0 work correctly and does not give me any
error/warning message.

 

Why ?

 

Regads

Marco

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] 1st post, so naturally the 1st question by the nagios newb re: socket error

2009-10-22 Thread lance raymond
I haven't installed anything on the webservers (yet), but I do wish to via
snmp do load, cpu, etc. or if there is a better way like a client daemon,
feel free to let me know. I am still reading/understanding what each is used
for (service.cfg, commands.cfg, etc.) but I have the following all for that
check;

services.cfg
define service {
service_description check_s1
use generic-service
hostgroup_name  s1_WebServers
check_command   check_s1!3!5
}

check_commands.cfg
define command {
command_namecheck_s1
command_line$USER1$/check_http -H
www.site1.com-w $ARG1$ -c $ARG2$
}

command.cfg has;
command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
www.site1.com -I $HOSTADDRESS$

As for where the local command was run, yes it was local to the groundwork
(nagios) server from the following location;

r...@groundwork:/usr/local/groundwork/nagios/libexec/check_http -H
www.site1.com -I 192.168.50.101
HTTP OK HTTP/1.1 200 OK - 14351 bytes in 0.249 seconds
|time=0.249456s;;;0.00 size=14351B;;;0

I am not sure what the NRPE plugin is but just looking at the options, it
looks like it's run on the client as there is no spot for IP, when run local
it simply says connection refused by host for the site1.com domain.

Thanks.

On Thu, Oct 22, 2009 at 4:59 AM, Martin Melin mme...@gmail.com wrote:

 Hi,
 Where did you define the check_s1 command? On which host? It looks like an
 NRPE config so is this on one of the web servers or on your Nagios host?

 Where did you try running the command from the shell? On the Nagios host or
 the web server?

 Please show the command definition from Nagios for check_s1 as well.

 Make sure that you've edited the correct NRPE config file, reloaded nrped
 if you're not using inetd. To check that
 the check works from the command line, run the check_nrpe command from 
 Nagios, not check_http from Nagios or the webserver.

 Regards,
 Martin Melin

 On Thu, Oct 22, 2009 at 3:32 AM, lance raymond lance.raym...@gmail.comwrote:

 Hi all, well I am running GroundWork open source and really happy with the
 layout, etc. and now comes the nagios things.  My goal is to setup things
 neatly, organized and learn as I go rather than asking stupid q's along the
 way.  So with that, the 1st task;

 I have 8 webservers all host numerous sites, a few host only select.  So I
 have created some hostgroups, adding the servers that belong to each, and
 wonderfully it works.  I can select a server, see the group, click the
 group, see the servers (did I mention I'm good)  :)

 Anyway, I want to setup 2 seperate checks one for each website, then
 associate them with the groups, so for example;
 ws1 (site1, site2)
 ws2 (site1)
 ws3 (site1, site2)
 ws4 (site2)

 Pretty simple.  So I copied the check_http command where I saw it used and
 have the following;

 command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H
 $HOSTADDRESS$ -I $HOSTADDRESS$
 command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site1.com -I $HOSTADDRESS$
 command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site2.com -I $HOSTADDRESS$

 The services.cfg has the following (will only show 1 for space)

 define service {
 service_description  check_s1
 usegeneric-service
 hostgroup_name s1_WebServers
 check_commandcheck_s1!3!5
 }

 Now after the above setup and a restart, I have happy to see the check_s1
 listed but it's showing critical with the following error;
 CRITICAL - Socket timeout after 10 seconds

 At the command line check it does work;
  ./check_http -H www.site1.com -I 192.168.50.101
 HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds
 |time=0.089949s;;;0.00 size=14398B;;;0

 I am looking through where people are increasing the timeout, but the
 response time is not even a second, so there must be something else I am
 missing.  So I am looking forward to learning more, welcome any ideas,
 suggestions, or anything else I should know about using nagios under
 groundwork.

 This is running under ubuntu-8.10 server, Program Version:3.0.6, let me
 know what else I can or need to provide on this.



 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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

[Nagios-users] file or directory not found

2009-10-22 Thread Alex Huth
Hi!

I have a maybe little stupid problem. To watch a new host i have copy the
binaries into /usr/local/nagios/libexec/. Now put the new host into a group of
hosts with the same checks and ready! Not really ... i am getting a error:

Remote command execution failed: bash: /usr/local/nagios/libexec/check_disk:
Datei oder Verzeichnis nicht gefunden

Same when i try to execute the command directly on the localhost of the new
machine.

I think i am missing somoething. But what?

Thx

Alex

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] 1st post, so naturally the 1st question by the nagios newb re: socket error

2009-10-22 Thread Ortner, Gerald
 

 

Try

 

define command {
command_namecheck_s1
command_line$USER1$/check_http -H
www.site1.com -I $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}



 

Von: lance raymond [mailto:lance.raym...@gmail.com] 
Gesendet: Donnerstag, 22. Oktober 2009 15:17
An: nagios-users@lists.sourceforge.net
Betreff: Re: [Nagios-users] 1st post,so naturally the 1st question by
the nagios newb re: socket error

 

I haven't installed anything on the webservers (yet), but I do wish to
via snmp do load, cpu, etc. or if there is a better way like a client
daemon, feel free to let me know. I am still reading/understanding what
each is used for (service.cfg, commands.cfg, etc.) but I have the
following all for that check;

services.cfg
define service {
service_description check_s1
use generic-service
hostgroup_name  s1_WebServers
check_command   check_s1!3!5
}

check_commands.cfg
define command {
command_namecheck_s1
command_line$USER1$/check_http -H
www.site1.com -w $ARG1$ -c $ARG2$
}

command.cfg has;
command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
www.site1.com -I $HOSTADDRESS$

As for where the local command was run, yes it was local to the
groundwork (nagios) server from the following location;

r...@groundwork:/usr/local/groundwork/nagios/libexec/check_http -H
www.site1.com -I 192.168.50.101
HTTP OK HTTP/1.1 200 OK - 14351 bytes in 0.249 seconds
|time=0.249456s;;;0.00 size=14351B;;;0

I am not sure what the NRPE plugin is but just looking at the options,
it looks like it's run on the client as there is no spot for IP, when
run local it simply says connection refused by host for the site1.com
domain.

Thanks.

On Thu, Oct 22, 2009 at 4:59 AM, Martin Melin mme...@gmail.com wrote:

Hi,

 

Where did you define the check_s1 command? On which host? It looks like
an NRPE config so is this on one of the web servers or on your Nagios
host?

 

Where did you try running the command from the shell? On the Nagios host
or the web server?

 

Please show the command definition from Nagios for check_s1 as well.

 

Make sure that you've edited the correct NRPE config file, reloaded
nrped if you're not using inetd. To check that the check works from the
command line, run the check_nrpe command from Nagios, not check_http
from Nagios or the webserver.

 

Regards,

Martin Melin

 

On Thu, Oct 22, 2009 at 3:32 AM, lance raymond lance.raym...@gmail.com
wrote:

Hi all, well I am running GroundWork open source and really
happy with the layout, etc. and now comes the nagios things.  My goal is
to setup things neatly, organized and learn as I go rather than asking
stupid q's along the way.  So with that, the 1st task;

I have 8 webservers all host numerous sites, a few host only
select.  So I have created some hostgroups, adding the servers that
belong to each, and wonderfully it works.  I can select a server, see
the group, click the group, see the servers (did I mention I'm good)  :)

Anyway, I want to setup 2 seperate checks one for each website,
then associate them with the groups, so for example;
ws1 (site1, site2)
ws2 (site1)
ws3 (site1, site2)
ws4 (site2)

Pretty simple.  So I copied the check_http command where I saw
it used and have the following;


command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H
$HOSTADDRESS$ -I $HOSTADDRESS$

command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
www.site1.com -I $HOSTADDRESS$

command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H
www.site2.com -I $HOSTADDRESS$

The services.cfg has the following (will only show 1 for space)

define service {
service_description  check_s1
usegeneric-service
hostgroup_name s1_WebServers
check_commandcheck_s1!3!5
}

Now after the above setup and a restart, I have happy to see the
check_s1 listed but it's showing critical with the following error;
CRITICAL - Socket timeout after 10 seconds 

At the command line check it does work;
 ./check_http -H www.site1.com -I 192.168.50.101
HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds
|time=0.089949s;;;0.00 size=14398B;;;0

I am looking through where people are increasing the timeout,
but the response time is not even a second, so there must be something
else I am missing.  So I am looking forward to learning more, welcome
any ideas, suggestions, or anything else I should know about using
nagios under groundwork.

This is running under ubuntu-8.10 server, Program Version:3.0.6,
let me 

Re: [Nagios-users] 1st post, so naturally the 1st question by the nagios newb re: socket error

2009-10-22 Thread lance raymond
[SOLVED].  That did it.  Can't believe I even wrote the command line and
included it, but I just followed the default.  But thanks.

Looking forward to all the learning from both playing and the group.


On Thu, Oct 22, 2009 at 10:17 AM, Ortner, Gerald gerald.ort...@gespag.atwrote:





 Try



 define command {
 command_namecheck_s1
 command_line$USER1$/check_http -H
 www.site1.com -I $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
 }



 *Von:* lance raymond [mailto:lance.raym...@gmail.com]
 *Gesendet:* Donnerstag, 22. Oktober 2009 15:17
 *An:* nagios-users@lists.sourceforge.net
 *Betreff:* Re: [Nagios-users] 1st post,so naturally the 1st question by
 the nagios newb re: socket error



 I haven't installed anything on the webservers (yet), but I do wish to via
 snmp do load, cpu, etc. or if there is a better way like a client daemon,
 feel free to let me know. I am still reading/understanding what each is used
 for (service.cfg, commands.cfg, etc.) but I have the following all for that
 check;

 services.cfg
 define service {
 service_description check_s1
 use generic-service
 hostgroup_name  s1_WebServers
 check_command   check_s1!3!5
 }

 check_commands.cfg
 define command {
 command_namecheck_s1
 command_line$USER1$/check_http -H
 www.site1.com -w $ARG1$ -c $ARG2$
 }

 command.cfg has;
 command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site1.com -I $HOSTADDRESS$

 As for where the local command was run, yes it was local to the groundwork
 (nagios) server from the following location;

 r...@groundwork:/usr/local/groundwork/nagios/libexec/check_http -H
 www.site1.com -I 192.168.50.101
 HTTP OK HTTP/1.1 200 OK - 14351 bytes in 0.249 seconds
 |time=0.249456s;;;0.00 size=14351B;;;0

 I am not sure what the NRPE plugin is but just looking at the options, it
 looks like it's run on the client as there is no spot for IP, when run local
 it simply says connection refused by host for the site1.com domain.

 Thanks.

 On Thu, Oct 22, 2009 at 4:59 AM, Martin Melin mme...@gmail.com wrote:

 Hi,



 Where did you define the check_s1 command? On which host? It looks like an
 NRPE config so is this on one of the web servers or on your Nagios host?



 Where did you try running the command from the shell? On the Nagios host or
 the web server?



 Please show the command definition from Nagios for check_s1 as well.



 Make sure that you've edited the correct NRPE config file, reloaded nrped
 if you're not using inetd. To check that
 the check works from the command line, run the check_nrpe command from 
 Nagios, not check_http from Nagios or the webserver.



 Regards,

 Martin Melin



 On Thu, Oct 22, 2009 at 3:32 AM, lance raymond lance.raym...@gmail.com
 wrote:

  Hi all, well I am running GroundWork open source and really happy with
 the layout, etc. and now comes the nagios things.  My goal is to setup
 things neatly, organized and learn as I go rather than asking stupid q's
 along the way.  So with that, the 1st task;

 I have 8 webservers all host numerous sites, a few host only select.  So I
 have created some hostgroups, adding the servers that belong to each, and
 wonderfully it works.  I can select a server, see the group, click the
 group, see the servers (did I mention I'm good)  :)

 Anyway, I want to setup 2 seperate checks one for each website, then
 associate them with the groups, so for example;
 ws1 (site1, site2)
 ws2 (site1)
 ws3 (site1, site2)
 ws4 (site2)

 Pretty simple.  So I copied the check_http command where I saw it used and
 have the following;

 command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H
 $HOSTADDRESS$ -I $HOSTADDRESS$
 command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site1.com -I $HOSTADDRESS$
 command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H
 www.site2.com -I $HOSTADDRESS$

 The services.cfg has the following (will only show 1 for space)

 define service {
 service_description  check_s1
 usegeneric-service
 hostgroup_name s1_WebServers
 check_commandcheck_s1!3!5
 }

 Now after the above setup and a restart, I have happy to see the check_s1
 listed but it's showing critical with the following error;
 CRITICAL - Socket timeout after 10 seconds

 At the command line check it does work;
  ./check_http -H www.site1.com -I 192.168.50.101
 HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds
 |time=0.089949s;;;0.00 size=14398B;;;0

 I am looking through where people are increasing the timeout, but the
 response time is not even a second, so there must be something else I am
 missing.  So I am looking forward to learning more, welcome any ideas,
 suggestions, or anything else I should know about using nagios 

Re: [Nagios-users] file or directory not found

2009-10-22 Thread Natxo Asenjo
On Thu, Oct 22, 2009 at 4:07 PM, Alex Huth a.h...@tmr.net wrote:

 Hi!

 I have a maybe little stupid problem. To watch a new host i have copy the
 binaries into /usr/local/nagios/libexec/. Now put the new host into a group
 of
 hosts with the same checks and ready! Not really ... i am getting a error:

 Remote command execution failed: bash:
 /usr/local/nagios/libexec/check_disk:
 Datei oder Verzeichnis nicht gefunden


do  ls -l /usr/local/nagios/libexec/check_disk and check the permissions



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] how to start nagios multiple instance

2009-10-22 Thread shadih rahman
All,
   I am sub dividing my nagios into multiple instances.  I have read
http://support.nagios.com/knowledgebase/faqs/index.php?option=com_contentview=articleid=52catid=35faq_id=22expand=falseshowdesc=truefor
information.  However I have few questions.  Thanks in advance

1) How would we manage init.d script?  are we going to use one init.d script
to start all the process or should there be multiple init.d script?
2) Do we need multiple nagios.cfg file for each instance or one nagios.cfg
file separate parameter suche log_file with multiple argument.
3) Is there a possibility for namespace clash in cgi urls?




-- 
Cordially,
Shadhin Rahman
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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