[Nagios-users] installation problem of nagios with make all command

2009-10-13 Thread Najeeb Aslam
/usr/local/src/nagios-3.2.0> make all
cd ./base && make
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c 
broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o 
macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o 
retention-base.o xretention-base.o comments-base.o xcomments-base.o 
objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o 
perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o  
../common/snprintf.o   -L/usr/local/lib  -lm  -lpthread -lltdl -lrt
Undefined   first referenced
 symbol in file
recvnetutils.o
sendnetutils.o
socket  netutils.o
getsockopt  netutils.o
connect netutils.o
getaddrinfo netutils.o
freeaddrinfonetutils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /usr/local/src/nagios-3.2.0/base
*** Error code 1
make: Fatal error: Command failed for target `all'
/usr/local/src/nagios-3.2.0>

Best regards,

-Najeeb
---
Najeeb Aslam
Unix Systems Administrator
Youthnet UK - 50 Featherstone St, London, EC1Y 8RT
Direct: 0207 250 5750 | Switchboard: 0207 250 5700 | Email: 
najeeb.as...@youthnet.org
Websites: www.youthnet.org | www.do-it.org.uk | 
www.thesite.org | www.lifetracks.com
P Before printing, please think about the environment




YouthNet UK is a limited company registered in England and Wales. Company 
registration number: 3031098. Charity registration number 1048995. Registered 
office: 100 Victoria Embankment, London, EC4Y 0DH.
--
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] help

2009-10-13 Thread Najeeb Aslam
Btw, I am using Nagios v3 on solaris 10 x86 platform...

From: Najeeb Aslam [mailto:najeeb.as...@youthnet.org]
Sent: 13 October 2009 11:33
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] installation problem of nagios with make all command

/usr/local/src/nagios-3.2.0> make all
cd ./base && make
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c 
broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o 
macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o 
retention-base.o xretention-base.o comments-base.o xcomments-base.o 
objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o 
perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o  
../common/snprintf.o   -L/usr/local/lib  -lm  -lpthread -lltdl -lrt
Undefined   first referenced
 symbol in file
recvnetutils.o
sendnetutils.o
socket  netutils.o
getsockopt  netutils.o
connect netutils.o
getaddrinfo netutils.o
freeaddrinfonetutils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /usr/local/src/nagios-3.2.0/base
*** Error code 1
make: Fatal error: Command failed for target `all'
/usr/local/src/nagios-3.2.0>

Best regards,

-Najeeb
---
Najeeb Aslam
Unix Systems Administrator
Youthnet UK - 50 Featherstone St, London, EC1Y 8RT
Direct: 0207 250 5750 | Switchboard: 0207 250 5700 | Email: 
najeeb.as...@youthnet.org
Websites: www.youthnet.org | www.do-it.org.uk | 
www.thesite.org | www.lifetracks.com
P Before printing, please think about the environment




YouthNet UK is a limited company registered in England and Wales. Company 
registration number: 3031098. Charity registration number 1048995. Registered 
office: 100 Victoria Embankment, London, EC4Y 0DH.


YouthNet UK is a limited company registered in England and Wales. Company 
registration number: 3031098. Charity registration number 1048995. Registered 
office: 100 Victoria Embankment, London, EC4Y 0DH.
--
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] installation problem of nagios with make all command

2009-10-13 Thread Michael Friedrich

just as it says...

"undefined symbol recv in file netutils.o" comes up with

SOCKETLIBS= -lnsl -lsocket

or furthermore compiling with gcc and gmake.

./configure ... 'CC=gcc' ...

Kind regards,
Michael



Najeeb Aslam wrote the following on 13.10.2009 12:32:


/usr/local/src/nagios-3.2.0> make all

cd ./base && make

gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios 
nagios.c broker.o nebmods.o checks.o config.o commands.o events.o 
flapping.o logging.o macros-base.o netutils.o notifications.o 
sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o 
comments-base.o xcomments-base.o objects-base.o xobjects-base.o 
statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o 
downtime-base.o xdowntime-base.o  ../common/snprintf.o   
-L/usr/local/lib  -lm  -lpthread -lltdl -lrt


Undefined   first referenced

 symbol in file

recvnetutils.o

sendnetutils.o

socket  netutils.o

getsockopt  netutils.o

connect netutils.o

getaddrinfo netutils.o

freeaddrinfonetutils.o

ld: fatal: Symbol referencing errors. No output written to nagios

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `nagios'

Current working directory /usr/local/src/nagios-3.2.0/base

*** Error code 1

make: Fatal error: Command failed for target `all'

/usr/local/src/nagios-3.2.0>

 


Best regards,

 


-Najeeb

*---***

*Najeeb Aslam *

*Unix Systems Administrator*

*Youthnet UK - **50 Featherstone St, London, EC1Y 8RT*

*Direct:* 0207 250 5750 | *Switchboard:* 0207 250 5700 | *Email:* 
*_najeeb.as...@youthnet.org _* 

*Websites:* *_www.youthnet.org _* | 
*_www.do-it.org.uk_* | *_www.thesite.org_* | *_www.lifetracks.com 
_*__


P Before printing, please think about the environment

 

 




YouthNet UK is a limited company registered in England and Wales. 
Company registration number: 3031098. Charity registration number 
1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH.




--
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


--
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 
A-1010 Vienna, Austria  

--
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] installation problem of nagios with make all command

2009-10-13 Thread Michael Friedrich



Najeeb Aslam wrote the following on 13.10.2009 14:19:


Any further ideas?


this one?


SOCKETLIBS= -lnsl -lsocket


Kind regards,
Michael
--
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] (no subject)

2009-10-13 Thread nadia kheffache
Hi,

I have some difference when i check memory of my ESX server:

memory used in ESX is 54% 
But with nagios plugin check_vmstat i have 78% used

any idea?

thank you

Nadia


  

--
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] FW: installation problem of nagios with make all command

2009-10-13 Thread Najeeb Aslam
Hi,

Tried configure with CC=gcc which was good, then no luck  after doing make all.

Any further ideas? See message below...

---
[r...@sysmon]# /usr/local/bin/make all
cd ./base && /usr/local/bin/make
make[1]: Entering directory `/usr/local/src/nagios-3.2.0/base'
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o broker.o 
broker.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o nebmods.o 
nebmods.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o 
checks.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o config.o 
config.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o commands.o 
commands.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o events.o 
events.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o flapping.o 
flapping.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o 
logging.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o 
../common/macros.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o netutils.o 
netutils.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o 
notifications.o notifications.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o sehandlers.o 
sehandlers.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o 
../common/skiplist.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o 
sretention.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o 
xretention-base.o ../xdata/xrddefault.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o 
../common/comments.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o 
../xdata/xcddefault.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o 
../common/objects.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o 
../xdata/xodtemplate.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o 
statusdata-base.o ../common/statusdata.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o 
xstatusdata-base.o ../xdata/xsddefault.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o 
perfdata.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o 
../xdata/xpddefault.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o 
../common/downtime.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o 
../xdata/xdddefault.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o 
../common/snprintf.o ../common/snprintf.c
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c 
broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o 
macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o 
retention-base.o xretention-base.o comments-base.o xcomments-base.o 
objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o 
perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o  
../common/snprintf.o   -L/usr/local/lib  -lm  -lpthread -lltdl -lrt
Undefined   first referenced
 symbol in file
recvnetutils.o
sendnetutils.o
socket  netutils.o
getsockopt  netutils.o
connect netutils.o
getaddrinfo netutils.o
freeaddrinfonetutils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-3.2.0/base'
make: *** [all] Error 2



From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
Sent: 13 October 2009 12:17
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] installation problem of nagios with make all command

just as it says...

"undefined symbol recv in file netutils.o" comes up with

SOCKETLIBS= -lnsl -lsocket

or furthermore compiling with gcc and gmake.

./configure ... 'CC=gcc' ...

Kind regards,
Michael



Najeeb Aslam wrote the following on 13.10.2009 12:32:
/usr/local/src/nagios-3.2.0> make all
cd ./base && make
gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c 
broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o 
macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o 
retention-base.o xretention-base.o comments-base.o xcomments-base.o 
objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o 
perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o  
../common/snprintf.o   -L/usr/local/lib  -lm  -lpthread -lltdl -

[Nagios-users] path problem in plugin

2009-10-13 Thread Leonardo Carneiro
Hi,

I wrote a small bash script that checks bandwidth, using the statgrab tool.

The statgrab executable file is located in /usr/local/bin. This folder 
is in the PATH variable of the user nagios (tested in command line), but 
the file is not found when the script is runned by the nagios process.
Doing an "echo $PATH" inside the script, the value of the variable is 
not the same as it was when the same command is executed in the command 
line with the nagios user.
This is the return when executed from the command line:

$ echo `whoami` $PATH
nagios

/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/jdk1.5.0_11/bin:/home/user/bin:/database/replicacao/bin:/home/nagios/bin

And this is the return when the script is called by the nagios process:

nagios /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin

Why the PATH variable is not the same in the command line and inside the 
nagios process?
Sorry for my poor english and tks in advance.
-- 

*Leonardo de Souza Carneiro*
*Veltrac - Tecnologia em Logística.*
lscarne...@veltrac.com.br 
http://www.veltrac.com.br 
/Fone Com.: (43)2105-5601/
/Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/
/Londrina- PR/
/Cep: 86015-010/




--
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] Suitable warning levels for 1gig switch

2009-10-13 Thread john halfpenny
Hi all

Have set Nagios up on Debian and it's like magic. But I would like to
know what warning and critical levels are suitable for monitoring a 1gig
connection on a switch? My present command is shown here, but I am
receiving warnings when the switch itself shows usage of around 6% for
the same port?!? I take it this is some measurement of bytes and not a
percentile?

check_command       
check_local_mrtgtraf!/var/www/mrtg/192.168.0.246_26.log!AVG!100,100!500,500!10

Thanks for any help.

John

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com!

--
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] path problem in plugin

2009-10-13 Thread Marc Powell

On Oct 13, 2009, at 8:44 AM, Leonardo Carneiro wrote:

> This is the return when executed from the command line:
>
>$ echo `whoami` $PATH
>nagios
>/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/ 
> jdk1.5.0_11/bin:/home/user/bin:/database/replicacao/bin:/home/nagios/ 
> bin
>
> And this is the return when the script is called by the nagios  
> process:
>
>nagios /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>
> Why the PATH variable is not the same in the command line and inside  
> the
> nagios process?

$PATH is inherited from a parent process or set by the shell (/bin/ 
bash for example). In the case of a daemon started by init, the daemon  
inherits the minimal $PATH provided by the init process. In the case  
of your login shell, you inherit the path provided by that shell,  
additionally modified by any settings in that shell's configuration  
files (/etc/profile or .bashrc, for example).

I do not believe that Nagios modifies the $PATH variable in any way  
but you can look through the source code if you like.

I expect you may be able to change the $PATH environment in the nagios  
init script before it's started. There are many examples of this in / 
etc/init.d/. You can also modify the path within your script.

The better, more secure solution is to not rely on $PATH in your  
script at all and to hard-code all paths to external programs and  
files. If you rely on $PATH, it can be trivial for $HACKER to create a  
file or program of the same name of the program you call that is  
evaluated earlier in the PATH and executed instead of your desired  
program.

--
Marc


--
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] Notify only when both services are down.

2009-10-13 Thread Greg Pangrazio
I have a pair of redundant services each with their own service
checks.  They are VPN connections to a remote site.  I would like to
notify specific people only when BOTH are down.  Anyone seen/done
something like this?

Greg Pangrazio
pangr...@gmail.com

--
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] Notify only when both services are down.

2009-10-13 Thread Marc Powell

On Oct 13, 2009, at 1:45 PM, Greg Pangrazio wrote:

> I have a pair of redundant services each with their own service
> checks.  They are VPN connections to a remote site.  I would like to
> notify specific people only when BOTH are down.  Anyone seen/done
> something like this?

http://nagios.sourceforge.net/docs/3_0/clusters.html

--
Marc

--
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] Notify only when both services are down.

2009-10-13 Thread Martin Melin
Sure thing. Simply use the check_many plugin from the official plugins
package to aggregate the results of both checks, using to option to have it
return OK if one or more checks are OK (so that it will only go CRITICAL if
both VPNs are down).

Regards
Martin Melin

On Tue, Oct 13, 2009 at 8:45 PM, Greg Pangrazio  wrote:

> I have a pair of redundant services each with their own service
> checks.  They are VPN connections to a remote site.  I would like to
> notify specific people only when BOTH are down.  Anyone seen/done
> something like this?
>
> Greg Pangrazio
> pangr...@gmail.com
>
>
> --
> 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

Re: [Nagios-users] Notify only when both services are down.

2009-10-13 Thread Greg Pangrazio
Thanks for both of these, It looks like either will do the job so now
I just have to get to work.

Thanks again for the quick answer.
Greg Pangrazio
pangr...@gmail.com





On Tue, Oct 13, 2009 at 1:54 PM, Marc Powell  wrote:
>
> On Oct 13, 2009, at 1:45 PM, Greg Pangrazio wrote:
>
>> I have a pair of redundant services each with their own service
>> checks.  They are VPN connections to a remote site.  I would like to
>> notify specific people only when BOTH are down.  Anyone seen/done
>> something like this?
>
> http://nagios.sourceforge.net/docs/3_0/clusters.html
>
> --
> Marc
>
> --
> 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] (no subject)

2009-10-13 Thread jaga contest

I have configured Nagios and now want to monitor a clustered windows 2003 
server running oracle 11.
I do not want to run check_oracle without putting the NRPE agent on the windows 
box.

I am able to run the two commands that I want to use at command line 
successfully.
check_ping -H 10.186.175.6 -w 3000.0,80% -c 5000.0,100% -p 5
and
check_oracle --login TREN

I added them to the commands.cfg file in the following sections

SAMPLE HOST CHECK COMMANDS

define command{
command_namecheck-host-alive
command_line$USER1$/check_ping -H 10.126.135.21 -w 3000.0,80% -c 
5000.0,100% -p 5
}
SAMPLE SERVICE CHECK COMMANDS

# 'check_oracle' command definition
define command{
command_namecheck_oracle
command_line$USER1$/check_oracle --login TREN

and added the server to the hosts.cfg

# 'my-hostname' host definition
define host{
use generic-host

host_name my.fqdn
alias My Windows Cluster
address 10.126.135.21
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}


When I look at my nagios interface I see my sever under the hosts section and 
it shows its status as up and ping ok.
if i click on it I dont see the status of the check_oracle --login TREN
Am I looking in the wrong place or do I have a config problem.

Thanks in advance
JC


  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/--
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] Query regarding Nagios notification

2009-10-13 Thread Satish Kumar P
Hi,

We have a Nagios server that monitors around 300 production servers
and around 2000+ services on all these servers. Recently, when the
STATE of one of the services on a particular host turned HARD, but
Nagios didn't NOTIFY. So I am just trying to understand why it didn't
notify. Here's more information regarding the configuration:

define service {
service_description MAILQ_1K_2K
host_name   server-name
use generic-service
check_command   check_mailq_snmp!1000!2000
contact_groups  cg_server-name
}

define contactgroup {
contactgroup_name   cg_server-name
alias   server-name Contact Group
members team_emailpage-24x7
}

define contact {
contact_name  team_emailpage-24x7
alias team_emailpage-24x7
service_notification_period   24x7
host_notification_period  24x7
service_notification_options  c,r
host_notification_options d,r
service_notification_commands notify-by-page,notify-by-email
host_notification_commandshost-notify-by-page,host-notify-by-email
email email-address
pager team
}


Following are the few relevant options defined under "generic-service":

check_period24x7
normal_check_interval   5
retry_check_interval2
max_check_attempts  5
notification_period 24x7

And following are the corresponding logs when the service went down:

Oct 11 02:19:50 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;1;mailq is 1358
Oct 11 02:22:49 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;2;mailq is 1537
Oct 11 02:26:05 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;3;mailq is 1799
Oct 11 02:28:59 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;4;mailq is 1799
Oct 11 02:36:53 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;HARD;5;mailq is 2133

I modified the server names. The WARNING THRESHOLD is 1000 and
CRITICAL THRESHOLD is 2000. After roughly 45 minutes later, the
service recovered, but Nagios didn't fire any alert w.r.t this service
during this whole period (i mean until it came back to OK state).
Nagios logs when this service came back:

Oct 11 03:20:20 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;SOFT;1;mailq is 2968
Oct 11 03:22:17 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;SOFT;2;mailq is 2968
Oct 11 03:24:17 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;SOFT;3;mailq is 2968
Oct 11 03:26:18 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;OK;SOFT;4;mailq is 411

More info: Looking at Nagios documentation, I understand that Nagios
does "on demand host checks" when a service changes STATE. So I
guessed, Nagios might have performed HOST CHECK when it actually
turned HARD (and simultaneously from WARNING to CRITICAL). And I see
lot of logs related to other services after this SERVICE turned HARD,
but I wonder there should have been NOTIFICATION w.r.t this particular
service. Thoughts??

Nagios version: 3.1.2
O.S: Debian 4.0 (Etch)

Thanks in advance.

Thanks,
Satish

--
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] Query regarding Nagios notification

2009-10-13 Thread Justin Pryzby
On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote:
> Hi,
> 
> We have a Nagios server that monitors around 300 production servers
> and around 2000+ services on all these servers. Recently, when the
> STATE of one of the services on a particular host turned HARD, but
> Nagios didn't NOTIFY. So I am just trying to understand why it didn't
> notify. Here's more information regarding the configuration:
Was the service flapping?

Justin

--
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] Query regarding Nagios notification

2009-10-13 Thread Satish Kumar P
On Wed, Oct 14, 2009 at 11:22 AM, Justin Pryzby  wrote:
> On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote:
>> Hi,
>>
>> We have a Nagios server that monitors around 300 production servers
>> and around 2000+ services on all these servers. Recently, when the
>> STATE of one of the services on a particular host turned HARD, but
>> Nagios didn't NOTIFY. So I am just trying to understand why it didn't
>> notify. Here's more information regarding the configuration:
>
> Was the service flapping?
>
> Justin
>

HI Justin,

Actually no. Nagios didn't log anything related to this  FLAPPING of
this SERVICE. Though lot of other SERVICES related to same host
flapped after this SERVICE turned HARD, this service didn't. Nagios
didn't send notifications related all other services, that's justified
because of SERVICE FLAPS.

Thanks,
Satish

--
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