Re: [Nagios-users] Error While Using check_ifstatus

2009-05-22 Thread Lei Chen
2009/5/22 Martin Fontanez :
> Thanks Assaf,
>
> It looks like I have version 2
>
> [r...@localhost snmp]# snmpwalk -v3 -c public localhost
> snmpwalk: No securityName specified
> [r...@localhost snmp]#
>
> [r...@localhost snmp]# snmpwalk -v2c -c public localhost system
> SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain
> 2.6.11-121.1.1.el5 #1 SMP Mon Jan 26 13:59:00 EST 2009 i686
> SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15121490) 1 day,
> 18:00:14.90
> SNMPv2-MIB::sysContact.0 = STRING: Root  (configure
> /etc/snmp/snmp.local.conf)
> SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
> SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
> SNMPv2-MIB::sysORLastChange.0 = Timeticks: (65) 0:00:00.65
> SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
> SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
> SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
> SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB
> SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
> SNMPv2-MIB::sysORID.6 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
> SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance
> SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
> SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
> SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP
> implementations
> SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP
> implementations
> SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP
> implementations
> SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
> SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.
> SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and
> Dispatching.
> SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions
> for the SNMP User-based Security Model.
> SNMPv2-MIB::sysORUpTime.1 = Timeticks: (64) 0:00:00.64
> SNMPv2-MIB::sysORUpTime.2 = Timeticks: (64) 0:00:00.64
> SNMPv2-MIB::sysORUpTime.3 = Timeticks: (64) 0:00:00.64
> SNMPv2-MIB::sysORUpTime.4 = Timeticks: (64) 0:00:00.64
> SNMPv2-MIB::sysORUpTime.5 = Timeticks: (64) 0:00:00.64
> SNMPv2-MIB::sysORUpTime.6 = Timeticks: (65) 0:00:00.65
> SNMPv2-MIB::sysORUpTime.7 = Timeticks: (65) 0:00:00.65
> SNMPv2-MIB::sysORUpTime.8 = Timeticks: (65) 0:00:00.65
> [r...@localhost snmp]#
>
> I tried check_ifstatus with -v 2  option and getting same message:
>
> [r...@localhost etc]# /usr/local/nagios/libexec/check_ifstatus -H localhost
> -v 2 -C public -I -u E1 6/0
> CRITICAL: Requested table is empty or does not exist for
> 1.3.6.1.2.1.2.2.1.8  with snmp version 2
> I'll guess the message that "requested table is empty or does not exist for
> 1.3.6.1.2.1.2.2.1.8"  means that there is something that needs configuring
> in snmp (???).  I am very green with snmp.
>
Try this to verify the test the  IF-MIB::IfOperStatus OID.
snmpwalk -v 2c -c public 127.0.0.1 1.3.6.1.2.1.2.2.1.8
> --- On Fri, 5/22/09, Assaf Flatto  wrote:
>
> From: Assaf Flatto 
> Subject: Re: [Nagios-users] Error While Using check_ifstatus
> To: nagios-users@lists.sourceforge.net
> Date: Friday, May 22, 2009, 5:57 AM
>
>
>
> On Thursday 21 May 2009 14:31:26 Martin Fontanez wrote:
>> I am new to Nagios.  Trying to get link state info (up/down) on NIC cards
>> on my box (realizing I could use check_ping but ICMP is blocked).  I am
>> using el5 and mii-tools/mii-diag does not work since my kernel is 2.6 or
>> >.
>>
>> I setup check-ifstatus but I am getting this error:
>>
>> CRITICAL: Requested table is empty or does not exist for
>> 1.3.6.1.2.1.2.2.1.8  with snmp version 1
>>
>> Wondering if anyone knows of a workaround.
>
> Are you sure the device you are quering is using SNMP v1 ?
> most devices come with SNMP2 or even 3 , check the setting of you snmp query
> and the snmp setting on
> the device to see what version you need to use to check..
>
> --
> Assaf Flatto
> SSP Ops Team
> Linux System Administrator
> 169 Euston Road, London, NW1 2AE
>
> Along with a few colleagues I am doing The Three Peaks Challenge again
> this year to raise money for The Railway Children.
> Please sponsor me by making a donation online, simply click on the link
> below and give via your switch/credit card. Thank you.
> http://www.justgiving.com/londonnorththreepeaks
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential,
> legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient,
> please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email com

[Nagios-users] Fwd: sysUpTime.0: Status showing 'UNKNOWN'

2009-05-22 Thread Jimmyboy
Hi All,

Yesterday, I was unable to get the snmp-based Uptime data of a remote RSM in
the Nagios Web Interface.

Today, I have setup an L3 switch with VLAN and its IP address, and global
SNMP settings (public community only).

SNMP settings are as follows:
snmp-server community public ro
access-list 60 permit any
snmp-server host IP public
snmp-server enable traps
snmp-server enable traps snmp
snmp-server enable traps syslog

   - This switch is in the same subnet as the Nagios machine.
   - The access-list is set with permit 'any'.

 Still, I am unable to get the sysUpTime information in nagios web
interface. However, on doing an snmpwalk as under succeeds.

snmpwalk -v1 -c  sysUptime
DISMAN-EVENT-MIB::sysUpTimeInstance
= Timeticks: (496887) 1:22:48.87

So, I feel there is something I have missed out on?

Any idea what that might be?


Thanks,
Jim

=-=-=-=

-- Forwarded message -- From: Jimmyboy <
jimmyjose2...@gmail.com>
Date: Fri, May 22, 2009 at 3:40 AM
Subject: Re: [Nagios-users] sysUpTime.0: Status showing 'UNKNOWN'
To: frisv...@lafayette.edu, Sean Carolan 




I installed SNMP service on a Windows machine and set the NAGIOS
configuration files to monitor it for 'sysUptime'. It returns me a
successful reply on doing an *snmpwalk*.

 snmpwalk -v1 -c  sysUptime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10375118) 1 day,
4:49:11.18

However, the Nagios web interface shows its status as UNKNOWN. The 'Status
Information' against it says this:
Usage:check_snmp -H  -o  [-w warn_range] [-c crit_range]

But, this fails.

At this point, we can say that Nagios is doing its job through SNMP.
So, as you pointed out, may be there are ACLs applied on the RSM, which I
need to check out.


Thanks,
Jim

=-=-=





On Fri, May 22, 2009 at 2:25 AM, Sean Carolan  wrote:

> On Thu, May 21, 2009 at 3:45 PM, Jimmyboy  wrote:
> > Thanks for the reply.
> >
> > "snmpwalk -v1 -c d!0nts#0w ipaddress" errors out saying bash: !0: event
> not
> > found
> > "snmpwalk -v1 -c public ipaddress" errors out saying Timeout: No Response
> > from IP
> >
> > Is there anything I need to do on the RSM other than setting the
> snmp-server
> > communities?
>
>
> Yes, you can choose a less weird snmp community name.  You have a "!" 
> character
> in it which your bash shell is choking on.  Pick something
> simple with only numbers and letters and you should get better
> results.  If you're worried about security you can do the following:
>
> 1.  Don't expose the switch to the Internet. If its on your internal
> LAN and you aren't forwarding any ports to it from the 'net, you
> should be fine.
> 2.  If the device will allow it you can restrict it to only allow snmp
> queries from certain IPs.
>
> hope this helps
>
> Sean
>
>
--
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

[Nagios-users] Cacti

2009-05-22 Thread Eduardo Barreto
Hi All,

Are there any app to integrate Cacti in Nagios? I've red about Centreon, can
it be used instead of Cacti?


Cheers

Eduardo Barreto
--
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] sidebar does not display correctly

2009-05-22 Thread Gary Every
Do the logs show any 404's when looking for main.css ?

On Fri, May 22, 2009 at 12:56 PM, Kevin Keane wrote:

> side.html
>
> It looks like it actually is displaying correctly but ignoring the
> styles for some reason.
>
> Haffner, David (GE, Corporate, consultant) wrote:
> > Hi all,
> > I've been having a horrible time getting the sidebar to display
> > correctly.  Can anyone point me to a file or directory or something
> > that needs to be tweeked?
> > I've got it running on RHEL4.  Everything functions fine, it's
> > just that the sidebar displays wrong.  Here's a screenshot.
> >
> > Thanks!
> >
> >
> > Dave Haffner
> >
> > 
> >
> >
> --
> > 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
>
>
> --
> Kevin Keane
> Owner
> The NetTech
> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
> About
>
> Office: 866-642-7116
> http://www.4nettech.com
>
> This e-mail and attachments, if any, may contain confidential and/or
> proprietary information. Please be advised that the unauthorized use or
> disclosure of the information is strictly prohibited. The information herein
> is intended only for use by the intended recipient(s) named above. If you
> have received this transmission in error, please notify the sender
> immediately and permanently delete the e-mail and any copies, printouts or
> attachments thereof.
>
>
>
> --
> 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
>



-- 
Gary Every
"Pay it Forward!"
--
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] sidebar does not display correctly

2009-05-22 Thread Kevin Keane
side.html

It looks like it actually is displaying correctly but ignoring the 
styles for some reason.

Haffner, David (GE, Corporate, consultant) wrote:
> Hi all,
> I've been having a horrible time getting the sidebar to display 
> correctly.  Can anyone point me to a file or directory or something 
> that needs to be tweeked?
> I've got it running on RHEL4.  Everything functions fine, it's 
> just that the sidebar displays wrong.  Here's a screenshot.
>  
> Thanks!
>  
>  
> Dave Haffner
>  
> 
>
> --
> 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


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


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


[Nagios-users] sidebar does not display correctly

2009-05-22 Thread Haffner, David (GE, Corporate, consultant)
Hi all, 
I've been having a horrible time getting the sidebar to display
correctly.  Can anyone point me to a file or directory or something that
needs to be tweeked?
I've got it running on RHEL4.  Everything functions fine, it's just that
the sidebar displays wrong.  Here's a screenshot.
 
Thanks!
 

 
Dave Haffner
 
<>

smime.p7s
Description: S/MIME cryptographic signature
--
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

[Nagios-users] Kelsey Smith/CFS01/CFS is out of the office.

2009-05-22 Thread kelseysmith

I will be out of the office starting  05/22/2009 and will not return until
06/04/2009.
--
 Confirmed virus-free by mymssp.net
 see www.anchortechnologies.com for more information.
--
--
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

[Nagios-users] Using a different notification command after a certain downtime

2009-05-22 Thread Georg M. Sorst
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

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


[Nagios-users] Monitoring Oracle database

2009-05-22 Thread chethan.mnc
  

 

Dear All,

 

I m trying to monitor Oracle database using check_oracle plug-in. 

 

I need to know what all parameters (related to database) can be
monitored through Nagios and please advice for configuring the same.

 

 

Please help.

 

Thanks & Regards,

 

Chethan M N,
Sr Engineer - EMS

 

<>--
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] Different notification contacts depending on service state

2009-05-22 Thread Andreas Ericsson
Chris Picton wrote:
> Hi all
> 
> I am trying to create a service which will notify one group of users if 
> the service state is 'u' and a different group of users if the state is 
> 'c'
> 
> Is this possible without creating duplicate service checks?
> 

Yes. Check the documentation for service escalations.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Register now for Nordic Meet on Nagios, June 3-4 in Stockholm
 http://nordicmeetonnagios.op5.org/

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
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] Error While Using check_ifstatus

2009-05-22 Thread Onotsky, Steve x55328
You may have v3 available on the device you are querying, but you need
to specify a lot more information to snmpwalk than you have.

 

Read more at
http://net-snmp.sourceforge.net/wiki/index.php/TUT:SNMPv3_Options
(especially the table at about the middle of the page).

 

 

 

Steve Onotsky

Server Support Technologist

Broadridge

Investor Communication Solutions, Canada

5970 Chedworth Way

Mississauga  ON  L5R 4G5

Tel: (905) 507-5328

Fax: (905) 507-5312

Inet: steve.onot...@broadridge.com 


 

Quis custodiet ipsos custodes?

- Juvenal, Satires, VI, 347

 



From: Martin Fontanez [mailto:jdmfo...@yahoo.com] 
Sent: May 22, 2009 08:23
To: nagios-users@lists.sourceforge.net; Assaf Flatto
Subject: Re: [Nagios-users] Error While Using check_ifstatus

 

Thanks Assaf,

 

It looks like I have version 2

 

[r...@localhost snmp]# snmpwalk -v3 -c public localhost
snmpwalk: No securityName specified
[r...@localhost snmp]#

 

[r...@localhost snmp]# snmpwalk -v2c -c public localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain
2.6.11-121.1.1.el5 #1 SMP Mon Jan 26 13:59:00 EST 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15121490) 1 day,
18:00:14.90
SNMPv2-MIB::sysContact.0 = STRING: Root  (configure
/etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (65) 0:00:00.65
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID:
SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP
implementations
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and
ICMP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP
implementations
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for
SNMP.
SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and
Dispatching.
SNMPv2-MIB::sysORDescr.8 = STRING: The management information
definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (65) 0:00:00.65
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (65) 0:00:00.65
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (65) 0:00:00.65
[r...@localhost snmp]#

 

I tried check_ifstatus with -v 2  option and getting same message:

 

[r...@localhost etc]# /usr/local/nagios/libexec/check_ifstatus -H
localhost -v 2 -C public -I -u E1 6/0
CRITICAL: Requested table is empty or does not exist for
1.3.6.1.2.1.2.2.1.8  with snmp version 2

I'll guess the message that "requested table is empty or does not exist
for 1.3.6.1.2.1.2.2.1.8"  means that there is something that needs
configuring in snmp (???).  I am very green with snmp.



--- On Fri, 5/22/09, Assaf Flatto  wrote:


From: Assaf Flatto 
Subject: Re: [Nagios-users] Error While Using check_ifstatus
To: nagios-users@lists.sourceforge.net
Date: Friday, May 22, 2009, 5:57 AM



On Thursday 21 May 2009 14:31:26 Martin Fontanez wrote:
> I am new to Nagios.  Trying to get link state info (up/down)
on NIC cards
> on my box (realizing I could use check_ping but ICMP is
blocked).  I am
> using el5 and mii-tools/mii-diag does not work since my kernel
is 2.6 or >.
>
> I setup check-ifstatus but I am getting this error:
>
> CRITICAL: Requested table is empty or does not exist for
> 1.3.6.1.2.1.2.2.1.8  with snmp version 1
>
> Wondering if anyone knows of a workaround. 

Are you sure the device you are quering is using SNMP v1 ?
most devices come with SNMP2 or even 3 , check the setting of
you snmp query and the snmp setting on 
the device to see what version you need to use to check..

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

Along with a few colleagues I am doing The Three Peaks Challenge
again 
t

Re: [Nagios-users] "Disabled" services

2009-05-22 Thread Jason Frisvold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marc Powell wrote:
> Enable active checks, set the check_command as check_dummy but set the  
> check_period to be 'none' is what I do.

Ahh.. check_period.  Didn't think of that, thanks!

> --
> Marc


- --
- ---
Jason Frisvold
Network Engineer
frisv...@lafayette.edu
- ---
"What I cannot create, I do not understand"
   - Richard Feynman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkoWsNkACgkQO80o6DJ8UvlOfQCfXL2iIKP63fjtefvPFj70SMNI
Me0An0eO89F+6OqRWlsTtKv5hAkRiIsx
=VDHu
-END PGP SIGNATURE-

--
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] Error While Using check_ifstatus

2009-05-22 Thread Martin Fontanez
Thanks Assaf,
 
It looks like I have version 2
 
[r...@localhost snmp]# snmpwalk -v3 -c public localhost
snmpwalk: No securityName specified
[r...@localhost snmp]#
 
[r...@localhost snmp]# snmpwalk -v2c -c public localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.11-121.1.1.el5 
#1 SMP Mon Jan 26 13:59:00 EST 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15121490) 1 day, 18:00:14.90
SNMPv2-MIB::sysContact.0 = STRING: Root  (configure 
/etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (65) 0:00:00.65
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP 
implementations
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP 
implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP 
implementations
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and 
Dispatching.
SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions for 
the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (64) 0:00:00.64
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (65) 0:00:00.65
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (65) 0:00:00.65
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (65) 0:00:00.65
[r...@localhost snmp]#

 
I tried check_ifstatus with -v 2  option and getting same message:
 
[r...@localhost etc]# /usr/local/nagios/libexec/check_ifstatus -H localhost -v 
2 -C public -I -u E1 6/0
CRITICAL: Requested table is empty or does not exist for 1.3.6.1.2.1.2.2.1.8  
with snmp version 2

I'll guess the message that "requested table is empty or does not exist for 
1.3.6.1.2.1.2.2.1.8"  means that there is something that needs configuring in 
snmp (???).  I am very green with snmp.


--- On Fri, 5/22/09, Assaf Flatto  wrote:


From: Assaf Flatto 
Subject: Re: [Nagios-users] Error While Using check_ifstatus
To: nagios-users@lists.sourceforge.net
Date: Friday, May 22, 2009, 5:57 AM




On Thursday 21 May 2009 14:31:26 Martin Fontanez wrote:
> I am new to Nagios.  Trying to get link state info (up/down) on NIC cards
> on my box (realizing I could use check_ping but ICMP is blocked).  I am
> using el5 and mii-tools/mii-diag does not work since my kernel is 2.6 or >.
>
> I setup check-ifstatus but I am getting this error:
>
> CRITICAL: Requested table is empty or does not exist for
> 1.3.6.1.2.1.2.2.1.8  with snmp version 1
>
> Wondering if anyone knows of a workaround. 

Are you sure the device you are quering is using SNMP v1 ?
most devices come with SNMP2 or even 3 , check the setting of you snmp query 
and the snmp setting on 
the device to see what version you need to use to check..

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

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




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

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

Copyright 

Re: [Nagios-users] Different notification contacts depending on service state

2009-05-22 Thread Marc Powell

On May 22, 2009, at 6:54 AM, Chris Picton wrote:

> Hi all
>
> I am trying to create a service which will notify one group of users  
> if
> the service state is 'u' and a different group of users if the state  
> is
> 'c'
>
> Is this possible without creating duplicate service checks?

See the thread 'Differing Notifications' from just two days ago.

--
Marc


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


[Nagios-users] Different notification contacts depending on service state

2009-05-22 Thread Chris Picton
Hi all

I am trying to create a service which will notify one group of users if 
the service state is 'u' and a different group of users if the state is 
'c'

Is this possible without creating duplicate service checks?

Chris


--
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] monitor multiple port

2009-05-22 Thread Lei Chen
You can use check_snmp_int.pl to do this job.
http://nagios.manubulon.com/snmp_int.html

Such as follow:
 ./check_snmp_int.pl  -H 192.168.100.1  -C   -n
Ethernet0/29:UP, Ethernet0/19:DOWN, Ethernet0/6:UP, Ethernet0/11:DOWN,
Ethernet0/7:DOWN, Ethernet0/31:UP, Ethernet0/25:DOWN,
Ethernet0/24:DOWN, Ethernet0/8:UP, Aux0/0:UP, Ethernet0/1:UP,
Ethernet0/36:UP, Ethernet0/47:DOWN, Ethernet0/34:UP, Ethernet0/4:UP,
Ethernet0/38:UP, Ethernet0/9:DOWN, Ethernet0/37:DOWN,
GigabitEthernet1/3:DOWN, Ethernet0/43:DOWN, Ethernet0/27:UP,
Ethernet0/23:DOWN, Ethernet0/5:DOWN, Ethernet0/42:UP, Ethernet0/16:UP,
Ethernet0/14:UP, Ethernet0/26:DOWN, Ethernet0/3:UP, Ethernet0/46:UP,
Ethernet0/28:DOWN, Ethernet0/48:DOWN, Ethernet0/41:DOWN,
Ethernet0/12:UP, GigabitEthernet1/2:DOWN, Ethernet0/22:DOWN,
Ethernet0/20:UP, Ethernet0/18:UP, Ethernet0/32:UP, Ethernet0/21:DOWN,
Ethernet0/40:UP, Ethernet0/17:DOWN, Ethernet0/33:UP,
GigabitEthernet1/1:DOWN, Ethernet0/39:DOWN, Ethernet0/35:DOWN,
NULL0:UP, Vlan-interface100:UP, Ethernet0/2:DOWN, Ethernet0/10:UP,
Ethernet0/45:UP, GigabitEthernet1/4:DOWN, Vlan-interface200:UP,
Ethernet0/44:UP, Ethernet0/13:DOWN, Ethernet0/15:DOWN,
Ethernet0/30:UP: 27 int NOK : CRITICAL


2009/5/22 Anirudh Srinivasan :
> Here is my commands.cfg for check_snmp:
>
> define command{
> command_namecheck_port
> command_line$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
> $ARG2$ -r 1 -m RFC1213-MIB
> }
>
> Here is my services.cfg command:
>
> define service{
> use local-service
> host_name   mir-user-2
> service_description Port 1 status
> check_command   check_port!public!ifOperStatus.1
> }
>
> Now this is for only ONE port , and if it goes down it says Critical which
> is working fine.
>
> I would love to monitor multiple ports together i.e lets say port 1 2 3 and
> 4 and if 4 is down it should be critical . In that case what would be my
> commands.cfg and services.cfg
>
> Can some one elaborate on how my commands.cfg and services.cfg should look
> like ???
>
>
> Thanks in adv
> --
> Anirudh Srinivasan
>
>
> --
> 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
>



-- 
Thanks,
Chenlei & 石头++
MSN Messenger: c...@163.com

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

2009-05-22 Thread Lei Chen
http://www.consol.de/opensource/nagios/check-oracle-health/

Hope this helps.

2009/5/21  :
> Dear All,
>
>
>
> I m trying to monitor Oracle database using check_oracle plug-in.
>
>
>
> I need to know what all parameters (related to database) can be monitored
> through Nagios and please advice for configuring the same.
>
>
>
>
>
> Please help.
>
>
>
> Thanks & Regards,
>
>
>
> Chethan M N,
> Sr Engineer - EMS
>
>
>
> --
> 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
>



-- 
Thanks,
Chenlei & 石头++
MSN Messenger: c...@163.com

--
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] hostgroups and service dependencies?

2009-05-22 Thread Andreas Ericsson
Frost, Mark {PBG} wrote:
> I'm just starting to get into service dependencies.  My problem is that
> I don't quite see how I can get around doing it individually for each
> and every service and host needed.
> 
> An example is if I've got 100 Windows servers all configured to be part
> of a hostgroup.  Then I've got a 
> 
> 
>   define service {
>   hostgroup_name
> prod_windows_servers
>   service_description NRPE Service
>   check_command   NRPE Service
>   use Production
> Windows Service
>   }
> 
>   define service {
>   hostgroup_name
> prod_windows_servers
>   service_description CPU Load
>   check_command
> check_windows_load!90%!90%
>   use Production
> Windows Service
>   }
> 
>   define service {
>   hostgroup_name
> prod_windows_servers
>   service_description C: Drive
>   check_command
> check_windows_disk!C:!90%!90%
>   use Production
> Windows Service
>   }
> 
> where the 100 servers are all part of the 'prod_windows_servers"
> hostgroup.  Here I can list the checks nice and compactly and add new
> hosts/checks merely by putting them in that hostgroup.
> 
> I would like to make service checks on these boxes dependent on the
> "NRPE Service" check above.  So if the NRPE service was not responding,
> Nagios wouldn't bother sending me alerts about all the other things on
> that box it could not reach.
> 
> The object definitions seem to say that I can do
> 
>   define servicedependency {
>   hostgroup_name
> prod_windows_servers
>   service_description NRPE Service
>   dependent_hostgroup_name
> prod_windows_servers
>   dependent_service_description   C: Drive
>   execution_failure_criteria  n
>   notification_failure_criteria   w,u,c
>   }
> 
> I'm assuming that this is supposed to match up each
> 'prod_windows_servers' entry with its matching entry rather than making
> each server dependent on this servers from *every* other hostgroup
> member?
> 

You assume wrong. This makes it depend on each hostgroup member. In order
to do "same-host" dependencies, you can leave out one of the "hostgroup_name"
or "dependent_hostgroup_name". I can't remember which, so go browse the docs
to find out. Do note that same-host dependencies only work in Nagios 3.

> Just to see, I tried this out and when I did a pre-flight check it took
> 53 seconds (checking the host and service dependencies) when it normally
> runs instantly.
> 

Right. I'll try to apply the depth first search to host and service
dependencies too. It was originally a patch from Jean Gabès, and it
speeds up parent/child relations for hosts by a *huge* amount, so it's
probably worth adding it to dependencies too.

Even so, I'm guessing you actually added 100 (or more) times the number of
dependencies you expected to add, so it's not surprising this eats a lot
of CPU.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Register now for Nordic Meet on Nagios, June 3-4 in Stockholm
 http://nordicmeetonnagios.op5.org/

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
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] hostgroups and service dependencies?

2009-05-22 Thread Assaf Flatto
The 53 second delay is natural - as nagios is calculating the dependencies and 
what it 
calls "circular dependencies " - meaning it check that the definition is 
correct and the logic you 
defined is fine .

the delay will be there as long as you have the dependencies - as you are 
adding more complexity to 
the nagios operations and work logic - so it takes more time to prepare and 
create 
the "understanding " of the logic and requirements.

creating 100 definitions of service dependencies will not reduce the 
calculation time , and will 
only make you have a more "mess" in the configuration , the way you set it up 
is correct , and more 
elegant to read and understand by the next guy that will need to take care of 
the system (if that 
ever happens ).

 

On Wednesday 20 May 2009 19:35:20 Frost, Mark {PBG} wrote:
> I'm just starting to get into service dependencies.  My problem is that
> I don't quite see how I can get around doing it individually for each
> and every service and host needed.
>
> An example is if I've got 100 Windows servers all configured to be part
> of a hostgroup.  Then I've got a
>
>
>   define service {
>   hostgroup_name
> prod_windows_servers
>   service_description NRPE Service
>   check_command   NRPE Service
>   use Production
> Windows Service
>   }
>
>   define service {
>   hostgroup_name
> prod_windows_servers
>   service_description CPU Load
>   check_command
> check_windows_load!90%!90%
>   use Production
> Windows Service
>   }
>
>   define service {
>   hostgroup_name
> prod_windows_servers
>   service_description C: Drive
>   check_command
> check_windows_disk!C:!90%!90%
>   use Production
> Windows Service
>   }
>
> where the 100 servers are all part of the 'prod_windows_servers"
> hostgroup.  Here I can list the checks nice and compactly and add new
> hosts/checks merely by putting them in that hostgroup.
>
> I would like to make service checks on these boxes dependent on the
> "NRPE Service" check above.  So if the NRPE service was not responding,
> Nagios wouldn't bother sending me alerts about all the other things on
> that box it could not reach.
>
> The object definitions seem to say that I can do
>
>   define servicedependency {
>   hostgroup_name
> prod_windows_servers
>   service_description NRPE Service
>   dependent_hostgroup_name
> prod_windows_servers
>   dependent_service_description   C: Drive
>   execution_failure_criteria  n
>   notification_failure_criteria   w,u,c
>   }
>
> I'm assuming that this is supposed to match up each
> 'prod_windows_servers' entry with its matching entry rather than making
> each server dependent on this servers from *every* other hostgroup
> member?
>
> Just to see, I tried this out and when I did a pre-flight check it took
> 53 seconds (checking the host and service dependencies) when it normally
> runs instantly.
>
> I'm not sure this does what I want.  Even so, I don't know that I can
> handle the 53 second wait which I imagine would escalate for each
> service I defined in this way).  The only other route I can think of is
> to create a unique servicedepency definition for each of these.  That's
> 100 x n dependency definitions, where n is the number of other services
> I'm checking on each of these boxes.
>
> Am I looking at this the wrong way?  Is there an easier way to do this?
>
> Thanks
>
> Mark
>
>
> ---
>--- 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



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

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
h

Re: [Nagios-users] Error While Using check_ifstatus

2009-05-22 Thread Assaf Flatto


On Thursday 21 May 2009 14:31:26 Martin Fontanez wrote:
> I am new to Nagios.  Trying to get link state info (up/down) on NIC cards
> on my box (realizing I could use check_ping but ICMP is blocked).  I am
> using el5 and mii-tools/mii-diag does not work since my kernel is 2.6 or >.
>
> I setup check-ifstatus but I am getting this error:
>
> CRITICAL: Requested table is empty or does not exist for
> 1.3.6.1.2.1.2.2.1.8  with snmp version 1
>
> Wondering if anyone knows of a workaround. 

Are you sure the device you are quering is using SNMP v1 ?
most devices come with SNMP2 or even 3 , check the setting of you snmp query 
and the snmp setting on 
the device to see what version you need to use to check..

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

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




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

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

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

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

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

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