Re: [Nagios-users] Override service notification time

2011-08-09 Thread David Wilkinson
On 08/08/11 18:18, Chris Beattie wrote:
>
> You can set it on a per-host basis.  If you do not define a notification
> timeperiod in a service's template or definition, the service will
> inherit its notification timeperiod from its associated host.
>
> Check out the section on "implied inheritance" here:
> http://nagios.sourceforge.net/docs/nagioscore/3/en/objectinheritance.html
>
> I have separate host templates for my development and production servers
> which have different notification timeperiods, and one set of service
> definitions associated with both types of hosts.
>

Ah yes, that was the problem, I had the timeperiod set in the service 
template, I removed it from the template and it was inherited it from host.

Thanks



--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
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] Override service notification time

2011-08-08 Thread David Wilkinson

Hi

I am currently using Nagios with host groups to so that I can add the 
same service check to multiple hosts without having to create the same 
service multiple times, which is all working fine, the problem is that I 
don't want non mission critical hosts alerting staff to a service 
problem in the middle of the night when the problem can wait till the 
morning.


Will I have to duplicate service config so I can change the notification 
periodor can I have it set on a per host basis and have that override 
what is set in the service template?



Thanks

David
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
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_WMI

2011-07-11 Thread David Wilkinson

On 11/07/11 07:44, nag ios wrote:


In the command.cfg file i have added the following lines
define command{
  command_name check_wmi
  command_line$USER1$/check_wmi.pl  
-H hostname -u domainname/user -p password -w $ARG1$ -c $ARG2$

 }



Hi

Try changing the command to the following


command_line$USER1$/check_wmi.pl  -H hostname 
-u domainname/user -p password -w $ARG1$ -c $ARG2$ -m $ARG0$



as checkcpu is not passedto the check
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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] Statically Linked NRPE

2011-07-01 Thread David Wilkinson
Hi

I have managed to get it to work.

I had to change the LDFLAGS option to include -lz -ldl

LDFLAGS= -L/usr/lib64 -lssl -lcrypto -lz -ldl

# file nrpe
nrpe: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), 
statically linked, for GNU/Linux 2.6.15, not stripped


Regards

David



On 01/07/11 11:57, David Wilkinson wrote:
> Hi All
>
> I am trying to get a statically linked version of NRPE to put on our
> servers.
>
> I tried the Statically Linked Nagios Linux Agent from the Nagios website
> http://exchange.nagios.org/directory/Addons/Monitoring-Agents/Statically-Linked-Nagios-Linux-Agent
>
> It fails to extract to the files when I try to use it, I get the following.
>
> ./Linux_Static_Agent.tar.gz.sh
> Created by: $Id: Makefile 63 2010-07-19 18:32:09Z mmestnik $.
> Mon Jul 19 18:32:18 UTC 2010
> Hostname: colinux
> User: mmestnik
> Path: Linux_Static_Agent
> URL:
> https://devhub.nagios.com/svn/xiagents/trunk/Development/Linux_Static_Agent
> Repository Root: https://devhub.nagios.com/svn/xiagents
> Repository UUID: 775aac8c-84a2-4f69-ad47-ca51e7846425
> Revision: 57
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mmestnik
> Last Changed Rev: 57
> Last Changed Date: 2010-07-15 21:00:37 + (Thu, 15 Jul 2010)
> Removed ci commands and the alias, mmestnik. Aug 03 2010
>
> gzip: stdin: unexpected end of file
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
> ./Linux_Static_Agent.tar.gz.sh: 67: How: not found
> ./Linux_Static_Agent.tar.gz.sh: 67: EOF: not found
> ./Linux_Static_Agent.tar.gz.sh: 67: Provided: not found
> ./Linux_Static_Agent.tar.gz.sh: 67: EOF: not found
> ./Linux_Static_Agent.tar.gz.sh: 67: How: not found
> ./Linux_Static_Agent.tar.gz.sh: 67: EOF: not found
> ./Linux_Static_Agent.tar.gz.sh: 67: Provided: not found
> ## Repeats the ./Linux_Static_Agent.tar.gz.sh: 67 line loads of
> times ##
> Starting nrpe:
>
>
> I tried to email the owner and I got a bounce back so I have tried
> compile a static linked version from source
>
> In the Makefile and src/Makefile I have added
> CC=gcc -static
> and from searching around I have also tried adding
> LDFLAGS= -L/usr/lib64 /usr/lib64/libssl.a /usr/lib64/libcrypto.a -ldl
> to the make files and the compile fails every time
>
>
> I get the following error every time I try to compile NRPE statically
> linked.
> Any idea's or pointers on how I can get this to work?
> Could be an OS problem? I am using Debain Squeeze x64
>
>
> # make
> cd ./src/; make ; cd ..
> make[1]: Entering directory `/root/nagios/nrpe-2.12/src'
> gcc -static -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H
> -o nrpe nrpe.c utils.c -L/usr/lib64 /usr/lib64/libssl.a
> /usr/lib64/libcrypto.a -ldl -lssl -lcrypto -lnsl
> nrpe.c: In function ‘main’:
> nrpe.c:179: warning: ignoring return value of ‘getcwd’, declared with
> attribute warn_unused_result
> nrpe.c:286: warning: ignoring return value of ‘chdir’, declared with
> attribute warn_unused_result
> nrpe.c: In function ‘my_system’:
> nrpe.c:1340: warning: ignoring return value of ‘pipe’, declared with
> attribute warn_unused_result
> nrpe.c:1393: warning: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> nrpe.c:1403: warning: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> nrpe.c: In function ‘write_pid_file’:
> nrpe.c:1615: warning: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> /usr/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
> (.text+0x5b4): warning: Using 'dlopen' in statically linked applications
> requires at runtime the shared libraries from the glibc version used for
> linking
> /tmp/ccJFpUJ7.o: In function `drop_privileges':
> /root/nagios/nrpe-2.12/src/nrpe.c:1558: warning: Using 'initgroups' in
> statically linked applications requires at runtime the shared libraries
> from the glibc version used for linking
> /root/nagios/nrpe-2.12/src/nrpe.c:1515: warning: Using 'getgrnam' in
> statically linked applications requires at runtime the shared libraries
> from the glibc version used for linking
> /root/nagios/nrpe-2.12/src/nrpe.c:1520: warning: Using 'endgrent' in
> statically linked applications requires at runtime the shared libraries
> from the glibc version used for linking
> /root/nagios/nrpe-2.12/src/nrpe.c:1541: warning: Using 'getpwnam' in
> statically linked applications requires at runtime the shared libraries
> from the glibc version used for linking
> /root/nagios/nrpe-2.12/src/nrpe.c:1546: warning: Using 'endpwent' in
> statically linked applications requires 

[Nagios-users] Statically Linked NRPE

2011-07-01 Thread David Wilkinson
Hi All

I am trying to get a statically linked version of NRPE to put on our 
servers.

I tried the Statically Linked Nagios Linux Agent from the Nagios website 
http://exchange.nagios.org/directory/Addons/Monitoring-Agents/Statically-Linked-Nagios-Linux-Agent

It fails to extract to the files when I try to use it, I get the following.

./Linux_Static_Agent.tar.gz.sh
Created by: $Id: Makefile 63 2010-07-19 18:32:09Z mmestnik $.
Mon Jul 19 18:32:18 UTC 2010
Hostname: colinux
User: mmestnik
Path: Linux_Static_Agent
URL: 
https://devhub.nagios.com/svn/xiagents/trunk/Development/Linux_Static_Agent
Repository Root: https://devhub.nagios.com/svn/xiagents
Repository UUID: 775aac8c-84a2-4f69-ad47-ca51e7846425
Revision: 57
Node Kind: directory
Schedule: normal
Last Changed Author: mmestnik
Last Changed Rev: 57
Last Changed Date: 2010-07-15 21:00:37 + (Thu, 15 Jul 2010)
Removed ci commands and the alias, mmestnik. Aug 03 2010

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./Linux_Static_Agent.tar.gz.sh: 67: How: not found
./Linux_Static_Agent.tar.gz.sh: 67: EOF: not found
./Linux_Static_Agent.tar.gz.sh: 67: Provided: not found
./Linux_Static_Agent.tar.gz.sh: 67: EOF: not found
./Linux_Static_Agent.tar.gz.sh: 67: How: not found
./Linux_Static_Agent.tar.gz.sh: 67: EOF: not found
./Linux_Static_Agent.tar.gz.sh: 67: Provided: not found
## Repeats the ./Linux_Static_Agent.tar.gz.sh: 67 line loads of 
times ##
Starting nrpe:


I tried to email the owner and I got a bounce back so I have tried 
compile a static linked version from source

In the Makefile and src/Makefile I have added
CC=gcc -static
and from searching around I have also tried adding
LDFLAGS= -L/usr/lib64 /usr/lib64/libssl.a /usr/lib64/libcrypto.a -ldl
to the make files and the compile fails every time


I get the following error every time I try to compile NRPE statically 
linked.
Any idea's or pointers on how I can get this to work?
Could be an OS problem? I am using Debain Squeeze x64


# make
cd ./src/; make ; cd ..
make[1]: Entering directory `/root/nagios/nrpe-2.12/src'
gcc -static -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H 
-o nrpe nrpe.c utils.c -L/usr/lib64 /usr/lib64/libssl.a 
/usr/lib64/libcrypto.a -ldl -lssl -lcrypto -lnsl
nrpe.c: In function ‘main’:
nrpe.c:179: warning: ignoring return value of ‘getcwd’, declared with 
attribute warn_unused_result
nrpe.c:286: warning: ignoring return value of ‘chdir’, declared with 
attribute warn_unused_result
nrpe.c: In function ‘my_system’:
nrpe.c:1340: warning: ignoring return value of ‘pipe’, declared with 
attribute warn_unused_result
nrpe.c:1393: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
nrpe.c:1403: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
nrpe.c: In function ‘write_pid_file’:
nrpe.c:1615: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
/usr/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
(.text+0x5b4): warning: Using 'dlopen' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for 
linking
/tmp/ccJFpUJ7.o: In function `drop_privileges':
/root/nagios/nrpe-2.12/src/nrpe.c:1558: warning: Using 'initgroups' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking
/root/nagios/nrpe-2.12/src/nrpe.c:1515: warning: Using 'getgrnam' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking
/root/nagios/nrpe-2.12/src/nrpe.c:1520: warning: Using 'endgrent' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking
/root/nagios/nrpe-2.12/src/nrpe.c:1541: warning: Using 'getpwnam' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking
/root/nagios/nrpe-2.12/src/nrpe.c:1546: warning: Using 'endpwent' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking
/tmp/ccJFpUJ7.o: In function `is_an_allowed_host':
/root/nagios/nrpe-2.12/src/nrpe.c:990: warning: Using 'gethostbyname' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking
/tmp/ccWaGZas.o: In function `my_connect':
/root/nagios/nrpe-2.12/src/utils.c:147: warning: Using 'getprotobyname' 
in statically linked applications requires at runtime the shared 
libraries from the glibc version used for linking
/usr/lib64/libcrypto.a(c_zlib.o): In function `bio_zlib_free':
(.text+0x6f): undefined reference to `inflateEnd'
/usr/lib64/libcrypto.a(c_zlib.o): In function `bio_zlib_free':
(.text+0x8d): undefined reference to `deflateEnd'
/usr/lib64/libcrypto.a(c_zlib.o): In function `bio_zlib_ctrl':
(.text+0x3b4): undefined reference to `deflat