Re: [Nagios-users] nsclient++ check_nt USEDDISKSPACE Segmentation fault

2009-08-31 Thread Jon Angliss
On Mon, 31 Aug 2009 08:48:57 -0700, Massimo Balestra
massimobales...@hotmail.com wrote:

 

Hi everybody,

I have a configuration with a Nagios monitoring some linux servers and few
Windows ones.

I have a problem monitoring the USEDDISKSPACE on one drive of one of the
windows servers.

It is a Windows Server  2003 R2 Standard edition (Service pack 2).

The problem occurs after I did the last Windows Update last Friday. Before
it was working.

What patches got installed?

I am using nsclient++

C:\C:\Program Files\NSClient++\\NSClient++.exe -version

l NSClient++.cpp(360) NSClient++ Version: 0.3.6.818 2009-06-14, Plattform:
w32

And, on the Nagios site, check_nt:

/usr/local/nagios/libexec/check_nt --version

check_nt v1991 (nagios-plugins 1.4.13)

I show the problem running the plug-in from the command line because it
shows better what happens. 

 

The windows server has 2 disks (2 raid partitions): c and d

The problem is:

If I run the USEDDISKSPACE on the drive D everything is OK.

# /usr/local/nagios/libexec/check_nt -H servername -p 12489 -s password -v
USEDDISKSPACE -l d ; echo $?

d:\ - total: 182.12 Gb - used: 14.56 Gb (8%) - free 167.56 Gb (92%) | 'd:\
Used Space'=14.56Gb;0.00;0.00;0.00;182.12

0

 

But if I run the same identical command on the drive c.

# /usr/local/nagios/libexec/check_nt -H servername -p 12489 -s password -v
USEDDISKSPACE -l c ; echo $?

Segmentation fault

139

Tried running strace to see what it is doing when it dies?

I tried running the nsclient++ service in both ways: as administrator (with
password) and as system account (allowing service to interact with the
desktop)  with the same results.

Does anybody knows what is the problem and how to solve it?

Note: I tried to stop the nsclient++ service and run it from the command
line with the option /test.

It works. No error is shown and the ckeck_nt result is what I expect. So
this segmentation fauld in the linux/Nagios site occurs only what nsclient++
runs as a service.

What's the value that gets returned when using /test?
-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_http confusion / problem

2009-08-28 Thread Jon Angliss
On Fri, 28 Aug 2009 14:01:44 -0500, David Dyer-Bennet
d...@dd-b.net wrote:

Thanks to various list members for pointing me at various bits of
documentation that I hadn't been able to find, which explain that commands
can in fact take arguments, and that those and other useful things are
called macros.  (I've been using macros since 1401 Autocoder, and mostly
think of them as compile time code-generating tools.)

So, what's with the check_http plugin?  The parameters it accepts don't
match the parameters its help says it accepts.  But beyond that, the -e
switch doesn't seem to do what it says it should.

I'm not getting invalid results because I'm running from the command line,
am I?  This seems much the easiest way to test things, and it rather
sounds like this is an intended use.  But thought I'd ask just to be sure.

In this case, the expected result of the test is a 400 Bad Request error
(because I'm hitting a web services port and requesting root; this test is
intended to do a minimal check and see that the service director is up,
but not test the individual services yet).  So the 400 Bad Request
response is correct and valid.

Now, the -e switch seems to be intended to check just this status line,
and to nicely short-circuit later processing, and seems in all ways
optimized for exactly what I'm doing.  Except for the minor fact that it
doesn't seem to work.  See below, run in verbose mode.  I've tried a bunch
of variants on the value I pass to -e, including the whole line given, and
they all give the same result, an exit code of 2 and the invalid HTTP
response code message.   So what's up?  And is there more documentation
on the plugins hidden somewhere, particularly this one?

--help usually gives a whole bunch of extra information...

[...@prcapp00 dev]$ /usr/lib/nagios/plugins/check_http
--IP-address=192.168.5.3 -p 8075 --no-body -f critical -v -v -v -e=Bad
Request
GET / HTTP/1.0
User-Agent: check_http/1.99 (nagios-plugins 1.4.6)


http://192.168.5.3:8075/ is 168 characters
STATUS: HTTP/1.1 400 Bad Request
 HEADER 
Content-Type: text/html
Date: Fri, 28 Aug 2009 18:33:44 GMT
Connection: close
Content-Length: 39
 CONTENT 
  [[ skipped ]]
Invalid HTTP response received from host on port 8075
[...@prcapp00 dev]$ echo $?
2

Command syntax is incorrect.

# ./check_http -I 192.168.5.3 -p 8075 --no-body -f critical -vvv -e \
 Bad Request

I tried against one of my servers without any issues.  Albeit I got a
critical failure because my server didn't return bad request.

I do notice you're using an old version of the plugins package. 1.4.13
is the current version, can you download and compile in a different
directory and see if you still end upw with the same issue?
-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] wrta not set

2009-08-24 Thread Jon Angliss
On Mon, 24 Aug 2009 11:52:32 -0700, Bruce Thayre
br...@mipscomputation.com wrote:

Hello,
I have a question that i'm assuming has a quick answer.  I've defined a
command as:

define command{
command_namecheck-site
command_line$USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100%
-p 5 -t 10
}


Did you paste directly? If so, $ARG1 is missing a closing $... so
$ARG1$

which i use to just ping different sites via my services.cfg.  So in my
services.cfg i have entries that look like:

define service{
usegeneric-service
display_namecheck_helpdesk
host_namerails_playground
service_descriptioncheck helpdesk
check_commandcheck-site!helpdesk_url.com
contactsnagiosadmin
}

Now everything checks out, however when i open up my service page within
nagios, i see all my check-sites have unknown statuses stating:
wrta was not set

Looking at the check_ping plugin it states that wrta is set with the -w
option, and looking at my check-site command above, you can see that i hard
code wrta, so i don't understand why it is not working.  Trying that
command above on the command line as such:

./check_ping helpdesk_url.com -w 3000.0,80% -c 5000.0,100% -p 5 -t 10
PING OK - Packet loss = 0%, RTA = 54.82
ms|rta=54.82ms;3000.00;5000.00;0.00 pl=0%;80;100;0

So the syntax should work, i just can't figure out what part i have wrong
that's causing nagios to freak out.  Any help would be great?

As was mentioned, your test syntax is different, otherwise, fix your
command definition, and test again.
-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 with left menu in web interface

2009-08-24 Thread Jon Angliss
On Mon, 24 Aug 2009 10:28:45 -0300, Leonardo Carneiro
lscarne...@veltrac.com.br wrote:

Hello everyone!

This is my first mail to the list. I hope to enjoy my time here.

I'm installing a nagios in a test machine before going serious. The 
install and basic setup gone fine, i could access the web interface 
without any problem. After configuring some host to monitor, the left 
menu in the web interface broke. I removed the hosts to test, but the 
menu is still not working.

Here is a shot of what's happening: 
http://img25.imageshack.us/img25/8885/nagios.png

When i try to click in some link I get a Not Found. The requested URL 
/nagios/ was not found on this server. only in the menu.

Running /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 
tells me that everything is fine.

Any clues of what could de happening?

Tks in advance and sorry about my poor english.

I had a similar issue when I was running one of the earlier CVS
versions of the new PHP pages.  It looks like a simple issue of an
unclosed   for some reason.

I notice from another reply, you're using debian, 3.2.0 isn't packaged
as part of debian packages, so I'm assuming a source install?  Is this
an upgrade from an earlier version? If so, you may be missing the
config.inc.php file in the share/ directory (I think it's part of the
install-config).


-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Services not being associated with hosts

2009-08-20 Thread Jon Angliss
On Thu, 20 Aug 2009 14:41:24 -0700, Bruce Thayre
br...@mipscomputation.com wrote:

Hello,
I've been trying to debug this issue for some time but i'm stuck and have
not found a solution.  Nagios -v nagios.cfg has no complaints, just warns me
that services are not associated with hosts:

Nagios 3.0.6

[..]

define service{
use generic-service
display_namerails_playground
host_name   rails_playground
check_command   check-host-alive
contactsnagiosadmins
}

[..]

I don't see how there are zero services attached to my host, the services
are registered properly, just never associated with hosts.  Any help would
be greatly appreciated

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

You're missing defined variables. Those in red are required.  Note
however not all required fields need to be defined (see Implied
Inheritance section in [1]).

I'd consider this a sort of bug, because it's not telling you a
required field is missing, simply skipping over it.  It should at
least throw a warning.

[1]: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html

-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] snmp coldstart trap checking

2009-08-20 Thread Jon Angliss
On Thu, 20 Aug 2009 21:54:58 +, Joseph L. Casale
jcas...@activenetwerx.com wrote:

I am using 
http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm
for monitoring windows reboots. It works perfect for Windows, but is missing 
the hostname
for the Linux servers.

What do you mean missing the hostname for the Linux servers?

Looking quickly at the Perl code hasn't gotten me anyway (I'm super weak w/ 
Perl anyhow).

Anyone doing this with another solution for Windows/Linux/Solaris hosts?

I've contemplated setting something similar up for some items.  snmpd
can generate traps using DisMan (see man snmpd.conf under the Active
Monitoring section), then you just need to set the handling.  Of
course, when it gets like that, I usually just break out the remote
monitoring tools anyway (check_snmp, check_ssh, check_nrpe) but I
guess it can depend, like interface up/down, or host down that never
gets caught (as in the example).
-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 detect MSSQL cluster failover?

2009-08-14 Thread Jon Angliss
On Wed, 12 Aug 2009 15:08:56 +0200, Marco Tirado
marco.tir...@gmail.com wrote:

Hello users:

I would like to know what is the easiest way to detect when a failover
occurs in an MSSQL cluster. I need a simple check that tells me when our
database cluster fails from physical node X to node physical node Y

Has anybody done this? Maybe with a passive check?

I used to do a quick and dirty way and use the SNMP sysName, and look
for a specific value.  If it changed from one name to another, it had
failed over...

./check_snmp -H host -v 1 -c public -o .1.3.6.1.2.1.1.5.0 -s
expectedname

Or, if you've had experience with WMI, you can hit the MSCluster
namespace...

  http://technet.microsoft.com/en-us/library/cc780572(WS.10).aspx

Enjoy :)
-- 
Jonathan Angliss
j...@netdork.net


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] SNMP Monitoring conundrum

2009-07-16 Thread Jon Angliss
On Thu, 16 Jul 2009 13:50:50 -0800, Israel Brewster
isr...@frontierflying.com wrote:

I have a number of scripts I have developed to monitor our UPS units  
via SNMP - I found the included plugins didn't give me enough power/ 
flexibility with the monitoring, so I made my own. Unfortunately, we  
have just added a new UPS to the system which, although made by the  
same company, uses different OID's for the data I am pulling. Thus the  
issue: I want the same data, so other than the OID's the existing  
scripts would work. But how do I deal with different OID's on  
different devices?

So far I've thought of the following:
1) Make a second copy of my scripts with the new OID's. Also implies  
creating new contacts to use the new script (the notification script  
pulls data such as estimated run time via snmp) and maintaining two  
copies of each check/notification script

Why 2 copies?  Why not add a version argument to your script?

./check_ups -v 1 {other args}

Inside the script (pseudo code)...

if (version 1) {
  oid_battery_life = 1.2.3.4
} else {
  oid_battery_life = 1.3.3.4
}

snmpget oid_battery_life...

-- 
Jonathan Angliss
j...@netdork.net


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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] Testing Apache - mysql connectivity using php

2009-07-15 Thread Jon Angliss
On Wed, 15 Jul 2009 15:00:59 -0700, Swati Tiwari its.sv...@gmail.com
wrote:

Hello Friends,

I am trying to write a plugin for testing the apache-mysql connectivity
using php. Has anyone done this so far and has any ideas as to how to go
about it. Any ideas would be appreciated. Thank you very much!

A simple php script would work, and the check_http with string
matching.

?php

$conn = @mysql_connect($server,$user,$pass);

if (!$conn) {
echo 'ERROR';
} else {
echo 'SUCCESS';
@mysql_close($conn);
}

?


Then nagios would execute this...

./check_http -H hostname -u /testdb.php -s SUCCESS

-- 
Jonathan Angliss
j...@netdork.net


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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 surpess notifications if ping fails.

2009-07-01 Thread Jon Angliss
Jeremiah Jester wrote:
 Hmmm, tryied this...but not working. Also, i get an error when i specify
 'retry_interval'. maybe n agios3 only?
 
 define host{
 host_name   psedev2
 alias   dev
 check_command   check-host-alive
 notification_optionsd,r
 max_check_attempts  3
 check_interval  1
 retry_interval  1
 address 10.139.10.42
 use generic-host
 parents switch-office
 }
 
 Error log:
 [1246481763] Error: Invalid host object directive 'retry_interval'.
 [1246481763] Error: Could not add object property in file
 '/etc/nagios2/conf.d/generic-host_nagios2.cfg' on line 143.
 [1246481763] Bailing out due to one or more errors encountered in the
 configuration files.  Run Nagios from the command line with the -v
 option to verify your config before restarting. (PID=27490)

Yep, that'd be a nagios 3 option.  I'd not realized (or maybe
missed) you were using v2.  Just remove that option.

-- 
Jon Angliss
j...@netdork.net


 
 
 Thanks,
 JJ
 
 
 On Tue, Jun 30, 2009 at 9:08 PM, Jon Angliss j...@netdork.net
 mailto:j...@netdork.net wrote:
 
 Jeremiah Jester wrote:
  Jon,
 
  Thanks for the reply. I've been struggling with this for some
 days. Can
  you give me an example of what how to define this and in what file? I
  would appreciate your help.
 
 Files don't really matter.  Nagios loads them all, and processes.
 Its up to you how you want to format.  Sometimes it's easier to
 group by type (hosts, services, commands, etc), and others by
 location (server room, etc).  How you format is up to you.  If you
 want, you can even bundle it all in a single file.
 
 Lines ending in \ are wrapped and should appear on a single line in
 your config.
 
 define command {
command_namecheck-host-alive
command_line$USER1$/check_ping -H $HOSTADDRESS$ \
-w 3000.0,80% -c 5000.0,100% \
-p 5
 }
 
 define command {
command_namecheck_http
command_line$USER1$/check_http -H $HOSTNAME$
 }
 
 define host {
host_name   myhost
address 1.1.1.1
check_command   check-host-alive
notification_optionsd,r
check_periodAll
max_check_attempts  3
check_interval  1
retry_interval  1
contact_groups  mycontacts
 }
 
 define service {
host_name   myhost
check_command   check_http
{.. other stuff here .. }
 }
 
 This will execute check_http against the myhost.  check-host-alive
 will be executed every 1 minute.  If check-host-alive fails 3 times,
 host is considered down, and alerts for check_http will be
 suppressed.  You should read up on host checks [1], service checks
 [2], and notifications [3].
 
  Also, I've not seen v3 in the repsository but maybe i need to
 change my
  sources?
 
 You didn't mention which version of ubuntu you were using, but
 jaunty has nagios3...
 
  http://packages.ubuntu.com/jaunty/nagios3
 
 
 
 [1]: http://nagios.sourceforge.net/docs/3_0/hostchecks.html
 [2]: http://nagios.sourceforge.net/docs/3_0/servicechecks.html
 [3]: http://nagios.sourceforge.net/docs/3_0/notifications.html
 
 --
 Jon Angliss
 j...@netdork.net mailto:j...@netdork.net
 
 


-- 
Jon Angliss
j...@netdork.net

--
___
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] Problems w/ Nagios Web Interface

2009-06-30 Thread Jon Angliss
On Tue, 30 Jun 2009 09:56:13 -0500, Leleux, Jeremy J
jjlel...@sunlandconstruction.com wrote:

Hi all,

I have a fresh install of nagios 3.1.2 and I'm able to login into the
web interface, but once I'm authenticated I get the following error:

   403 Forbidden - You don't have permission to access
/nagios/ on this server.

Here is the output from my Apache error_log:

   [Tue Jun 30 09:47:17 2009] [notice] Apache/2.2.3
(CentOS) configured -- resuming normal operations
   [Tue Jun 30 09:47:57 2009] [error] [client 127.0.0.1]
Directory index forbidden by Options directive: /usr/local/nagios/share/

This here says that your server is attempting to send a list of the
directory contents back to the client, but settings in the apache
configuration deny it.  That probably means it's not treating
index.html as the default page in the directory.  Hunt down the
DirectoryIndex line in your apache configuration, and add index.html
to the end, and restart apache.

-- 
Jonathan Angliss
j...@netdork.net


--
___
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 surpess notifications if ping fails.

2009-06-30 Thread Jon Angliss
On Mon, 29 Jun 2009 14:57:19 -0700, Jeremiah Jester
jeremiahjes...@gmail.com wrote:

Hello,

I have a working nagios2 installation under Ubuntu.  I would like to
configure nagios so that when a host cannot be ping'd by nagios all other
services related to this server/s are stopped so I don't get a slew of
notifications for that host.

I'm thinking i want servicedepency directive in my dependecies.cfg file?
Does this sound about right?


define servicedependency{
hostgroup_name   servers
service_description ping
dependent_hostgroup_nameservers
dependent_service_description   *
execution_failure_criteria  w,c
notification_failure_criteria   w,u,c
}

Yes, that's one way to do it, though over-complicating it.  The other
is to actually have ping (usually defined as check-host-alive) as the
host check, when the host is unreachable, the notifications for the
services will not be sent. 

Nagios3 would also be a good idea for an upgrade (something I believe
ubuntu has as a package already) as the host checks are much better in
v3.
-- 
Jonathan Angliss
j...@netdork.net


--
___
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 surpess notifications if ping fails.

2009-06-30 Thread Jon Angliss
Jeremiah Jester wrote:
 Jon,
 
 Thanks for the reply. I've been struggling with this for some days. Can
 you give me an example of what how to define this and in what file? I
 would appreciate your help.

Files don't really matter.  Nagios loads them all, and processes.
Its up to you how you want to format.  Sometimes it's easier to
group by type (hosts, services, commands, etc), and others by
location (server room, etc).  How you format is up to you.  If you
want, you can even bundle it all in a single file.

Lines ending in \ are wrapped and should appear on a single line in
your config.

define command {
command_namecheck-host-alive
command_line$USER1$/check_ping -H $HOSTADDRESS$ \
-w 3000.0,80% -c 5000.0,100% \
-p 5
}

define command {
command_namecheck_http
command_line$USER1$/check_http -H $HOSTNAME$
}

define host {
host_name   myhost
address 1.1.1.1
check_command   check-host-alive
notification_optionsd,r
check_periodAll
max_check_attempts  3
check_interval  1
retry_interval  1
contact_groups  mycontacts
}

define service {
host_name   myhost
check_command   check_http
{.. other stuff here .. }
}

This will execute check_http against the myhost.  check-host-alive
will be executed every 1 minute.  If check-host-alive fails 3 times,
host is considered down, and alerts for check_http will be
suppressed.  You should read up on host checks [1], service checks
[2], and notifications [3].

 Also, I've not seen v3 in the repsository but maybe i need to change my
 sources?

You didn't mention which version of ubuntu you were using, but
jaunty has nagios3...

  http://packages.ubuntu.com/jaunty/nagios3



[1]: http://nagios.sourceforge.net/docs/3_0/hostchecks.html
[2]: http://nagios.sourceforge.net/docs/3_0/servicechecks.html
[3]: http://nagios.sourceforge.net/docs/3_0/notifications.html

-- 
Jon Angliss
j...@netdork.net

--
___
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] Checking OWA

2009-06-12 Thread Jon Angliss
On Fri, 12 Jun 2009 11:43:29 -0700, p...@fhri.org wrote:

Trying to use check_http to monitor OWA.  I can monitor the site's
response, SSL and even login, but not content, which would be a truly
thorough test I used to be able to do some time back.  Getting stuck
with this error, seen in verbose output from the plugin:
 
This page uses frames, but your browser doesn't support them.

That's exactly what I'd expect to see when you don't actually request
the page with content, and just call the main frameset page.

 
I see the same error if I disable frame support in Firefox.  Anyone else
monitoring OWA content?

What content are you actually looking for? Is there a specific email
you're looking for?  If so, you don't want to call /exchange/nagios,
you want to look for the INBOX instead.  If you view the source of the
frameset page, you will see two frame calls, the body looks something
like this:

FRAMESET
  FRAME name=navbar src=./?Cmd=navbar
  FRAME name=viewer src=Inbox/?Cmd=contents
  NOFRAMES
BODYPThis page uses frames, but your browser doesn't support
them./P/BODY
 /NOFRAMES
/FRAMESET

Note, I have trimmed the code to make it actually readable.  You can
see the navigation bar, and the inbox calls.  So your nagios
check_http call should in fact look like this:

./check_http -H exchange -u /exchange/nagios/Inbox/?Cmd=contents -a
dom1\nagios:nagiospass1 -s 

Another note, you'll find the code for {name} : INBOX is split by HTML
code, so your check needs to account for it.  In my case, the check
would be:

   -s 'Jonathan Angliss/B/FONT/A/FONT..'

If you're just looking for the name resolution, just use that instead.

I just did a quick test to validate, and it looks like the following
page is expecting session data, so you might end up having to string
together a number of tests using cURL, or using webinject to login,
and access the page.

-- 
Jonathan Angliss
j...@netdork.net


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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_http --ssl

2009-06-11 Thread Jon Angliss
On Thu, 11 Jun 2009 16:58:36 -0700, p...@fhri.org wrote:

My check_http doesn't have SSL support:

check_http: Invalid option - SSL is not available

From online research, I gather that I have to recompile the plugins with
the SSL option after having SSL installed on the system.

I have the following openssl packages on the Ubuntu server:

$ sudo aptitude search openssl:

libssl-dev


[..]

Yet, when re-configuring, it still does it without SSL support:

config.status: creating po/Makefile
--with-apt-get-command: /usr/bin/apt-get
  --with-ping6-command:
   --with-ping-command: /bin/ping -n -U -w %d -c %d %s
   --with-ipv6: yes
  --with-mysql: no
--with-openssl: no
 --with-gnutls: no
   --enable-extra-opts: no
   --with-perl: /usr/bin/perl
 --enable-perl-modules: no
 --with-cgiurl: /nagios/cgi-bin
   --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin

What am I missing?

libssl-dev should be what you're after.

-- 
Jonathan Angliss
j...@netdork.net


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Host/service Contacts question

2009-06-04 Thread Jon Angliss
On Thu, 4 Jun 2009 10:40:43 -0700, John Andrunas j...@andrunas.net
wrote:

If someone is listed as a contact for a host do they also get notified
of service problems on that host?  If not any recommendations on how
to handle that using
http://nagios.sourceforge.net/docs/3_0/objecttricks.html

Assuming the service doesn't have its own contact, or contact_groups,
it'll inherit from the host.  See the section on implied inheritence
at  http://nagios.sourceforge.net/docs/3_0/objectinheritance.html.

If you want to add additional contacts, I believe you can add more
contacts/contact_groups simply using the + in the service definition.

-- 
Jonathan Angliss
j...@netdork.net


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] Error while accessing the web Interface

2009-05-27 Thread Jon Angliss
On Wed, 27 May 2009 18:05:13 -0400, Jai Ram jai...@gmail.com wrote:

Hello,


I have installed nagios on solaris 10. By default the local host is
monitored and everything works fine. But when I try to access the Trends,
statusmap,alert histogram from the web interface I am having the below
error. I checked all the permissions and every thing looks fine.

[..]

[Wed May 27 18:00:49 2009] [error] [client 10.187.152.223] ld.so.1:
histogram.cgi: fatal: libfreetype.so.6: open failed: No such file or
directory, referer: http://server.mydomain.com/nagios/side.html

If you're using a package system, you're missing a library to be
installed.  A quick google for libfreetype.so.6 hints that you might
need SUNWfreetype2.

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-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] Monitoring MSSQL

2009-05-25 Thread Jon Angliss
On Tue, 26 May 2009 09:08:26 +1000, Stuart Browne
stuart.bro...@ausregistry.com.au wrote:

The nagios Plugins has a 'check_mysql' compiled binary which does basic 
checks, and has plenty of built-in help to get it working.

Assuming the OP really meant MSSQL referring to Microsoft SQL
server, the check_mysql won't do much for them :)

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.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] Monitoring MSSQL

2009-05-25 Thread Jon Angliss
On Mon, 25 May 2009 12:54:39 -0300, Eduardo Barreto lec...@gmail.com
wrote:

Hi All,

I've heard about check_mssql.sh, is it the solution to monitor mssql, are
there anyother plugin? Does anybody have a HOWTO to install this plugin?

What do you want to monitor specifically?  Usually there isn't a
howto specifically for a plugin as general usage is well documented
by using the --help or reading the README files included.

I'm assuming you do mean Microsoft SQL, and not MySQL?

http://www.monitoringexchange.org/cgi-bin/search.cgi?d=1query=mssqlGo=Go

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.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] Using a different notification command after a certain downtime

2009-05-23 Thread Jon Angliss
On Fri, 22 May 2009 19:05:20 +0200, Georg M. Sorst
georgso...@gmx.de wrote:

Hi list!

I am currently integrating Skype into our monitoring to provide SMS
notifications. It's working pretty fine and if you're interested you can
check out my documentation in the Nagios wiki [1].

However, I had one tiny problem with the configuration that I would like
to sort out if possible. The problem is: When the HTTPs are down for
more than 20 minutes I want to be notified by SMS, but I still want to
use the regular mail notifications (currently set to occur after I
believe 3 Minutes). My solution to this was to duplicate the service
definitions for HTTP to provide different check intervals / max check
attempts (coming out at 10 minutes and 20 minutes respectively) and
contact groups / contacts (the contacts in the first group use mail
notifications, the contacts in the second group use SMS notifications,
but are essentially the same users as in the first group, just
duplicated). Have a look at the wiki page if this description is unclear.

So, in essence my question is if there is any way to tell Nagios to
switch to a different notification command after a certain downtime or
any other way to avoid this duplication.

Thanks and best regards,
Georg


[1] http://community.nagios.org/wiki/index.php/SkypeSmsNotification


Instead of duplicating the service, you can use service escalations,
as defined in the docs [2].  This will esentially do the same thing
you have with the duplicated commands, however you'll still need new
contacts to send the notifications to the SMS rather than the regular
emails.

The other way to handle it would be a custom notification script which
you use for notifications, and pass in the arguments for the SMS
number, the email address, the usual macros, and the notification
count [3].  Then you can throw some logic in the script that does
something like this:

if ($HOSTNOTIFICATIONNUMBER  5) {
  send_sms_message();
}
send_email_message();



[2]:
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#serviceescalation
[3]: http://nagios.sourceforge.net/docs/3_0/macrolist.html
-- 
Jonathan Angliss
j...@netdork.net


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.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] Odd check_http error

2009-05-15 Thread Jon Angliss
On Fri, 15 May 2009 16:17:50 -0400, Andrew Davis ncc...@gmail.com
wrote:

Oddly enough, low-level tests show an HTTP 302, which I expect. But 
Nagios is offering up a 400 error and a warning:

 From my workstation, confirming the server is configured correctly:

gentoo:~ adavis$ telnet seth 8080
Trying 10.1.1.23...
Connected to seth.fl.ad.scripps.edu.
Escape character is '^]'.
GET /gp HTTP/1.0
Host: seth
Accept: */*
Connection: Keep-Alive
Pragma: no-cache

Run the check_http as defined in the command definition, appending the
-v argument.  You'll get to see what the check_http command is
executing.  I suspect your command definition is incorrect, and you're
missing something that is supposed to be triggering the host header.

[.. snip ..]


 From services.cfg:

## HTTP - alternate port
define service {
host_name   seth
service_description HTTP
check_command   check_http!-p 8080!-u
/gp/pages/login.jsf
notes  
http://$HOSTADDRESS$:8080/gp/pages/login.jsf
max_check_attempts  3
normal_check_interval   15
retry_check_interval1
check_period24x7
notification_interval   120
notification_period 24x7
notification_optionsw, u, c, r, f, s
contact_groups  unixadmins
action_url 
/nagios/pnp/index.php?host=$HOSTNAME$srv=$SERVICEDESC$
}

Where is your define command?




And the result in Nagios:

HTTP WARNING: HTTP/1.1 400 No Host matches server name seth

Hrm... this is odd, looks like you are posting the right host entry
(would still like to see the command definition).  The host entry for
seth, is the address defined the same as the IP you are getting when
you telnet to the name? ie:

define host {
  host_name   seth
  address10.1.1.23
}

-- 
Jonathan Angliss
j...@netdork.net


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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] Host vs Service reachability

2009-05-15 Thread Jon Angliss
On Fri, 15 May 2009 11:26:54 -0400, Jason Frisvold
frisv...@lafayette.edu wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

   I'm looking at possibly disabling my service pings and moving over
completely to host checks for reachability.  I'm unsure of the exact
mechanics, though, so if someone can help me out, I'd appreciate it.

   So, to start, if a host has no current services, is the host_check
still intermittent?  Or does it become an active check at a specific
interval, similar to a service?  We have several hosts that we only
check for connectivity as opposed to services, for a variety of reasons.

From my understanding, the changes in v3 make the checks perform
better, whilst v2 were done slightly differently.  They execute as
scheduled based on the check interval.

   From what I've read of Nagios 3, it sounds like using host checks is
more efficient.  Are there instances, though, where services may show
up, but the host is down?  Does the host_check run at specified
intervals, even though service checks don't show a problem?

A service may show up, and a host down if the times for checking
overlap.  For example, a service check every 10 minutes, and host
checks every 1 minute.  A host check could show the server down,
whilst the service check will show it is OK.

It can also depend on what you consider for your host check too.  For
example, if you cannot ping, and you use the check_ping/check_icmp
functions, you'll show the host down, but services up.

   Is there a compelling reason to not do this?  ie, am I inviting a world
of hurt by using host checks vs a service ping?

You're actually inviting a world of hurt doing it the other way
around (service ping over host check).  Host checks will help surpress
service notifications, as well as help manage network reachability if
you use parents (see [1]).  Take for example, a host you have FTP,
HTTP, and your ping check on.  If you the host goes down, the ping
service will show down, but FTP, and HTTP tests will also show
unreachable, or timeout, causing 3 notifications.  If the host check
was to be used, you'd get a notification the host was down, rather
than 3 to report host issues.  You can, of course, work around this
with service dependencies, but that complicates your configuration.



[1]: http://nagios.sourceforge.net/docs/3_0/networkreachability.html

-- 
Jonathan Angliss
j...@netdork.net


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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] compile with mysql

2009-05-09 Thread Jon Angliss
On Sat, 9 May 2009 23:31:41 +0200, Thierry Granier
th.gran...@free.fr wrote:

Hi
can somebody tell me how to compile Nagios with the mysql option please?
Many thanks and regards
Thierry

What are you trying to acheive?  Nagios itself doesn't use MySQL, but
some of the plugins can, and NDOUtils does.

-- 
Jonathan Angliss
j...@netdork.net


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] Windows 64-bit

2009-05-05 Thread Jon Angliss
On Tue, 5 May 2009 16:19:27 -0700 (PDT), Grant Lowe
gl...@sbcglobal.net wrote:


Hi All,

I've been trying to find out if there is a 64-bit version of Nagios for 
Windows 64.  I've been looking at the internet and there isn't a lot of info 
about it.  I'm asking because our local Windows admins say it won't run on the 
Windows 64-bit, running on AMD (HP if that matters).  Any and all info is 
appreciated.

I'm assuming you really mean something like nsclient++ to run on
windows, and not nagios itself, which won't run on windows (unless you
fancy running inside cygwin, and all that fun stuff).  At least last
time I checked anyway, I'm more than happy to be wrong.

http://nsclient.org/nscp/ has a 64bit versions for monitoring your
windows hosts.

-- 
Jonathan Angliss
j...@netdork.net


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] plugins for clustered environment

2009-05-05 Thread Jon Angliss
On Tue, 5 May 2009 15:05:49 -0400, Anirudh Srinivasan
srianir...@gmail.com wrote:

Hello Friends,

Is it possible to monitor a service i.e exchange service on the clustered
environment instead of monitoring it individually on each  clustered node.

Sounds like you need to monitor the clustered IP instead of the
individual IP addresses, and check for various services and their
states there.  The server will react, and respond accordingly because
the cluster services will handle the requests.  That being said, you'd
probably still want something to monitor the cluster services
themselves to see if there was a failure.

Currently exchange services are being monitored individually on each
clustered node.
FYI : The server is a Windows clustered environment.

Can i use check_cluster ??
 If i am not wrong check_cluster works only for Linux cluster. Is that
right??

Check cluster will take the results of several hosts/services and
respond based on the thresholds defined.  For example, if you have
several web servers that form a web farm, each server is checked
independantly.   The check_cluster plugin takes the output of the
service checks, and gives you back an OK, WARNING, CRITICAL based on
your threshold.  See:

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

A similar example is provided there.

Please advice me on what plugin to use  to achieve this.
Thanks

-- 
Jonathan Angliss
j...@netdork.net


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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 Windows Updates question

2009-05-03 Thread Jon Angliss
On Sun, 3 May 2009 13:57:27 +0200 (CEST), Albrecht Dreß
albrecht.dr...@arcor.de wrote:

Hi Eric:

 It is possible that there are updates available, but none of these are high
 priority, so they are not appearing when you go to the Windows Update 
 website?

You're right - these update were in the categories Software, Optional and 
Hardware, Optional.  After installing them manually, the they also 
disappeared from the list reported by check_nrpe.

It would now be nice to have the options to either exclude optional updates 
completely from the check or to exclude them from the critical and warning 
counters (i.e. if there are no important updates, check_nrpe still returns ok, 
but once there is an important one, the list of optional ones is included in 
the performance data).

Do you know the property of the object returned by the searcher interface 
which indicates if the update is important or optional (I hope there is 
one...)?  I would then tweak the script.



Software:
http://www.microsoft.com/technet/scriptcenter/scripts/sus/client/suclvb12.mspx

Harware (Drivers):
http://www.microsoft.com/technet/scriptcenter/scripts/sus/client/suclvb11.mspx

Details on the IUpdate interface
http://msdn.microsoft.com/en-us/library/aa386099(VS.85).aspx

That being said, not entirely sure if the windows update service knows
the difference between a critical, and optional update when a WSUS
server is not involved.  You could use the code above, and look for
ones that have the AutoSelectOnWebSites set to yes/true/1.  This
should give you the same view as what you get on the website.

http://www.nagiosexchange.org/cgi-bin/jump.cgi?ID=2547view=File1;d=1

That should be a good base, you can probably just modify the search
criteria, and ass and AutoSelectOnWebSites = 1

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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 Windows Updates question

2009-05-03 Thread Jon Angliss
On Sun, 3 May 2009 22:12:36 +0200, Christoph Stoettner
i...@stoeps.de wrote:

.


 It appears that that service isn't running on my box (Windows XP
 Professional SP2 German version), although the log file exists.

  net stop wuauctl


 Command results in (my vague translation from German to English)

 snip
 System error 1060 occurred.
 The specified service is not an installed service.
 /snip


Please try net stop wuauclt

Damn my fingers ;)  Well spotted :)

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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: External directory permission issue.

2009-05-02 Thread Jon Angliss
On Sat, 2 May 2009 10:46:52 +0530, Jimmyboy jimmyjose2...@gmail.com
wrote:

Hi,

After installing Nagios 3.0.6, I login to the web interface using
http://localhost/nagios.
When I attempt to restart the Nagios service using 'Process Info', the error
thrown is as seen below.

=-=-=
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for
update!

The permissions on the external command file and/or directory may be
incorrect. Read the FAQs on how to setup proper permissions.

An error occured while attempting to commit your command for processing.

*Return from whence you came
*=-=-=

I checked the directory permissions and here is the output.

*Output of 'ls -al /usr/local/nagios/var'*
drwxrwsr-x 2 nagios nagcmd 4096 2009-04-18 07:25 rw

*Output of 'ls -al /usr/local/nagios/var/rw'*
prw-rw 1 nagios nagcmd 14049 2009-04-18 07:25 nagios.cmd
=-=-=

Any idea what else need to be done?

What user is your web server running as?  Going to assume something
like www-data, or apache.  In either case, the above permissions
wouldn't allow for access.  You could add your webserver user into the
nagcmd group to get permissions.

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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 Windows Updates question

2009-05-01 Thread Jon Angliss
On Fri, 01 May 2009 15:24:39 +0200, Albrecht Dreß
albrecht.dr...@arcor.de wrote:

Hi,

I try to use the plugin  
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2639.html;d=1 via  
nrpe as to detect pending Windows updates.  However, running the  
plug-in says

snip
r...@my-server:/opt/nagios/libexec# ./check_nrpe -H winbox -c  
check_win_updates ; echo $?
Critical: 10 Updates detected! No Reboot required!
2
/snip

but when I log onto the Win box and run the Win update, it says that  
there are no pending updates.

Any idea what I missed here?  I would really like to use that plug-in...

Not something you missed, but the plugin author.  The plugin reads the
ReportingEvents.log file in the SoftwareDistribution folder, and
looks for a specific ID.  Unfortunately it appears that log isn't
rotated on each check, which means that you had, at one point, several
updates pending, and WSUS hasn't updated the status successfully
since.

Try stopping wuauctl on the server in question, and renaming the log
file.

net stop wuauctl
C:\windows\softwaredistribution\ReportingEvents.log rename/move
net start wuauctl
wuauclt /detectnow

Trigger another check, and see what comes back.  If you still see odd
issues, take a look at the log file, and search for the line that
looks like this:

  Windows Update Client successfully detected 0 updates

If this still doesn't work out for you, there are plenty of other
options on the http://nagiosexchange.org such as:

  http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2547.html;d=1

Good luck
-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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_proc -a works directly but fails through nrpe

2009-04-30 Thread Jon Angliss
On Thu, 30 Apr 2009 10:12:40 + (UTC), R. David Murray
rdmur...@bitdance.com wrote:

Jon Angliss j...@netdork.net wrote:
 On Wed, 29 Apr 2009 22:03:46 + (UTC), R. David Murray
 rdmur...@bitdance.com wrote:
 
 This is weird.  If I do this:
 
 sudo -u nagios /usr/local/libexec/nagios/check_procs -a -L 
  /var/sipenv-10.1.2.1/log/b2bua.log -C python -c 1:1
 PROCS OK: 1 process with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', 
  command name 'python'
 
 everything is fine, but if I do it remotely:
 
 ./check_nrpe -H 65.175.131.174 -c check_foo
 PROCS CRITICAL: 0 processes with args '-L 
  /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python'
 
 it can't find the process.  It looks as though the string that check_cpu
 is looking at is truncated when and only when it is run under nrpe.
 
 Anyone have any clues, especially thoughts on a workaround?
 
 What's your definition for check_foo from the nrpe?  You mentioned
 check_procs in the first statement, check_foo in the command call, and
 check_cpu in the explanation of truncation... which is right? ;)

The nrpe.cfg definition of check_foo is:

command[check_foo]=/usr/local/libexec/nagios/check_procs -a -L 
/var/sipenv-10.1.2.1/log/b2bua.log -C python -c 1:1

Looks the same.  Double checked the user running nrpe is really
nagios?  How about running env -i before testing the script locally
to see if there are any issues with environment being loaded when
executed remotely.

The mention of check_cpu should be replaced with check_procs, sorry for the 
typo.

Figured that was what you meant ;)

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] Using HOSTALIAS in services.cfg

2009-04-29 Thread Jon Angliss
On Wed, 29 Apr 2009 07:53:06 -0600, Matt Nelson m...@frozenatom.com
wrote:

 I am trying to use HOSTALIAS in one of my service definitions.  Is this
 possible?  I looked at:

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

 and it looks like it is.

 How about telling us the behaviour you're getting, what you expect,
 and the sample configuration to show us how you're doing it so we
 might be able to help?

 --
 Jonathan Angliss
 j...@netdork.net

Sorry I was being lazy when I posted this.  Here is some info to go by:

*host.cfg*

define host {
use default
host_name jmsFarmManagedServer3.dev
alias   Server3
address  weblogic03.dev
}

*service.cfg (This way works fine)*


define service{
use critical-service
host_name jmsFarmManagedServer3.dev
service_descriptionJMSDestinationRuntime-ConsumersCurrentCount
check_command
check_jmx!!1!1!'com.bea:ServerRuntime=jmsFarmManagedServer3,name=edijmsmodule\!jmsfarmjmsserv...@ediincomingqueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount'
--jmxrmi 'weblogic.management.mbeanservers.runtime'
notifications_enabled   0
}


*service.cfg (This way does not work)*

define service{
use critical-service
host_name jmsFarmManaged$HOSTALIAS$.dev
service_descriptionJMSDestinationRuntime-ConsumersCurrentCount
check_command
check_jmx!!1!1!'com.bea:ServerRuntime=jmsFarmManaged'$HOSTALIAS$',Name=EDIJMSModule\!jmsFarmJMS'$HOSTALIAS$'@EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount'
--jmxrmi 'weblogic.management.mbeanservers.runtime'
notifications_enabled   0
}

Have you tried increasing the debugging to see what's actually being
passed?  Looking at your definition, you have '$HOSTALIAS$' (note the
single quote), yet that doesn't exist on the working example.  Was
this a typo? 

Also, you need'll need to provide the command definition so we can see
how the args are being passed.

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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_proc -a works directly but fails through nrpe

2009-04-29 Thread Jon Angliss
On Wed, 29 Apr 2009 22:03:46 + (UTC), R. David Murray
rdmur...@bitdance.com wrote:

This is weird.  If I do this:

sudo -u nagios /usr/local/libexec/nagios/check_procs -a -L 
 /var/sipenv-10.1.2.1/log/b2bua.log -C python -c 1:1
PROCS OK: 1 process with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', 
 command name 'python'

everything is fine, but if I do it remotely:

./check_nrpe -H 65.175.131.174 -c check_foo
PROCS CRITICAL: 0 processes with args '-L 
 /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python'

it can't find the process.  It looks as though the string that check_cpu
is looking at is truncated when and only when it is run under nrpe.

Anyone have any clues, especially thoughts on a workaround?

What's your definition for check_foo from the nrpe?  You mentioned
check_procs in the first statement, check_foo in the command call, and
check_cpu in the explanation of truncation... which is right? ;)

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] NRPE/Firewall issues: Assistance required.

2009-04-28 Thread Jon Angliss
On Tue, 28 Apr 2009 10:58:26 +0100, Gabriel - IP Guys
gabr...@impactteachers.com wrote:

I've managed to install my Nagios server (monitor), and it seems that
all is well with it. The box to be monitored(client) has NRPE running on
it. On monitor, I run

$ CHECK_NRPE -H *client ip* 

I get the CHECK_NRPE: Socket timeout after 10 seconds error message

On client I've run the command

$ iptables -A INPUT -p tcp -dport 5666 -j ACCEPT

This should allow all traffic directed to port 5666 to be accepted,
which in turn should kick NRPE into life and have it return

This will append the rule to the end of the INPUT chain.  If you have
another rule that forwards incoming requests to a different chain for
processing, or you have a deny statement above it, this rule may never
be hit.  You might want to validate the rules:

  iptables -L INPUT

NRPE v2.12
I can't tell what I'm doing wrong here - as I'm sure I've done the right
thing. Any advice on getting client talking to monitor via NRPE, things
I should think about that could scupper the process would be
appreciated.

You've ensured the service is actually running?  Tried doing a test
locally?

  telnet localhost 5666

Are you running nrpe via (x)inetd or daemon?  If running via (x)inetd,
did you remember to enable the service, tell it to listen on all
ports, and restart the service?

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] Host/Service Script Question

2009-04-28 Thread Jon Angliss
On Tue, 28 Apr 2009 15:37:25 -0700 (PDT), Dei Bertine
deibert...@yahoo.com wrote:

Hi guys,

I was wondering if there's a way to incorporate all hosts into one host name 
instead of creating individual defines?
I'm trying to add all of our servers into Nagios but there's huge amount of 
them. 
Need faster way to add all of them into one script. 
Here's what I'm trying to avoid: 
define host{
use generic-host
host_namesunbl.001.csaa.net
alias  UNIX-SERVER1 
address 172.168.1.35
}
define host{
use generic-host
host_namesunbl.002.csaa.net
alias  UNIX-SERVER2 
address 172.168.1.36
}

.and so on to hundreds of define host

Here's what I'm trying to hopefully accomplish if possible:
define host{
useall-host
host_name   allunixhosts
alias  ALL-UNIX 
address ALLIP
}

...done all hosts...

Do you have the expectation of Nagios guessing your IP schema, and
host names?  There is a way of using nmap, and a script to build a
basis for you.

And also have them in one all host services.cfg script. 
define service{
use all-service 
host_name ALLHOSTSERVICE
service_description SSH
check_command   check_ssh
}

define service{ 
   use all-service
   host_name ALLHOSTSERVICE
   service_description   PING
   check_commandcheck_ping
   }

Services can be applied to hostgroups. For example:

define hostgroup {
hostgroup_name  myunixhostgroup
}

define host {
register0
nameunix_host
hostgroups  myunixhostgroup
[..]
}

define host {
use unix_host
host_name   unix01
address 172.16.0.2
}

define service {
service_descriptPING
check_command   check_ping
hostgroup_name  myunixhostgroup
}

This reduces the definition of the host down to 3 lines, you're using
a template for all your linux hosts, and the service is applied to the
entire group.  Hope that gives you a head start.

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] Using HOSTALIAS in services.cfg

2009-04-28 Thread Jon Angliss
On Tue, 28 Apr 2009 15:48:04 -0600, Matt Nelson m...@frozenatom.com
wrote:

I am trying to use HOSTALIAS in one of my service definitions.  Is this
possible?  I looked at:

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

and it looks like it is.

How about telling us the behaviour you're getting, what you expect,
and the sample configuration to show us how you're doing it so we
might be able to help?

-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] ESX server monitroing

2009-03-04 Thread Jon Angliss
On Wed, 4 Mar 2009 20:02:19 -0500, Satish Patel
sat...@linuxbug.org wrote:

anyone using SNMP base ESX monitoring with nagios, i have tried few plugins 
but i want advance one so i can fully monitor my ESX boxes.

What few plugins have you tried? And what advanced features are you
after?  Have you checked http://www.nagiosexchange.org ?
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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 authentication with Active directoy

2009-03-04 Thread Jon Angliss
On Wed, 4 Mar 2009 20:00:51 -0500, Satish Patel
sat...@linuxbug.org wrote:

I want to authenticate my nagios with AD. i read couple of  document on net 
but no luck..any one using this method of authentication please let me know i 
will appricate your help.

I'm assuming you mean the Nagios UI, in which case you'll want to look
for mod_auth_ldap and active directory.  The Nagios UI is just a web
page, authentication is done via your web server.  Assuming Apache,
then mod_auth_ldap, or mod_auth_kerberos should be where you are
looking.
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Need help to monitor ASP.NET performance counters for windows 2008

2009-03-04 Thread Jon Angliss
On Wed, 04 Mar 2009 19:20:09 +0530, Sujit D. Kadam
sujit.ka...@netmagicsolutions.com wrote:

Hi,

I am using Nagios Version 3.0.3 on server side.
Need to monitor ASP.NET counters of Window 2008 (64 bit)
On windows 2008 , I have installed pNsclient.exe
also tried with nsclient++

On server side in commands.cfg

# 'check_nt_Counters' command definition
define command {
command_namecheck_nt_counters
command_line$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s 
password -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$
}


in services.cfg

## Below is Service Definition for ASP.NET Apps v2.050727 - Sessions Active
define service{
use windows-service
host_name   host1
service_description ASP.NET_Apps-Sessions_Active
check_command   check_nt_counters!\\ASP.NET 
Apps v2.050727\\Sessions Active!2000!2500
}

Have you tried executing from the command line to see if the command
is executing properly? Whilst it shouldn't be a huge issue, have you
tried dropping the version specific counter?

  \\ASP.NET Applications\\Sessions Active

I am getting the output value as 0 but exactly in perfmon I can see the 
exact value i.e approx 1000


Also tried nrpe_nt to install on windows 2008. But throwing error while 
starting the service.

Windows could not start th Nagios Remote Plugin Executor for NT/w...@k 
service on Local Computer.
Error 1053: The service did not respond to the start or control request 
in timely manner.

So the service isn't starting that you're trying to use to get
counters from? nsclient++ seems to work okay, not tested on 2008 yet,
pretty soon though.

I don't have that counter monitored, but I do have RAS monitored with
nsclient++.
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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 SOAP?

2009-03-04 Thread Jon Angliss
On Thu, 26 Feb 2009 08:25:49 -0900, Israel Brewster
isr...@frontierflying.com wrote:

Is there a nagios plugin out there that can monitor a soap server,  
i.e. by sending a soap call to the server and looking for a response?  
Or do I need to write one? I did a search on nagios exchange for  
soap and Web services, but didn't find anything that looked  
promising. Thanks.

http://www.webinject.org/webservices.html

-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] CPU Critical

2009-02-12 Thread Jon Angliss
On Fri, 13 Feb 2009 00:54:34 -, Martyn mar...@chetnet.co.uk
wrote:

Hi All
I have noticed whilst monitoring my NT server the CPU load level has been at
critical status for 3d 8h 29m 32s and sitting at 100%,  this is good news
from a monitoring point of view as it was spotted, however I need to solve
it.

I know I can just jump on to my server and look at the processors I would
find what was hogging it but is there a plugin/module or add-on that I can
use to see what processors maxing out.

If you're any good at scripting, you can tinker with the WMI script
from here:


http://www.databasejournal.com/features/mssql/article.php/3560366/Monitor-CPU-Usage-of-All-Running-Processes--Part-I.htm

It's a WMI script that will walk through all the processes, and return
the CPU usage.  With some tweaking, you can probably sort the results,
add the values, and use it as a CPU counter, and return the top
process as part of the check.
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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 not sending sms through gnokii

2009-01-09 Thread Jon Angliss
On Fri, 9 Jan 2009 17:17:04 +0800, fernando renegado
flreneg...@gmail.com wrote:

Hi Jon,
I just followed the following:

i did su nagios, ran the script and the errors popped out:

~# su nagios
$ /usr/bin/sms_gnokii
GNOKII Version 0.6.27
Couldn't read /home/nagios/.gnokiirc config file.
Couldn't read /home/nagios/.gnokiirc config file.
Couldn't read /etc/gnokiirc config file.
Couldn't read /etc/gnokiirc config file.
Config file cannot be read.

I copied .gnokiirc from /root to /home/nagios and did chown nagios:nagios on
it.

Further, gnokii tries to send the message but it ends in another permission
related error:
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -1
Can't claim control interface: -1
Couldn't open PHONET device: Operation not permitted
Error in link initialisation: 1
Telephone interface init failed: Command failed.
Quitting.
Command failed.

Furthermore, i tried the following:

chown -R nagios:nagios /dev/bus/usb/*
chown -R nagios:nagios  /dev/ttyACM0
and
chmod 750 -R /dev/bus/usb/*
chmod 750 /dev/ttyACM0

You shouldn't need to do this. Find out the owner and group of those,
and you can probably drop nagios in that group, unless of course it's
root.

then I tried /usr/bin/gnokii --getnetworkinfo

and It works without error. Now I restarted nagios. NO SMS SENT only Email
notification.

Are you seeing log entries that say it is triggering the SMS
notification command?  Show us your command, service, and  host
commands.
-- 
Jon Angliss


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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 not sending sms through gnokii

2009-01-08 Thread Jon Angliss
On Fri, 9 Jan 2009 10:10:30 +0800, fernando renegado
flreneg...@gmail.com wrote:

Hi,

Just tested gnokii at the terminal as nagios user. It can send sms manually
as nagios user but when I restarted nagios, it failed to send sms. Also I
noticed that each time I reboot my nagios box, the permissions are denied.
And I have to chown and chmod the gnokii port and usb each time. Thanks for
your help.

chmod what port?  Can you add the nagios user to the group that is
part of the port owner?  You still haven't provided a huge amount of
information, like command definitions, or the likes.
-- 
Jon Angliss


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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 priority

2009-01-06 Thread Jon Angliss
On Tue, 6 Jan 2009 08:34:58 -0500, Layne Meier lme...@ajc.com wrote:

Is there a way to define in Nagios to send email alerts with high or  
low priority notification?  Several of our users want to be able to  
set their Blackberries to alert them a different way if a high  
priority email comes in, rather than just a regular email.

I have a rule setup on my blackberry to mark all messages from
nag...@mydomain.tld as a Level 1 message.  I then set the profile
I normally use to make extra loud noises for level 1 messages.  That
way I can tell the difference between an important message, and a
critical nagios alert.

As for setting the priority, Paul detailed how to do that just nicely.
-- 
Jon Angliss


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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 not sending sms through gnokii

2009-01-06 Thread Jon Angliss
On Tue, 6 Jan 2009 14:23:56 +0800, fernando renegado
flreneg...@gmail.com wrote:

Hi,

It's been weeks since I've been experimenting on gnokii to send sms alerts
from nagios. I'm using nokia 5210 xpress music cell connected to my nagios
on Centos box. When I tried to send sms at the terminal it works fine. But
when I enable nagios to send sms, it doesn't. I tried to chmod and chown the
port being used by gnokii but to no avail. Please help!

You'll need to provide more details, like the script you're using the
execute the sms send, and how you performed the additional tests.  As
Hugo mentioned, did you test as the nagios user?  Are you at least
seeing a notification entry in the log files saying it has attempted
to execute the command? Are there any errors there?
-- 
Jon Angliss


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] icons not displaying on Nagios 3.0.6 status map

2009-01-02 Thread Jon Angliss
On Fri, 2 Jan 2009 12:10:20 -0600, jmose...@corp.xanadoo.com wrote:

   
 Jon Angliss   
 j...@netdork.net 
To 
 01/02/2009 12:03  nagios-users@lists.sourceforge.net  
 AM cc 
   
   Subject 
   Re: [Nagios-users] icons not
   displaying on Nagios 3.0.6 status   
   map 

On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote:


Been using Nagios 2.x for years and never had this problem.  Just upgraded
a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems
to work fine, except that icons do not display on the status map.  I
basically get a blank square, regardless if I use .png, .jpg, .gd2, etc.
The icons display just fine in the host detail, hostgroup overview, etc.
Yes, per upgrade instructions, this extended host info has been moved into
the hosts config.  Sample looks like:

icon_image  firewall_router.png
vrml_image  firewall_router.png
statusmap_image firewall_router.gd2
2d_coords   100,200

Attached is screen shot.  Anyone else seen this?

You probably don't have the related GD libraries installed that were
used to build the RPM.  All the other locations are simply links to
the image (html img), whilst the images in the status maps are
imported using the GD libraries if I remember correctly.

I thought of this myself.  The odd thing is that the status map function in
the 2.9 Nagios package produced by the same repository maintainer worked
just fine with the current installed GD library, which is 2.0.33.  That GD
library was not upgraded prior to the Nagios upgrade.  If no one else has
seen this same problem, then I'll contact the repository maintainer.

You could see what's different in the statusmap.cgi file using ldd to
see what it's mapped against?

  ldd statusmap.cgi

You may find a missing library.  Also, you may not have upgraded your
GD libraries, but if the package maintainer did for some reason, there
might be conflicts there.
-- 
Jon Angliss


--
___
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] icons not displaying on Nagios 3.0.6 status map

2009-01-01 Thread Jon Angliss
On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote:


Been using Nagios 2.x for years and never had this problem.  Just upgraded
a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems
to work fine, except that icons do not display on the status map.  I
basically get a blank square, regardless if I use .png, .jpg, .gd2, etc.
The icons display just fine in the host detail, hostgroup overview, etc.
Yes, per upgrade instructions, this extended host info has been moved into
the hosts config.  Sample looks like:

icon_image  firewall_router.png
vrml_image  firewall_router.png
statusmap_image firewall_router.gd2
2d_coords   100,200

Attached is screen shot.  Anyone else seen this?

You probably don't have the related GD libraries installed that were
used to build the RPM.  All the other locations are simply links to
the image (html img), whilst the images in the status maps are
imported using the GD libraries if I remember correctly.

-- 
Jon Angliss


--
___
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] Monitoring Hosts without use plugins

2009-01-01 Thread Jon Angliss
On Wed, 31 Dec 2008 09:05:02 -0500, Sean McAfee
smca...@collaborativefusion.com wrote:

Hugo Canalli wrote:
 Hello,
 I need to monitor to see if hosts are UP or DOWN, but my hosts are 
 network devices that can not be installed any plugin for nagios as the 
 NCSA.
 What we need is that the nagios track every time and let a message 
 (sends a message by email or cell phone) if the host is down (without 
 using any type of plugin for the device monitored. On the server 
 management can be installed plugins nagios if necessary.)
 Do it possible with nagios?

 Version used: 3.0.6 nagios

 -- 
 -t-
The only difference between host and service checks are that host checks 
are not schedule and are only execed when a service check fails.  In the 
end, generic-host-alive will still be using check_ping. 

Are you sure this is still the case?  I'm pretty sure 3.x does host
checks on a scheduled basis now.  At least I'm seeing pings to all my
hosts every minute.  I believe that theory might have been correct for
2.x, but from what I have read the same does not apply for 3.x (see 17
in the what's new for v3).

-- 
Jon Angliss


--
___
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] Monitoring CPU temperature, fan velocity, smart hdd on Windows XP/NT...

2009-01-01 Thread Jon Angliss
On Mon, 29 Dec 2008 20:24:01 +0100, 44kbps 44kbps 44k...@gmail.com
wrote:

Hi people! First of all, sorry for my bad english...

I'm new on nagios3. I follow the instruccions about instalation and
configuring, and I had no problems.

Now, I monitor a Linux machine and a Windows XP with NSClient++.
But I have a little limitations with the NSClient++:
I would like to monitor the CPU temperature, the fan velocity, S.M.A.R.T.
messages of the HD, and other hardware variables.
Is it possible to do this with NSClient++? I have found no documentation
about this options on NSClient++'s wiki.

Are there another software for monitoring this variables?

http://trac.nakednuns.org/nscp/wiki/CheckWMIValue

http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true

You can play around in Microsoft's script center, and find a bunch of
useful goodies.  As NSClient++ can run the WMI calls directly, you can
call them like the example on the wiki.

You should be able to google around for apps that will get you the WMI
queries for all kinds of hardware related stuff, from CPU temp to fans
etc.
-- 
Jon Angliss


--
___
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] Servicegroups and web interface

2008-12-12 Thread Jon Angliss
On Fri, 12 Dec 2008 12:11:39 -0700, Matthew Shanker
mshan...@usgs.gov wrote:

I'm having what I think is some sort of permissions issue but I can't 
put my finger on it. I've got a situation where I've got an empty 
servicegroup that shows up in the web interface. As soon as I add the 
servicegroups line to the definition shown below the servicegroup 
dissapears from the web interface. The web interface is configured with 
authentication using a default user 'nagios' that is set for all 
hosts/services.

define service {
  use  important-service

  hostgroups   linux-servers,linux-desktops,!legacy-systems
  service_description  NFS
  check_commandcheck_nfs_by_ssh
+servicegroups file-shares
}


What version of nagios are you using?  Should the hostgroups not be
hostgroup_name, at least that is how it's being documented in the
manual for 3.x.  Are you defining the line with a + at the beginning,
or is that a diff showing what you've added?

-- 
Jon Angliss


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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] Plugin Trouble

2008-11-01 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 30 Oct 2008 15:36:31 -0400 (EDT), Bo Lynch
[EMAIL PROTECTED] wrote:

On Thu, October 30, 2008 3:19 pm, Charles Breite wrote:
 It looks like you need the -C for the community
 Here is an example of mine
 $USER1$/check_snmp_int -2 -i -H $HOSTADDRESS$ -C $ARG1$ -n
 $ARG2$


 -Original Message-
 From: Bo Lynch [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 30, 2008 1:18 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Plugin Trouble

 I am trying to use the check_snmp_printer plugin to monitor a few printers
 on the network. I am able to use it via the bash shell with
 ./check_snmp_printer 192.168.x.x public CONSUM ALL. However when I define
 it in objects/commands.cfg and make a .cfg file for a printer I get a
usage is:   in nagios

 Here is how I have defined the command in commands.cfg
 # 'check_snmp_printer' command definition
 define command{
 command_namecheck_snmp_printer
 command_line$USER1$/check_snmp_printer $HOSTADDRESS$ $ARG1$
 $ARG2$
 }
 I'm thinking its something with the way I have it defined. Any input would
 be greatly appreciated.
 Thanks
 --
 Bo Lynch


Thanks for the info. I am using the bash version of the script not the
perl version so it takes no swicthes like -C -H and such. I did however
manage to figure it out. command.cfg =
# 'check_snmp_printer' command definition
define command{
command_namecheck_snmp_printer
command_line$USER1$/check_snmp_printer $ARG1$ $ARG2$ $ARG3$ }

service def...
define service{
use generic-service
host_name   ACHS Lounge
service_description Printer Consumables
check_command
check_snmp_printer!192.168.1.238!public!CONSUM ALL
normal_check_interval   10
retry_check_interval1
}
Thanks everybody.


This seems a little bit of an odd change, but I'm not sure how you
have your hosts defined.  Do you have a host defined for each printer?
Or do you have a single host, with multiple printer tests assigned? If
you're using a single host per printer, passing in the IP address for
the printer into the service is a little odd.  The original definition
for the command was OK, it looks like you probably just needed to drop
the IP address. ie:

define service {
  [...]
  check_command  check_snmp_printer!public!CONSUM ALL
}

The command definition would get the host address from the other
macros.  You can then use hostgroups to assign services to a batch of
printers that have the same tests.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkkNLuEACgkQK4PoFPj9H3MEXwCfesbTvw1/Iti1QY4fCyjCMwrJ
0vYAnAvJ/lD56gRoCXxhWWDN7SINEOiG
=3+2z
-END PGP SIGNATURE-


-
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] host with multiple addresses and check_nrpe

2008-11-01 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 30 Oct 2008 14:27:24 +0100, Daniel López [EMAIL PROTECTED]
wrote:

On Thursday 30 October 2008 02:10:16 pm Marc Powell wrote:

 Does not check_nrpe handle correctly the list of addresses?

 No, it does not. Most of the standard nagios plugins wouldn't. They
 expect a single host address.

ooh, ok. 

 How could i handle this?

 Write a wrapper plugin that accepts multiple host addresses,
 determines the 'aliveness' of host 1, 2 and 3, runs check_nrpe against
 the one you're interested in and returns the results, including exit
 code to nagios?

Ok, thanks a lot, Mark, it's a solution. I'll have to do that. 

The other option is to have each of the hosts setup individually, and
do the checks against all 3 as normal, but use the check_cluster
plugin to ensure you get a good result from at least one of the hosts.

The alternative, as Marc suggested, is a custom script that takes the
host address you have, splits it, and executes the command until it
gets a good result.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkkNNEgACgkQK4PoFPj9H3Or4wCfQchbk0iQosBqCwkRamkr3SID
ey8AoLO5AdKTKX1yx2tu/JvWp5zPq6Ja
=s7ld
-END PGP SIGNATURE-


-
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] Check_website_fingerprint ?

2008-10-14 Thread Jon Angliss
On Mon, 13 Oct 2008 13:38:34 -0400 (EDT), Brian A. Seklecki
[EMAIL PROTECTED] wrote:


All:

Anyone have a nice plugin to valid a website's contents against a 
cryptographic fingerprint (e.g., defamation/content manipulation check)?

tripwire, or some such app?  I think here is a nagios plugin for
tripwire.

nagiosexchange.org says no.

I was thinking something simple with PHP+SimpleXML+mhash. Take the 
expected fingerprint as $argv[1] and the URL as $argv[0].

The tricky part is exempting dynamically generated content from the 
checksum.

If you're working with dynamic content, I'd give up trying to test it
through the web server, and test the files themselves.

A slight alternative is something like this:

http://members.aol.com/EJNBell/pgp-www.html

You can pgp sign your html portions of the code, and blank out the
dynamic stuff... That becomes quite complex sometimes.

-- 
Jon Angliss


-
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] Sendmail setup with Nagios

2008-10-09 Thread Jon Angliss
On Wed, 8 Oct 2008 17:55:09 -0800, Izz Abdullah
[EMAIL PROTECTED] wrote:

I've read the documentation, and have two options:
1. relay alerts from the Nagios server to our local Exchange server (which is 
too much company politics)
2. setup sendmail correctly to send alerts

So, I know now how to do number one (I think), but number 2, cannot.  I am an 
experienced linux user, but have always been anti-sendmail because of the 
different security risks over the past.  I am guessing that not only does 
sendmail have to be installed, but the Nagios server must also act as a mail 
server.  Can someone please guide me in arranging this setup correctly as I am 
stuck and need to get alert notifications setup correctly soon.

I'm trying to figure out what you're trying to do.  Are you trying to
send your emails through the exchange server's SMTP service? Or are
you trying to get the server running nagios send them directly to
their destination?  

If you're trying to use the Exchange server as a relay, use the
SMARTHOST option in Sendmail.  However, I think that's overkill for
simply relaying.  Checkout nullmailer, or ssmtp.  Both are small,
lightweight smtp services that relay through a server, which in this
case would be your exchange server.  You just have to be cautious of
relying on your Exchange server, as if that goes down, you won't get
alerts.
-- 
Jon Angliss


-
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] How-to debug a NAGIOS-not-sending-email problem ?

2008-10-09 Thread Jon Angliss
On Wed, 08 Oct 2008 17:21:23 +0200, M. Sébastien LELIÈVRE
[EMAIL PROTECTED] wrote:

Greetings,

I'm experiencing some odd issue with my nagios server. 

It dosen't notify by email anymore

Anymore? So it worked before? What changed?  Stuff generally doesn't
stop working unless something was changed.

When I execute the corresponding command in the nagios (user) shell, I
receive an email

The notification commands below have macros in.  How did you execute
the same command?  Did you increase the debugging levels in nagios to
see what it was executing?

I do not know where to start my investigation

Here are some info : 

notify-host-by-email : 

/usr/bin/printf %b  Nagios \n\nNotification Type: $NOTIFICATIONTYPE
$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /usr/bin/mail -s
[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]
$CONTACTEMAIL$ 


notify-service-by-email : 

/usr/bin/printf %b  Nagios \n\nNotification Type: $NOTIFICATIONTYPE
$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS
$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail -s [$HOSTGROUPNOTES$
$NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]
$CONTACTEMAIL$

1. Increase the debugging levels to see what the macros are
2. Make sure there are entries in the logs saying it generated the
alerts
-- 
Jon Angliss


-
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] Integration with Request Tracker

2008-10-04 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 02 Oct 2008 11:01:43 +0200, Sebastian Ries
[EMAIL PROTECTED] wrote:

Hi

 Not directly.  Looking at the description, the ID increases on each
 new  notification sent.  
 
 : The notification ID number is incremented by one (1) each time a new
 
 : host notification is sent out, and regardless of how many contacts
 are 
 : notified.
 
 I read this being that each notification gets a new ID.  For example,
 a host goes down, the first notification gets 1... second gets 2...
 etc.  Host recovers. A service on another host goes down, and the
 notification ID is 3.  

No.

The Order is:

Host goes down
Notification 1
Notification 2
Notification 3
Host recovers
Notification 4 (Recovery)
Host goes down (any)
Notification 1
Notification 2
...

No, that would be $HOSTNOTIFICATIONNUMBER$, not $HOSTNOTIFICATIONID$.

$HOSTNOTIFICATIONNUMBER$
The current notification number for the host. The notification number
increases by one (1) each time a new notification is sent out for the
host (except for acknowledgements). The notification number is reset
to 0 when the host recovers (after the recovery notification has gone
out). Acknowledgements do not cause the notification number to
increase, nor do notifications dealing with flap detection or
scheduled downtime.

$HOSTNOTIFICATIONID$
A unique number identifying a host notification. Notification ID
numbers are unique across both hosts and service notifications, so you
could potentially use this unique number as a primary key in a
notification database. Notification ID numbers should remain unique
across restarts of the Nagios process, so long as you have state
retention enabled. The notification ID number is incremented by one
(1) each time a new host notification is sent out, and regardless of
how many contacts are notified.

Notifications are counted for each problem without regarding other
problems.

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

- -- 
Jon Angliss


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjkvWwACgkQK4PoFPj9H3OqtQCglQRiHy4JOh+aQ1u0FWi77xa2
7KAAn3QbTsJRuU2gyUmU22rcSDfYPcmW
=Hvq0
-END PGP SIGNATURE-


-
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] monitoring bigip F5

2008-10-04 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 30 Sep 2008 08:04:52 + (GMT), Kermito le kermit
[EMAIL PROTECTED] wrote:


hello all, 

I want to know if is possible to monitoring the active and standby F5 or know 
the OID to have this information

snmptraps will send out the state changes of a node.  Details are in
the F5-BIGIP-COMMON-MIB... looks like it's burried in the tree

.1.3.6.1.4.1.3375.0

And it'll be a .15 for going active, and .14 going into standby.  If
you don't want to do snmptraps, you'll probably want to look at the
F5-BIGIP-SYSTEM-MIB... 

http://support.ipmonitor.com/mibs/F5-BIGIP-SYSTEM-MIB/tree.aspx

- -- 
Jon Angliss



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjkiPIACgkQK4PoFPj9H3NtlQCgmQrWsxR6MW33jv8cXAzdQocO
FOcAoMS2uPBFvGghYs2Hg4J+3Tosvbi7
=vb7R
-END PGP SIGNATURE-


-
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] Filtering out false alarms in unreliable network

2008-10-02 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 1 Oct 2008 18:44:45 +0300 (EEST), Tuomas Toropainen
[EMAIL PROTECTED] wrote:

The problem: how to filter out false alarms caused by short-time breaks in
an unreliable network.

Think about a simple monitoring scenario in which you only want to ping
various devices to see if they are up or not. So you have 200 hosts with
only one service (PING) for each.

For a reason or another, short-time breaks occur in the network. That is,
a particular host does not reply to PINGs for e.g. 30 seconds. These
breaks should not cause a notification to be sent.

What comes to services, the filtering is easy with max_check_attempt and
retry_check_interval. But the host check becomes a problem: after first
PING failure (soft state) the host is checked, and there is no
retry_check_interval for hosts. So the host is declared to be down
(almost) immediately.

I'm going to guess you're using nagios 2.  Nagios 3 has a
retry_interval for both service, and host.  However, that being said,
that just hints to me that the host check will be executed
max_check_attempts at the check_interval rate (both options exist
on a host).  So set your max_check_attempts to a reasonible number (3
for 3 minutes for example), and check_interval to another reasonible
number (1 for 1 minute), and that should handle 30 second blips in
networks.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjkd6wACgkQK4PoFPj9H3P/bACdEPhfz6wPYCAqLpYHcU/wI7JZ
OBgAoOqAadpvYuHSQbnGU5zHkbjl85TQ
=jj8S
-END PGP SIGNATURE-


-
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] Check_netapp.pl plugin Issues

2008-10-02 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 30 Sep 2008 21:23:07 -0400, Don [EMAIL PROTECTED] wrote:

Hi, I am having the following issue running the check_netapp plugin. The
specific plugin I am using is the check_netapp3.pl from nagiosexchange. Here
is the issue,

Running the plugin by hand works perfectly I get the results wanted as seen
below:

[EMAIL PROTECTED] libexec]# ./check_netapp -H netapp -C mystring -v DISKUSED
DISKUSED WARNING - Kb Used : 8496184|*/vol/volnetapp/*

But, when I added the checks into my nagios configuration to start checking
the host using the following syntax:

define command{
command_name check_netapp_DISKUSED
command_line $USER1$/check_netapp -H $HOSTADDRESS$ -C $USER4$ -v DISKUSED
}


I'm asuming $USER4$ is a properly defined macro?  Have you attempted
to hard code the value in there mystring in your above example.

define service{
use Unix-Service
host_name netapp.example.com
service_description check_netapp_DISKUSED
contact_groups Unix-Administrators
check_command check_netapp_DISKUSED
}

When I go to the web interface and look at the service detail I get the
following error in the STATUS information window:

CRITICAL:Requested table is empty or does not exist for
.1.3.6.1.4.1.789.1.5.4.1 with snmp version 1

As it's complaining about version info, have you tried adding -P 2? 
Have you tried turning on the debugging, and seeing what the command
is being expanded to?

It seems that Nagios cannot find the OID associated with this query?
I was thinking that the OS is not aware of the MIB's based on the output so
I downloaded the Netapp MIBS with no luck.  Can someone offer some
assistance?

MIBs are generally just to make it easier for us meer humans to read. 
As long as the server/device responds to the number you request, the
machine doesn't really need the words.  It only comes in handy if you
decide you want to write code that does nice queries, such as getting
the system uptime sysUpTime.0.

- -- 
Jon Angliss


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjkexwACgkQK4PoFPj9H3MDxQCeKPbESU58Fsu9r9ZV5BOvdL9L
EgsAoPf0k27iW5NmInMLImEzQpp5jN1x
=mZlU
-END PGP SIGNATURE-


-
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] nagios on call schedule w/ escalations?

2008-10-02 Thread Jon Angliss
00:00-24:00
thursday00:00-24:00
friday00:00-24:00
saturday00:00-24:00
}

define contact {
contact_namedisable_times
host_notification_periodAllTimes
service_notification_periodAllTimes
register0
}

define contact{
 contact_nameuser1
 use generic-contact
 alias   user1
 email   user1
 host_notification_perioduser1_oncall
 service_notfication_period  user1_oncall
}

define contact{
 contact_nameuser2
 use generic-contact
 alias   user2
 email   user2
 host_notification_perioduser2_oncall
 service_notfication_period  user2_oncall
}

define contact {
usedisable_times,user1
contact_nameuser1_esc
}

define contact {
userdisable_times,user2
contact_nameuser2_esc
}

define contactgroup {
contactgroup_nameadmins
membersuser1,user2
}

define contactgroup {
contactgroup_nameadmins_esc
membersuser1_esc,user2_esc
}

Then your service escalations use admins_esc instead of just admins. 
I've not tested it, but looking at the way inheritence works, you
should be OK.

- -- 
Jon Angliss


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjkgqMACgkQK4PoFPj9H3MthQCg4XgD5eNyl190umm7Ew8OouKK
kCoAoNsRdPjpTMX/tO/eC00ejVb3MjzF
=XHky
-END PGP SIGNATURE-


-
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] Integration with Request Tracker

2008-10-02 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 30 Sep 2008 15:24:08 +0200, Andreas Ericsson [EMAIL PROTECTED]
wrote:

Jim Perrin wrote:
 On Tue, Sep 30, 2008 at 3:26 AM, Bo Philip Larsen [EMAIL PROTECTED] wrote:
 This found on nagiosexchange 
 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2542.html;d=1
 
 Thanks for this, but the limitation the author lists at the bottom is
 just about exactly what I'm running in to. How do you track the ticket
 number between nagios and RT?  Tracking the consistent data for the
 duration of an issue complicates ticket generation/closure a little
 bit :-)
 
 

Nagios 3 introduces notification id's. Once you can connect a
notification id and an rt number, you're home free. How to make that
connection is up to you though.

Not directly.  Looking at the description, the ID increases on each
new  notification sent.  

: The notification ID number is incremented by one (1) each time a new

: host notification is sent out, and regardless of how many contacts
are 
: notified.

I read this being that each notification gets a new ID.  For example,
a host goes down, the first notification gets 1... second gets 2...
etc.  Host recovers. A service on another host goes down, and the
notification ID is 3.  

It'd be a little easier if the notification ID stayed the same for the
entire duration of the host being down.  

You might want to look at $SERVICEPROBLEMID$ and $HOSTPROBLEMID$
instead.  And the $LAST...$ versions of both of those.  Combining with
an event handler, you can probably use a small table containing the RT
ticket number, the host/service name, and the problem ID.  You'd then
feed the state, statetype, service, host, and the problem ID macros to
the event handler, and you should then be home free :)

- -- 
Jon Angliss


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjkhbUACgkQK4PoFPj9H3OJSQCfTAjWQlnsjFemAPu3T/v6KQX5
oCwAnj1gov/YsCbn/aezABh9bwL0qs44
=oliQ
-END PGP SIGNATURE-


-
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] Monitoring Shared Storage

2008-09-29 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 29 Sep 2008 02:29:38 -0700, Jay Chandler
[EMAIL PROTECTED] wrote:

I've got a scenario that I'd imagine many of you have already dealt 
with, so before I roll my own solution I figured I'd ask y'all what 
you've done.

I have roughly 50 servers or so that mount their home directories (as 
well as a few other things, but let's talk about /home for simplicity) 
from an NFS server (isilon at the moment, shortly to become a NetApp).

Because space is expensive, periodically central storage fills up.  This 
results in /home sending out notifications from all 50 servers. 

I'm relatively sure that you should be able to query the storage
device directly for space reports (SNMP for example).  This would mean
you setup a host for the isolon/NetApp to monitor the storage usage. 
Then, your monitoring of the individual servers storage space, would
really be for connectivities sake to ensure communications back to the
storage.  Setup service dependencies, and when the server goes down,
the various other hosts won't alert that /home isn't mounted any more
because it's nicely handled by the dependency.

Is there a good way to set things up so that if central storage fills up 
I don't get paged by every system we've got?  I don't want to give up 
monitoring /home on these hosts since our configuration monkey has 
screwed up before and NOT mounted the NFS share, leading to the 
mountpoint on local disk filling up instead.

Service Dependencies as Patrick mentioned, along with monitoring the
storage solution directly.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjhkdAACgkQK4PoFPj9H3NOLgCbBhDAdN58RoyhWGp9LnzlFSpY
fVIAn35gdPXnVQSihqMqglObm1FuOYcM
=9VWa
-END PGP SIGNATURE-


-
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] OS Application version information

2008-09-27 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 24 Sep 2008 13:48:00 +, adam brooke
[EMAIL PROTECTED] wrote:


Is is possible to use Nagios to audit server OS and Apllication release 
versions?

It entirely depends on what platforms/software you plan on monitoring.

If so are there plugins already written for this purpose?

As Brian suggested, SNMP can certainly be used.  Custom scripts might
be required for other stuff.  There is a check_yum, and check_deb
plugins (see Nagios Exchange [1]), for example.  A custom WMI script
could be written for windows [2].  There are certainly some solutions
already floating about, you might just have to play with them a bit.


[1]: http://www.nagiosexchange.org
[2]:
http://www.microsoft.com/technet/scriptcenter/scripts/apps/user/usapvb
11.mspx

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjelKMACgkQK4PoFPj9H3NyKwCg6P04RWNyHjO9tZaTNfICIgfd
LjUAn0Cmt+ZYgDP0H2+u/HKetBk0ghUd
=wdH4
-END PGP SIGNATURE-


-
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] how to monitor databases on windows through nagios`

2008-09-27 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 18 Sep 2008 18:55:03 +0530, [EMAIL PROTECTED] wrote:

Hi All,

I've installed nagios 3.0 server on red hat linux and monitoring windows
boxes  by installng nsclient++ add on. I was able to install and configure
fine on win box, now all c drive and memory paramters are showing on nagios
interface for windows. my question is how do we monitor oracle database and
it's services on windows box through nsclient?

How good are you at writing scripts?  I'd imagine it probably wouldn't
be too difficult to cobble together a small batch script that calls
the oracle client to do some tests.  Or, even writing something in VBS
to build a client connection using ODBC.

I don't have Oracle, and my VBS is rusty... but something like this
would probably be a basis:

%
On Error Goto ErrHandler

ConStr = DRIVER={Microsoft ODBC for Oracle};SERVER=oracle_server;User
Id=user;Password=password;

set Conn = CreateObject(ADODB.Connection)
Conn.Open ConStr

ErrHandler:
  Print Something Bad Happened
  exit 1
%


Then you call that script from nsclient++.. 


A more complex example can be found here [1]. But googling around
you'll probably find some easy to understand examples to get you
going.  If you read over the check_oracle client, you should be able
to see what it's doing, and duplicate the behavior in the script. 
That is assuming the code cannot be ported to windows.


[1]:
http://www.idevelopment.info/data/Oracle/DBA_scripts/WINDOWS_Shell_Scr
ipts/oracle_ADO_example.vbs

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjemP4ACgkQK4PoFPj9H3NQnACggWkyNjuQEG98b9SbUgtp81zz
5hcAoNDj4O9d/R1ORoD5TetsDbnajUNe
=iHS4
-END PGP SIGNATURE-


-
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] I don't receive a changing state

2008-09-26 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 26 Sep 2008 08:43:51 +0200, Jean Frontin [EMAIL PROTECTED]
wrote:

Hello,

I run nagios 2.9 on the server host A. With the command :

command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_xxx

I look at if processes are running on the host B with the command in 
nrpe.cfg :

command[check_xxx]=/etc/nagios/check_xxx

where check_xxx is a ps -ef...

Is that all it does?  What's the exist status of 'ps -ef' when nothing
is returned?

When processes are running I receive on A processes are running.
But when processes are down I receive :

CHECK_NRPE: No output received from daemon

the command on B ps -ef ... writes nothing !

I should receive, on server nagios A, an alert critical state ! and, 
of course, a recovery when processes are running again !

http://nagiosplug.sourceforge.net/developer-guidelines.html

Without more details on what else is in check_xxx, I can only assume
'ps -ef' is returning 0 every time, and hence not throwing a
warning/error when nothing is listed.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjcl5gACgkQK4PoFPj9H3NUmACfUEsAU2Lr6U0QJdhIQ/raHiRu
ITQAn0kGI8QoJOP7Gv+ffkduwvAolk1c
=iznS
-END PGP SIGNATURE-


-
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] Alert with more detail

2008-09-26 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 25 Sep 2008 23:00:11 +0800, howard chen [EMAIL PROTECTED]
wrote:

Hello,

Sometimes, nagios will alert of high loading of a system via Email,
with the body:


...CRITICAL - load average: 5.42, 6.04, 3.04

But this information is useless unless you know which process is using
most of the CPU, e.g. MySQL. Then you can take follow up action to
prevent it from happen again.

So are there any easy way to monitor the process CPU utilization when
the alert is generated using nagios?

Or other better method?

It looks like you're after a little more than just warning on the
load.  I guess advanced notice on the cause of the load increase is
always good, it gives you a good headstart when beginning triage.  I
did a quick search on Nagios Exchange (http://www.nagiosexchange.org),
and this came up:

  http://www.nagiosexchange.org/cgi-
bin/page.cgi?g=Detailed%2F1932.html;d=1

It looks like it might need a tweak based on the comment, but I'd
imagine it does what you're after.  Uses ps to list the processes,
and sorts by CPU load.  It'll generate a warning when over a certain
(customizable) threshold, and critical over another (also
customizable).  It'll then report the process that is sitting at the
top of the heap.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjde8gACgkQK4PoFPj9H3ODGACfSJ/4L8DvTdaVgD3goo3pLVod
lxcAn0vpv9Nwocv0rO5BwjVCLVkpLJTZ
=iN49
-END PGP SIGNATURE-


-
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] (No output returned from plugin)

2008-09-26 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 26 Sep 2008 14:02:17 -0400, Matt Rivet [EMAIL PROTECTED]
24.com wrote:

Hi,

I am running nagios 2.5 and monitoring a windows 2003 server using
NSclient++ 0.2.7.  I have wrote a VBS script and defined it in NSC.ini
as 

[NRPE]

checkIMMailDropFileCountNagios= cscript //NoLogo
c:\nsclientpp\scripts\IMMailDrop_FileCount_Nagios.vbs

The script takes a value, compares it and then quits exit status 0 for
OK and echo's its value.  The nagios command I am running to perform
this check is

'[EMAIL PROTECTED] ~]# ./check_nrpe -H $HOSTNAME -c
checkIMMailDropFileCountNagios' this command will print  19 OK on
stdout.  If the command can print the value on stdout why doesn't nagios
recognize it?

Do I need to specify some type of argument in NSC.ini? 

Are you sure there isn't an extra line break, or something like that
appearing at the beginning of the echo?  Have you tried sending it to
a file, and seeing what the output really looks like?

./check_nrpe -H $HOSTNAME$ -c checkIMMailDropFileCountNagios  \ 
/tmp/test.txt

You should get the 19 OK on the top line if there isn't anything
unusual in the output.  I'm also not sure on how nrpe/nagios handles
the difference in line endings.  I'm not sure if cscript will return
an echo with \r\n, and not just \n like linux is used to.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjdeVsACgkQK4PoFPj9H3NEuQCcDxLL3IGGwMYJ79DfUuGmMomx
uioAn1kjIz+kaNXoomnfzoEZcvEkFRj8
=bdqW
-END PGP SIGNATURE-


-
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] intermittent CGI failure

2008-09-24 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 15 Sep 2008 12:29:55 -0400 (EDT), [EMAIL PROTECTED] wrote:

Installed 3.0.3 from source on OpenBSD 4.3 (sparc64).  Everything works,
but every so often the CGI's will fail.

e.g. If I refresh, say, status.cgi?host=all 10 times in a row, it'll fail
at least once or twice.

I can reproduce using both Apache and nginx.

Here's Apache error log snippet: Premature end of script headers:
/var/www/nagios/cgi-bin/status.cgi

Here's nginx error log snippet: upstream closed prematurely FastCGI
stdout while reading response header from upstream

Familiar issue to anyone?  Next steps to debug?

I keep noticing this every now and again.  I usually have the tactical
overview page open on a third monitor, and Firefox often throws a
cannot connect message.  I'm assuming this is probably the same
thing, just on a different page.  I've yet to go through my logs to
confirm though.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkja0nEACgkQK4PoFPj9H3OjUwCfcBksbVvOKvxABwZwFja88cx/
HvgAnRitlaACnF64CrK8Ma3X03a1YTHC
=b8GX
-END PGP SIGNATURE-
-- 
Jon Angliss


-
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] Is there a way to set an individual service check timeout?

2008-09-24 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 24 Sep 2008 16:05:39 -0500, Marc Powell [EMAIL PROTECTED] wrote:


On Sep 24, 2008, at 12:33 PM, Jennifer Cranfill wrote:

 The only setting for service check timeout that I see is the global
 service_check_timeout setting. Is there a setting that can be applied
 per command or per service check?

All standard plugins support a timeout parameter, typically '-t  
seconds' that you can pass in the command definition. Run '/path/to/ 
plugin --help' to see if it's supported and usage. It could also be  
passed from a service definition as a $ARGx$ macro.

I think you missed the request.  nagios.cfg has a config option, 2
actually, service_check_timeout and host_check_timeout.  They're
independent of the -t seconds option that most plugins support. 
It's the end of life for the plugin, nagios uses it to kill a
plugin.  The -t option allows the plugin to report a failed state if
the response doesn't come back within a certain time.  The
service_check_timeout allows nagios to report when a plugin hasn't
responded within a certain time.

From what I can tell, it cannot be customized per plugin.  However, if
you set it high enough to cover all the plugins, and then set sane
values for the -t option for the plugins you should be okay.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkja0+cACgkQK4PoFPj9H3NzjACgnMR9fTwb28dYEFUYL+LeIJKJ
X4QAoMAFEPu5PGJp5YlDEG1YZwT5GtuD
=zgR8
-END PGP SIGNATURE-


-
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] Alerts delayed for critical services

2008-09-24 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 23 Sep 2008 09:29:09 -0500, Serafin, Chris
[EMAIL PROTECTED] wrote:

The comments are actually from the default Nagios config file and not what I 
am intending to do. Sorry I should have clarified. I basically want to get 
alerts ASAP. Thanks.

Hugo has you on the right directions.  Assuming you left the times set
the default in the nagios.cfg, your check times every 3 minutes
(normal_check_interval), and you expect 3 failures
(max_check_attempts).  After the first failure, it'll check every
minute (retry_check_interval).  If you want to get alerts as soon as a
service fails, reduce max_check_attempts, and normal_check_interval. 
However, you'll need to expect false alerts.  So reduce
normal_check_interval to 1 so it tests every minute, and leave
max_check_attempts at three, then after 3 minutes of failures, you'll
get alerted.

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkja1oAACgkQK4PoFPj9H3NtfwCeICOTQQYfMoJ6xqAOvCZ7Q6vt
+PQAn1qG2vXVAYDj4iTs3uIlxYM6WKfF
=Isav
-END PGP SIGNATURE-


-
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] How-to DO NOT check_alive host?

2008-09-17 Thread Jon Angliss
On Wed, 17 Sep 2008 17:13:09 +0400, Proskurin Kirill
[EMAIL PROTECTED] wrote:

Hello.

Im have some servers what don`t accept any icmp packets.
Im check http port on it. But nagios by default does check_alive - and 
say what host is down.

How can im evade this?


define command {
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}


define host {
check_command   check_http
host_name   myhost
address 1.2.3.4
[..other configs options..]
}

This makes nagios use check_http as the host alive status, rather
than pings.
-- 
Jon Angliss


-
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] Variable notifications

2008-09-13 Thread Jon Angliss
On Wed, 10 Sep 2008 10:18:01 +1000 (EST), Dave Horsfall
[EMAIL PROTECTED] wrote:

On Tue, 9 Sep 2008, Sean McAfee wrote:

  Except for the computer room temperature monitor...  I want this to be 
  24x7, notifying via as many channels as possible.  I've experimented 
  with several techniques, but they all boil down to me inheriting the 
  24x7 period for all hosts/services etc.
 Unless I'm missing something about your config, you just need to add 
 notification_period 24x7 to the temperature check definition.

Yeah, but I don't want to be notified about the other 24x7 services.

In short, I want to be paged about *this* 24x7 service any time, but 
merely emailed about *other* 24x7 services out of working hours (because 
others could be looking after them 24x7).

quick  dirty would be to set yourself up another contact with just
your pager that is attached to that service.
-- 
Jon Angliss


-
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] Service Escalations

2008-09-04 Thread Jon Angliss
On Thu, 04 Sep 2008 14:26:04 -0500, Robert Small [EMAIL PROTECTED]
wrote:

Ok, I¹ve manage to thoroughly confuse my self with service escalations.

Here is an example of my configs:

   --service_definitation:

define service{
use   generic-service
host_name box1,box2
service_description  disk_space
check_command   check_nrpe!check_disks
contact_groups
oncall,developers,backup,tech-team,management
notifications_enabled   1
}

My escalations config:

define serviceescalation{
[..]
contact_groupsoncall
}

define serviceescalation{
[..]
contact_groups  oncall,backup
}

define serviceescalation{
[..]
contact_groups  oncall,backup,tech-team
}

define serviceescalation{
[..]
contact_groups   oncall,backup,tech-team,management
}


My first question:
There have been two times in the past 24 hours when a service went down, and
within a minute was acknowledged, and everybody got the acknowledgement, not
just the oncall person.

I'm a little confused as to why you have everybody in the service
definition, and then break it down in the escallations.  It seems a
slightly unusual way of doing it, but based on the verbiage from the
docs, should work... 

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

The way the docs have it laid out, and using your samples, it'd have
the contact_groups for the service as just oncall.  Then for the first
service escallation, which would be from 11, to 20 (not 1 to 10), the
groups would be oncall, and backup. Then on the 21-30, it'd be oncall,
backup, and tech-team, etc etc etc.

And secondly,  if I added and Œeveryone¹ to my service Œcontact_groups¹, and
utilized the time_period option in the escalations config for after hours,
would everyone get the notification during the day?

It doesn't seem to mention it that way, but yes, it'd appear to behave
that way.
-- 
Jon Angliss


-
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] Using Nagios to check if webpage is really shown

2008-09-03 Thread Jon Angliss
On Tue, 2 Sep 2008 11:20:38 +0100, Matthew Macdonald-Wallace
[EMAIL PROTECTED] wrote:

On Tue, 2 Sep 2008 12:14:09 +0200
Bastiaan [EMAIL PROTECTED] wrote:

 At the moment I have Nagios 2.9 up and running, and it does different
 kind of checks. But now I would not only like to check if, for
 example port 80 is open on my webserver, but also if the webpage on
 the same webserver is shown that customers can see it.
 I have been searching on the internet for a plugin that can help me
 do this, but I have not found something useful yet.

check_http can send and receive HTTP requests as well as just
monitoring port 80.

I've found this good for doing simple page tests on complex sites
(does the login page come up).

If you really want to test your website, then WebInject will allow you
to write complete tests to simulate users browsing your site.

I use this for the complex stuff.  ie, can I login, navigate through a
few pages, run a report, and see expected results.  I've been using
WebInject for a while now, it works very well.
-- 
Jon Angliss


-
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] Problems with NDOUtils

2008-09-03 Thread Jon Angliss
On Wed, 3 Sep 2008 17:25:46 -0300, Ronaldo A. Bueno Filho
[EMAIL PROTECTED] wrote:


Hi people!

I've installed Nagios 3.0.2 on my Debian 4. I also installed NDOUtils 1.4b7.
The problem is related with NDOUtils. I can not populate the nagios
database. I followed all steps and rechecked everything. According to my
serach, probably there is a bug. (Not sure).

I just found people asking for some help, sometimes I got useful hints, but
I did not find the root cause of my problem. 

I've tried several things, but did not work. 

- I could connect to the nagios database using the user nagios and its
password. I checked the files to make sure that it is with the correct user,
password and database name. 
- I checked the owner (user) and group that the files belong to
(nagios:nagios).
- I checked the permitions of the files
- I tried to use both TCP and unix in the socket_type and got the same
error.
- I just stoped nagios and NDOUtils. I started the NDOUtils and then nagios.
Did not work
- I got no errors in the installation.

I did some googling, and stumbled across this thread:


http://readlist.com/lists/lists.sourceforge.net/nagios-users/0/1996.html

It mentions the ndo application not being able to talk to SQL, and
logging to /var/log/messages.  You might try checking there, and
seeing if you get any extra information.  It might be ndo is expecting
the mysql socket file in a different location to where you have it.
-- 
Jon Angliss


-
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] how to disable notification for a particular service ?

2008-08-31 Thread Jon Angliss
On Fri, 29 Aug 2008 14:33:29 +0530, J. Bakshi
[EMAIL PROTECTED] wrote:

J. Bakshi wrote:

Urrg, If I do   disable notification  it says

Sorry, but Nagios is currently not checking for external commands, so
your command will not be committed!


You probably didn't enable nagios to use the external command file...

  check_external_commands=1
  command_check_interval=5s
  command_file=/usr/local/nagios/var/rw/nagios.cmd

Something like this in your nagios.cfg.

Also,

notifications_enabled   0

If this is added to a service, it'll disable notifications, however
it'll require nagios to be restarted to enable/disable.  If you're
expecting to be able to disable it briefly whilst resolving an issue,
it'd be wise to use the command file, you'll get extra stuff too
(acknowledgements, rescheduling, forced, etc).
-- 
Jon Angliss


-
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] Host-Notify-By-EMail vs Notify-By-Email

2008-08-27 Thread Jon Angliss
On Tue, 26 Aug 2008 20:16:03 -0700, John Moore [EMAIL PROTECTED]
wrote:


Ok,
I have Nagios 2.6, which is a installable RPM with SLES.  I am trying to set 
up notifications, and its not working.  I have nagiosQL running for setting up 
my configuration, and looking for information on the following...

Whats the difference between Host-Notify-By-EMail  Notify-By-Email?

They're just commands with different macros to represent extra
information.  host-notify-by-email is used for host, and contains host
based macros, whilst notify-by-email includes service macros.

Can a there be multiple emails per concact?  Are they seperated by a comma, or 
each there own line?

The documentation doesn't mention it, but you could give it a shot. if
that doesn't work, you can use the address# where # is a number from
1-6.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact

Do I have to setup a SMTP server to send email?  I just want the notifications 
going to my comcast account and my cell phone via smtp.

You don't have to have an SMTP server, just something to relay to one
(nullmailer, ssmtp, etc) that can be configured to relay through
another host.

-- 
Jon Angliss


-
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] checks, notifications don't work after time period exception

2008-08-27 Thread Jon Angliss
On Tue, 26 Aug 2008 11:09:15 -0500, Mark Young [EMAIL PROTECTED]
wrote:

 I'll probably do away with the time exclusion as it still isn't  
 working.
 I have one service that went critical during the exclusion which has a
 24x7 check but 4-5:30 notification exclusion and now I can't make it
 send a notice.  I disabled notifications for that service and enabled
 again; also restarted Nagios and still won't send a notice.  It's
 configured to send on the second attempt and every hour after.

You should be able to use timeperiods the way you would like to.  I  
will have to setup my test environment to see if I get the same  
problem you are describing.  It would be nice to figure this out.  Is  
this a problem with other users?

I was going to setup a little test environment to retest it,
unfortunately end of the world projects keep coming up at work.

On Aug 25, 2008, at 6:28 PM, Jon Angliss wrote:
 I had a similar issue. I tried excluding a time slot between 0300, and
 0600 due to large DB loads causing website performance issues
 (backups, indexing, and such).  When the start of the exception rolled
 around, nagios would just stop checking that service, and would only
 restart on a forced manual check, or restart of the nagios service.  I
 ended up changing the theory to continue checking 24x7, but only alert
 when outside the exception.  Not that it helps the issue, but it
 stopped the symptoms.  I never got around to really digging into the
 issue any deeper.  It did give me the added benefit of knowing when
 the server was actually down during the maintenance window, and when
 it was just being slow.  This was handy for management purposes so
 they could calculate if they need more head count.

Hi Jon,
So it was following your notification timeperiod but not your check  
timeperiod?  Was version of Nagios were you running?  Were you using  
the exclude function (new to nagios 3.x)?  Nagios 3.x did add new  
functionality to timeperiods.  It is possible that a bug was introduced.

I had defined a timeperiod of ProdSLA which was 24x7, then an
exclusion timeperiod called ProdMaint, which was 0300-0500 daily,
then added that as an excluded time period for ProdSLA.  This was used
for checks, not notifications.  As the start of the excluded time
period would be reached, it'd stop checking, as designed, but never
resuming checking at 0500.  I'll have to see if I can dig out the
config files from CVS.  It was a 3.x install.

-- 
Jon Angliss


-
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] checks, notifications don't work after time period exception

2008-08-25 Thread Jon Angliss
On Mon, 25 Aug 2008 13:38:28 -0400, Seth Simmons
[EMAIL PROTECTED] wrote:

The system date is correct and Nagios is showing the correct day and
time on the status page.  If I stop Nagios, I don't see any other Nagios
processes running.  The two templates here have not been touched.  I
looked at both and have 24x7 for all times which is the default.  I just
modified the time definitions as you have it listed and I'll see what
happens tonight.  There are also no custom time settings in nagios.cfg;
all the settings related to time zone, etc are commented out.

I had a similar issue. I tried excluding a time slot between 0300, and
0600 due to large DB loads causing website performance issues
(backups, indexing, and such).  When the start of the exception rolled
around, nagios would just stop checking that service, and would only
restart on a forced manual check, or restart of the nagios service.  I
ended up changing the theory to continue checking 24x7, but only alert
when outside the exception.  Not that it helps the issue, but it
stopped the symptoms.  I never got around to really digging into the
issue any deeper.  It did give me the added benefit of knowing when
the server was actually down during the maintenance window, and when
it was just being slow.  This was handy for management purposes so
they could calculate if they need more head count.
-- 
Jon Angliss


-
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] Blocking ICMP and other issues

2008-08-14 Thread Jon Angliss
On 13 Aug 2008 22:31:49 -, [EMAIL PROTECTED] wrote:

 I have just installed Fedora 9 and then setup Nagios. I followed Quick 
 Install and it worked wonderfully. 
 I want to Monitor 1 remote server's SMTP. I have been experimenting with 2 
 configuration files (Pasted 
 at the end for reference) without much luck. With config #1, I receive 
 messages telling me the host is
 down constantly (I assume this is because it blocks ICMP ping requests) I 
 then found a sample on one
 of the forums which I tried to implement; but I recieve no messages and 
 Nagios still says host is down in
 the browser. Basically I'd like to show the host as up and recieve messages 
 when SMTP is unavailable.
 Does anyone have any samples (Pref with comments) that I can experiment with? 
 I am particually
 interested in monitoring publically available services.

#==
#CONFIG FILE #1
#==
define host{
use windows-server 
host_name myserver 
alias My Mail 
address xxx.xxx.xxx.xxx
checks_enabled 0
}

Is there any resaon you have checks_enabled set to 0?  I also cannot
find a checks_enabled directive, it's either active_checks_enabled or
passive_checks_enabled.

define hostgroup{
hostgroup_name windows-servers 
alias Windows Servers 
}
#===EOF

#==
#CONFIG FILE #2
#==
define command{
command_name check_upmail
command_line $USER1$/check_smtp -H 64.62.20.243
}

You should try using variables instead of hard coding services,
especially when it comes to commands, and host variables.  You should
try using $HOSTADDRESS$.  This'll make it so you can reuse the same
command later.


define host{
use generic-host
host_name myserver
alias My Mail 
address xxx.xxx.xxx.xxx
check_command check_upmail
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options n
contact_groups admins
}
===EOF

Have you tried forcing a check of the server? Does it still say it's
down? Can you run check_smtp -H hostaddress from the command, as
nagios user to validate the service can talk to it?

-- 
Jon Angliss


-
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] Attempting to monitor the Nagios Server itself

2008-08-12 Thread Jon Angliss
On Tue, 12 Aug 2008 15:53:11 -0500, Marc Powell [EMAIL PROTECTED]
wrote:

 Hello there,


 Aug 12 13:18:09 colorado nagios: Nagios 2.10 starting... (PID=23650)
 
 Aug 12 13:25:58 colorado nagios: LOG VERSION: 2.0
 
 Aug 12 13:25:58 colorado nagios: Finished daemonizing... (new
PID=23651)
 
 Aug 12 13:26:10 colorado nagios: Caught SIGSEGV, shutting down...
 
 
 
 Why can't I get nagios to monitor itself?  In other words, why can't I
get
 nagios to monitor the server that it is running from?

Getting Nagios to monitor the machine it's running on is actually the
very simplest case and very straight forward. What config changes did
you make between when it was working and not, specifically? The SIGSEGV
is interesting and you might consider running Nagios in debug mode
(you'll need to recompile) to find out generally what it's doing at the
segfault. Alternately, if you're familiar with gdb, you could use that.

I've also found strace to be a big help for random crashes.  Somebody
on the irc channel had an issue with nagios faulting right on start
up.  strace pointed the issue to be a big file issue.  The
performance data file was 2GB in size, and LFS wasn't enabled in the
kernel.

strace /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg

Adjusting the paths obviously :)
-- 
Jon Angliss


-
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] Any plugin for a TroubleTicketing System for Nagios??

2008-08-10 Thread Jon Angliss
On Sun, 10 Aug 2008 14:01:49 -0400, Brian A. Seklecki
[EMAIL PROTECTED] wrote:

On Sun, 2008-08-10 at 13:31 -0400, Thomas Guyot-Sionnest wrote:
 FYI in my setups Nagios have it own SMTP server so that if the mail

SMTP sounds nice, except in general it really isnt :)

You'll need a discriminating logic check to selectively generate tickets
for hosts/service status changes.  For example, the health check on your
CMS system probably shouldn't try to generate a CMS ticket.

Maybe a special contact group and/or regex matching in your
notify_command.

Why not tie into the event_handler, instead of the notify_command?
event_handler doesn't necessarily have to fix something, but it can
be used to trigger other events, such as logging a ticket.  It'd
certainly be a much better option than notify, as notify executes
every time a notification is supposed to be generated, which would
ultimately end up generating lots of tickets, unless you can build
some complex rules into your notification alert that checks for an
existing ticket for that host/service, then only creates it once.
-- 
Jon Angliss


-
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] check [snmp] printer ricoh aficio 3245c

2008-08-09 Thread Jon Angliss
On Fri, 08 Aug 2008 16:39:26 +0100, Marcelo M. Garcia
[EMAIL PROTECTED] wrote:

Hi.

I'm trying to monitor a Ricoh Aficio 3245C, but neither check_printers 
nor check_snmp_printers seems to be working very well.

With check_snmp_printer, or I got blank or error, like this:

[EMAIL PROTECTED] plugins]# ./check_snmp_printer 194.193.148.130 PrinterMIB 
MODEL
blank line
[EMAIL PROTECTED] plugins]#


The only check_snmp_printer I have is a perl script, so I'm guessing
you grabbed the one from nagiosexchange.  Looking at the code, arg3 is
supposed to be the community for the printer.  For example:

./check_snmp_printer 192.168.1.2 public MODEL

You should also validate that your printer has the OIDs available. For
example:

  snmpwalk -c public -v 1 192.168.1.2 1.3.6.1.2.1.43.11.1.1

If you get no response from that, the script isn't going to work
either.

[..]
The manual of the printer says that there are 4 MIBs:
* MIB-II
* PrinterMIB
* HostResourceMIB
* RicohPrivateMIB
I tried all these MIBs and the result is the same.

And finally,  with check_printer I got:
[EMAIL PROTECTED] plugins]# ./check_printer 194.193.148.130 public toner
PHP Fatal error:  Call to undefined function snmp_set_quick_print() in 
/usr/lib/nagios/plugins/check_printer on line 82
[EMAIL PROTECTED] plugins]#

This looks like your php isn't built with snmp enabled.  You can
validate with a quick one-liner...

  php -r 'phpinfo();' | grep -i snmp

You should see at least the following come back:

  NET-SNMP Support = enabled
  NET-SNMP Version = 5.4

Version information could obviously be different.

I don't know if the problem is this printer or I'm entering wrong 
options to the commands. The following command works:
snmpwalk -v 2c -c public 194.193.148.130

It certainly looks like the way you're calling it is wrong.  The
arguments to the app is hostip community check.
-- 
Jon Angliss


-
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] Getting bogus ping alerts after upgrade to Nagios vers. 3.0.3

2008-08-06 Thread Jon Angliss
On Wed, 6 Aug 2008 11:02:37 -0400, Joe Astrologo
[EMAIL PROTECTED] wrote:

I upgraded from version 2.3 to 3.0.3 and I now I get a lot of bogus ping
alerts.

Shut down nagios, do a check to see if there are any rogue instances
running in the back ground, if there is, kill them off, and then
restart. I've seen this from time to time if an instance becomes
disconnected from the parent.
-- 
Jon Angliss


-
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] Problems running eventhandler

2008-08-06 Thread Jon Angliss
On Tue, 05 Aug 2008 15:38:48 +0200, Nicole Hähnel
[EMAIL PROTECTED] wrote:

Hi,

I'm running nagios 3.0.3 on rhel5 2.6.18-92.1.6.el5.
I have written a script to restart strongswan on our vpn gateways.
But I can not get this eventhandler to work.
I only see (null);(null);(null); in eventlog instead of CRITICAL;SOFT;3 
oder something else.

I tested the script as user nagios and it works.

Where is the fault?

[..]

ssh -i id_dsa $4 /etc/init.d/ipsec restart

[..]

You're calling ssh without a full path.  It could be possible that
nagios is starting up without having a full PATH env defined, causing
it not to find ssh.  You could add some debugging to the script to
find out:

echo $PATH  /tmp/evthandle.log

Check to see if the output is sane, and includes a path to SSH.
-- 
Jon Angliss


-
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