Re: [Nagios-users] nagios blocking on notifications?

2010-01-14 Thread Mike Lindsey
Turns out nagios doesn't fork before handling notifications, and also 
waits for the children of any notification commands to exit, so forking 
inside my notification script won't help.

I took the part of the script that was taking 5-6 seconds to complete 
and added in a cache mechanism, which changed the 90+ second 
notification cycle, to a 6-8 second notification cycle.

Might be overkill, but I've also wrapped some fork() logic around the 
service_notification() call inside handle_async_service_check_result()..

Compiles and runs, I'll stress test it tonight and see how it does with 
real load, tomorrow.

Also, if there's a better way to do this, I'm all ears.

Mike Lindsey wrote:
> I've got a high volume site.  Everything seems to keep up reasonably 
> well, unless there are a good number of state changes.  Once services 
> start changing state, and notifications start getting sent out, nagios 
> falls behind.
> 
> Did some digging in the logs and it looks like while a batch of 
> notifications are being sent out, it's rate limiting to about one per 
> five seconds.  Also, from the first notification for a service to the 
> last notification for that service, nothing else is written to the logs.
> 
> Since a typical notification goes out to 15+ people, that's over a 
> minute with no service check handling.
> 
> Is there something going on under the hood that I'm not aware of (like, 
> is it just not doing the log writing, but still doing the passive 
> service check handling, and there's something else causing my latency?)
> 
> Is that delay configurable?  I don't see anything in the docs for that.
> 
> I've even set my notification script to just call and background a 
> secondary script, to try and see if it wasn't a delay in the 
> notification script, but that seemed not to do anything at all.  Should 
> I be forking the notification script instead?
> 
> Here's a log snippet:
> [1263505735] EXTERNAL COMMAND: 
> PROCESS_SERVICE_CHECK_RESULT;;System Check;0;OK load mem ntp 
> swap cfengine disk|
> [1263505735] EXTERNAL COMMAND: 
> PROCESS_SERVICE_CHECK_RESULT;;System Check;0;OK load mem ntp 
> swap cfengine disk|
> [1263505735] EXTERNAL COMMAND: 
> PROCESS_SERVICE_CHECK_RESULT;;System Check;1;WARNING [swap 
> utilization 25%] [/data/ at 77% (inodes 0%)]|
> [1263505735] PASSIVE SERVICE CHECK: 
> ;check_mtime-redlist.txt;0;OK - redlist.txt 102 seconds old
> [1263505735] PASSIVE SERVICE CHECK: ;pre_queuedepth;2;CRITICAL 
> -  pre_queuedepth status: 2159 > 500
> 
> [1263505735] SERVICE NOTIFICATION: 
> ;;pre_queuedepth;CRITICAL;notify-by-email;CRITICAL - 
>  pre_queuedepth status: 2159  500
> [1263505741] SERVICE NOTIFICATION: 
> ;;pre_queuedepth;CRITICAL;notify-by-email;CRITICAL - 
>  pre_queuedepth status: 2159  500
> 
> 
> The SERVICE NOTIFICATION entries keep rolling in every 5-6 seconds for 
> the next minute+, then it goes back to it's usual happy speed.
> 
> Is this an artifact of the way it logs, or is the whole system choking 
> while it sends email?  I've searched the list archives and not found 
> anything on this.
> 


-- 
Mike Lindsey

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] nagios blocking on notifications?

2010-01-14 Thread Mike Lindsey
I've got a high volume site.  Everything seems to keep up reasonably 
well, unless there are a good number of state changes.  Once services 
start changing state, and notifications start getting sent out, nagios 
falls behind.

Did some digging in the logs and it looks like while a batch of 
notifications are being sent out, it's rate limiting to about one per 
five seconds.  Also, from the first notification for a service to the 
last notification for that service, nothing else is written to the logs.

Since a typical notification goes out to 15+ people, that's over a 
minute with no service check handling.

Is there something going on under the hood that I'm not aware of (like, 
is it just not doing the log writing, but still doing the passive 
service check handling, and there's something else causing my latency?)

Is that delay configurable?  I don't see anything in the docs for that.

I've even set my notification script to just call and background a 
secondary script, to try and see if it wasn't a delay in the 
notification script, but that seemed not to do anything at all.  Should 
I be forking the notification script instead?

Here's a log snippet:
[1263505735] EXTERNAL COMMAND: 
PROCESS_SERVICE_CHECK_RESULT;;System Check;0;OK load mem ntp 
swap cfengine disk|
[1263505735] EXTERNAL COMMAND: 
PROCESS_SERVICE_CHECK_RESULT;;System Check;0;OK load mem ntp 
swap cfengine disk|
[1263505735] EXTERNAL COMMAND: 
PROCESS_SERVICE_CHECK_RESULT;;System Check;1;WARNING [swap 
utilization 25%] [/data/ at 77% (inodes 0%)]|
[1263505735] PASSIVE SERVICE CHECK: 
;check_mtime-redlist.txt;0;OK - redlist.txt 102 seconds old
[1263505735] PASSIVE SERVICE CHECK: ;pre_queuedepth;2;CRITICAL 
-  pre_queuedepth status: 2159 > 500

[1263505735] SERVICE NOTIFICATION: 
;;pre_queuedepth;CRITICAL;notify-by-email;CRITICAL - 
 pre_queuedepth status: 2159  500
[1263505741] SERVICE NOTIFICATION: 
;;pre_queuedepth;CRITICAL;notify-by-email;CRITICAL - 
 pre_queuedepth status: 2159  500


The SERVICE NOTIFICATION entries keep rolling in every 5-6 seconds for 
the next minute+, then it goes back to it's usual happy speed.

Is this an artifact of the way it logs, or is the whole system choking 
while it sends email?  I've searched the list archives and not found 
anything on this.

-- 
Mike Lindsey

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Warnings/errors with check_openmanage plugin

2010-01-14 Thread Gianluca Varenni
I spoke too soon. The new build works ok on my T610 server, but it generates 
an internal error on a 750 server

r...@tinman:/home/nagios/plugins# ./check_openmanage -H homer -t 180 -d
   System:  PowerEdge 750
   ServiceTag:  XXX  OMSA version:5.0.0
   BIOS/date:   XX   Plugin version:  3.5.5-beta1
-
   Storage Components
=
  STATE  |ID|  MESSAGE TEXT
-+--+
  OK |0 | Controller 0 [CERC SATA 1.5/6ch] is Ready
  OK |0:0:0 | Array Disk 0:0 [250GB] on ctrl -1 is Online
  OK |0:0:1 | Array Disk 0:1 [250GB] on ctrl -1 is Online
  OK |  0:0 | Logical drive 0 'Windows Disk 0' [RAID-1, 232.80 GB] 
on ctrl 0 is Ready
  OK |  0:0 | Connector 0 [SATA] on controller 0 is Ready
-
   Chassis Components
=
  STATE  |  ID  |  MESSAGE TEXT
-+--+
  OK |1 | Memory module 1 [DIMM1_A, 512 MB] is Ok
  OK |2 | Memory module 2 [DIMM2_A, 512 MB] is Ok
  OK |3 | Memory module 3 [DIMM1_B, 512 MB] is Ok
  OK |4 | Memory module 4 [DIMM2_B, 512 MB] is Ok
  OK |1 | Chassis fan 1 [System Blower]: 3479
  OK |2 | Chassis fan 2 [System Memory Fan]: 8881
  OK |3 | Chassis fan 3 [System PCI Fan]: 6250
  OK |0 | Temperature Probe 0 [System Temp] reads 24 C (min=10/5, 
max=45/50)
  OK |1 | Temperature Probe 1 [CPU Temp] reads 35 C (min=10/5, 
max=80/85)
  OK |0 | Processor 0 [Intel Pentium 4 3.00GHz] is Enabled
  OK |0 | Voltage sensor 0 [CPU Voltage] is 1.310 V
  OK |1 | Voltage sensor 1 [Battery Voltage] is 3.136 V
  OK |2 | Voltage sensor 2 [2.6V MB] is 2.597 V
  OK |3 | Voltage sensor 3 [VTT Voltage] is 1.298 V
  OK |4 | Voltage sensor 4 [3.3V MB] is 3.356 V
  OK |5 | Voltage sensor 5 [3.3V AUX] is 3.373 V
  OK |6 | Voltage sensor 6 [5V MB] is 4.992 V
  OK |7 | Voltage sensor 7 [12V MB] is 12.250 V
  OK |8 | Voltage sensor 8 [5V AUX] is 5.031 V
  OK |9 | Voltage sensor 9 [2.5V VGA] is 2.503 V
  OK |   10 | Voltage sensor 10 [1.5V MB] is 1.485 V
  OK |   11 | Voltage sensor 11 [1.2V LAN1] is 1.225 V
  OK |   12 | Voltage sensor 12 [1.2V LAN2] is 1.205 V
  OK |0 | Chassis intrusion 0 detection: Ok (Not Breached)
-
   Other messages
=
  STATE  |  MESSAGE TEXT
-+---
  OK | ESM log health is Ok (less than 80% full)

INTERNAL ERROR: Use of uninitialized value in join or string at 
./check_openmanage line 1345.
INTERNAL ERROR: Use of uninitialized value in join or string at 
./check_openmanage line 1345.

Let me know if you need any snmpwalk output.

Have a nice day
GV


--
From: "Trond Hasle Amundsen" 
Sent: Thursday, January 14, 2010 3:12 AM
To: "Gianluca Varenni" 
Cc: 
Subject: Re: [Nagios-users] Warnings/errors with check_openmanage plugin

> "Gianluca Varenni"  writes:
>
>> Here they are
>>
>> --
>> List of Virtual Disks on Controller PERC 6/i Integrated (Embedded)
>>
>> Controller PERC 6/i Integrated (Embedded)
>> ID   : 0
>> Status   : Ok
>> Name : Virtual Disk 0
>> State: Ready
>> HotSpare Policy violated : Not Assigned
>> Virtual Disk Bad Blocks  : Not Applicable
>> Secured  : Not Applicable
>> Progress : Not Applicable
>> Layout   : RAID-1
>> Size : 148.50 GB (159450660864 bytes)
>> Device Name  : Windows Disk 0
>> Bus Protocol : SATA
>> Media: HDD
>> Read Policy  : No Read Ahead
>> Write Policy : Write Back
>> Cache Policy : Not Applicable
>> Stripe Element Size  : 64 KB
>> Disk Cache Policy: Enabled
>>
>> ID   : 1
>> Status   : Ok
>> Name : DATA
>> State: Ready
>> HotSpare Policy violated : Not Assigned
>> Virtual Disk Bad Blocks  : Not Applicable
>> Secured  : Not Applicable
>> Progress : Not Applicable
>> Layout   : RAID-5
>> Size : 2,792.50 GB (2998424043520 bytes)
>> Device Name  : Windows Disk 1
>> Bus Protocol : SATA
>> Media 

Re: [Nagios-users] Warnings/errors with check_openmanage plugin

2010-01-14 Thread Gianluca Varenni

--
From: "Trond Hasle Amundsen" 
Sent: Thursday, January 14, 2010 3:12 AM
To: "Gianluca Varenni" 
Cc: 
Subject: Re: [Nagios-users] Warnings/errors with check_openmanage plugin

.

>
> The results from snmpwalk also looks OK, except for the fact that the
> last number jumps from 1 to 4. Where is 2 and 3? The plugin assumes that
> these indexes in the OIDs are sequential, which is clearly wrong. Though
> this situation is rare (never seen it before) the plugin should deal and
> the fact that it doesn't is a bug.
>
> I have a modified version of the plugin available here:
>
>  http://folk.uio.no/trondham/tmp/
>
> Can you give it a try to see if this one performs better?

This new version works ok. Thanks!

>
> I'm curious about the cause of this problem. Have you perhaps created a
> couple of virtual disks that were later deleted?

Yes, definitely. I'm still playing with the configuration and testing of 
this server, and I've deleted and recreated some virtual disks directly from 
OMSA.

> It would be interesting
> to see if a restart of OMSA, reboot or powercycle resets the indexes,
> but please help debug the plugin before attempting this :)

I tried restarting the SNMP service on the server, and now I get a more 
usual output from snmpwalk

SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.2.1 = STRING: "Virtual Disk 
0"
SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.2.2 = STRING: "DATA"
SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.3.1 = STRING: "Windows Disk 
0"
SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.3.2 = STRING: "Windows Disk 
1"

Have a nice day
GV

>
> Cheers,
> -- 
> Trond H. Amundsen 
> Center for Information Technology Services, University of Oslo 


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Beginer questions about check_http

2010-01-14 Thread Assaf Flatto
Cosmin Neagu wrote:
> Hello everybody,
>
> I'm using check_http to monitor a wab server where we have more than 3 
> web address. Like:
> www.example1.com
> www.example2.com
> www.example3.com...are all on the same server.
>
>
> Is there a way to check the status for each site? I'm a little 
> confused from reding the help of check_http, i have tried like:
> libexec/check_http -H 194.81.149.12 -p 80 --url=/www.example1.com
> libexec/check_http -H 194.81.149.12 -p 80 -P www.example1.com
> libexec/check_http -H 194.81.149.12 -p 80 -s www.example1.com
> But the output is not what i'm expecting.
>
> Can someone tell me if this is even posible?
>
> I think it should be something like this:
> cos...@cacti-1:/usr/local/nagios> libexec/check_http -H 194.81.149.12 
> -p 80 *-u www.example1.com*
> HTTP WARNING: HTTP/1.1 400 Bad Request
>
> But it gives me bad request, and i don't know why.
> PS: of course that all the testing is done with the real web site and 
> the correct ip address, not exemple1.com.
>
The best way to do that is to query the websites with the FQDN in the 
host address :

libexec/check_http -H www.example.com -p 80

that will resolve and send the query to the server with the URL and will 
trigger the vhost reply on the target host .

Assaf




--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitor Axis Cameras -- Howto?

2010-01-14 Thread Johannes Dagemark
Some cameras has the possibility to detect motion and upload a snapshot 
over ftp. I once configured a camera to do this and then checked for 
newly uploaded files. Fairly simple and also pretty cool.

With a custom plugin or by using urlize you could even get a link to a 
mugshot of the intruder attached to your email alert :)

Cheers
Johannes Dagemark

On 2010-01-14 15:36, Charles Breite wrote:
> We have hundreds deployed and we only use ping to monitor them.
>
> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
> Sent: Thursday, January 14, 2010 8:03 AM
> To: Nagios Mailinglist
> Subject: Re: [Nagios-users] Monitor Axis Cameras -- Howto?
>
>
> On Jan 14, 2010, at 3:41 AM, Mr Gabriel wrote:
>
>
>> Dear All,
>>
>> I would like to know if it is possible to monitor Axis based security
>> cameras via Nagios?
>>  
> What are you wanting to monitor on them? It's been a long time since
> I've used one but the ones I'm familiar with (similar to the current
> Axis 210 network camera) had an IP, so you could use check_ping to ping
> it and it had a web server so you could use check_http to make sure that
> was answering. You could probably come up with more sophisticated
> monitoring of the web interface with webinject but I'm not sure what
> additional value would be gained.
>
> --
> Marc
> 
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established
> companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>


-- 
Mvh
Johannes Dagemark
JD Consulting (op5 service partner)
Phone: +46733709024
Email: johan...@dagemark.com


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Beginer questions about check_http

2010-01-14 Thread Cosmin Neagu

Hello everybody,

I'm using check_http to monitor a wab server where we have more than 3 
web address. Like:

www.example1.com
www.example2.com
www.example3.com...are all on the same server.


Is there a way to check the status for each site? I'm a little confused 
from reding the help of check_http, i have tried like:

libexec/check_http -H 194.81.149.12 -p 80 --url=/www.example1.com
libexec/check_http -H 194.81.149.12 -p 80 -P www.example1.com
libexec/check_http -H 194.81.149.12 -p 80 -s www.example1.com
But the output is not what i'm expecting.

Can someone tell me if this is even posible?

I think it should be something like this:
cos...@cacti-1:/usr/local/nagios> libexec/check_http -H 194.81.149.12 -p 
80 *-u www.example1.com*

HTTP WARNING: HTTP/1.1 400 Bad Request

But it gives me bad request, and i don't know why.
PS: of course that all the testing is done with the real web site and 
the correct ip address, not exemple1.com.


--
Cosmin Neagu
NOC Team Leader
Str. I. G. Duca nr 36
Otopeni, Judetul Ilfov, 075100 Romania
Tel: 021 303 3159 / 0732 669 193
www.omnilogic.ro

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Monitor Axis Cameras -- Howto?

2010-01-14 Thread Charles Breite
We have hundreds deployed and we only use ping to monitor them.

-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Thursday, January 14, 2010 8:03 AM
To: Nagios Mailinglist
Subject: Re: [Nagios-users] Monitor Axis Cameras -- Howto?


On Jan 14, 2010, at 3:41 AM, Mr Gabriel wrote:

> Dear All,
> 
> I would like to know if it is possible to monitor Axis based security 
> cameras via Nagios?

What are you wanting to monitor on them? It's been a long time since
I've used one but the ones I'm familiar with (similar to the current
Axis 210 network camera) had an IP, so you could use check_ping to ping
it and it had a web server so you could use check_http to make sure that
was answering. You could probably come up with more sophisticated
monitoring of the web interface with webinject but I'm not sure what
additional value would be gained.

--
Marc

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference
attendees to learn about information security's most important issues
through
interactions with peers, luminaries and emerging and established
companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Checking DHCP

2010-01-14 Thread Marc Powell

On Jan 14, 2010, at 7:33 AM, Eduardo Barreto wrote:

> Hi All,
> 
> Does anybody knows or have a clue on how to check a dhcp server, I've tried 
> direct no success and then I'm trying to monitor it through nrpe.
> I'll appreciate any help

There's a check_dhcp plugin in the standard plugins to verify that a DHCP 
server his handing out leases. You need to run it from a host on the LAN that 
your DHCP server answers on. In most cases you cannot run this plugin on the 
DHCP server itself as they are most often configured *not* to give answers to 
themselves. If you're limited to running something on the DHCP server itself, 
you'll likely only be able to look to see if the DHCP process/service is 
running. How that's done depends on the OS of the server and how you can get to 
it from the Nagios machine.

--
Marc


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitor Axis Cameras -- Howto?

2010-01-14 Thread Marc Powell

On Jan 14, 2010, at 3:41 AM, Mr Gabriel wrote:

> Dear All,
> 
> I would like to know if it is possible to monitor Axis based security 
> cameras via Nagios?

What are you wanting to monitor on them? It's been a long time since I've used 
one but the ones I'm familiar with (similar to the current Axis 210 network 
camera) had an IP, so you could use check_ping to ping it and it had a web 
server so you could use check_http to make sure that was answering. You could 
probably come up with more sophisticated monitoring of the web interface with 
webinject but I'm not sure what additional value would be gained.

--
Marc
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Checking DHCP

2010-01-14 Thread Eduardo Barreto
Hi All,

Does anybody knows or have a clue on how to check a dhcp server, I've tried
direct no success and then I'm trying to monitor it through nrpe.
I'll appreciate any help

Thanks in advance


Luiz Eduardo
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Warnings/errors with check_openmanage plugin

2010-01-14 Thread Trond Hasle Amundsen
"Gianluca Varenni"  writes:

> Here they are
>
> --
> List of Virtual Disks on Controller PERC 6/i Integrated (Embedded)
>
> Controller PERC 6/i Integrated (Embedded)
> ID   : 0
> Status   : Ok
> Name : Virtual Disk 0
> State: Ready
> HotSpare Policy violated : Not Assigned
> Virtual Disk Bad Blocks  : Not Applicable
> Secured  : Not Applicable
> Progress : Not Applicable
> Layout   : RAID-1
> Size : 148.50 GB (159450660864 bytes)
> Device Name  : Windows Disk 0
> Bus Protocol : SATA
> Media: HDD
> Read Policy  : No Read Ahead
> Write Policy : Write Back
> Cache Policy : Not Applicable
> Stripe Element Size  : 64 KB
> Disk Cache Policy: Enabled
>
> ID   : 1
> Status   : Ok
> Name : DATA
> State: Ready
> HotSpare Policy violated : Not Assigned
> Virtual Disk Bad Blocks  : Not Applicable
> Secured  : Not Applicable
> Progress : Not Applicable
> Layout   : RAID-5
> Size : 2,792.50 GB (2998424043520 bytes)
> Device Name  : Windows Disk 1
> Bus Protocol : SATA
> Media: HDD
> Read Policy  : No Read Ahead
> Write Policy : Write Back
> Cache Policy : Not Applicable
> Stripe Element Size  : 64 KB
> Disk Cache Policy: Enabled

Ok, this looks perfectly normal.

> r...@tinman:~# snmpwalk -v2c -c public odyssey 
> 1.3.6.1.4.1.674.10893.1.20.140
> SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.1.1 = INTEGER: 1
> SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.1.4 = INTEGER: 4
> SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.2.1 = STRING: "Virtual Disk 
> 0"
> SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.2.4 = STRING: "DATA"
> SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.3.1 = STRING: "Windows Disk 
> 0"
> SNMPv2-SMI::enterprises.674.10893.1.20.140.1.1.3.4 = STRING: "Windows Disk 
> 1"
[...]

The results from snmpwalk also looks OK, except for the fact that the
last number jumps from 1 to 4. Where is 2 and 3? The plugin assumes that
these indexes in the OIDs are sequential, which is clearly wrong. Though
this situation is rare (never seen it before) the plugin should deal and
the fact that it doesn't is a bug.

I have a modified version of the plugin available here:

  http://folk.uio.no/trondham/tmp/

Can you give it a try to see if this one performs better?

I'm curious about the cause of this problem. Have you perhaps created a
couple of virtual disks that were later deleted? It would be interesting
to see if a restart of OMSA, reboot or powercycle resets the indexes,
but please help debug the plugin before attempting this :)

Cheers,
-- 
Trond H. Amundsen 
Center for Information Technology Services, University of Oslo

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Monitor Axis Cameras -- Howto?

2010-01-14 Thread Mr Gabriel
Dear All,

I would like to know if it is possible to monitor Axis based security 
cameras via Nagios?

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null