Re: [Nagios-users] SNMP showing Unknown

2010-09-13 Thread Dorfman, Justin
C:\net-snmp\etc\snmp\snmpd.conf has to contain something like this :
*Code:*rocommunity public
Here is an example of ours:

*syslocation  LAX*
>
>
>> disk  /var 5%
>
> disk  /usr 5%
>
> disk  /tmp 5%
>
>
>> load  30 30 30
>
>
>> *syscontact em...@domain.com*
>
> *rwcommunity sdjslf8sdf8 192.168.0.0/24*
>
> *rocommunity public *
>
>
>
*You then need to restart NET-SNMP *for the changes to apply.

Good little tutorial: http://forums.cacti.net/about26151.html

Regards,

Justin Dorfman
Mahalo.com Inc. > Jr. Systems Engineer
818.485.1458
@jdorfman  |
@MahaloSysops| Blog:
http://bit.ly/aNiWSk


On Mon, Sep 13, 2010 at 2:54 AM, IT Toonz  wrote:

>  Hi Justin,
>
>
>
> Thanks for the reply.
>
>
>
> We downloaded net-snmp.exe and installed in a monitored window server.
>
>
>
> Didn’t modify anything, tried to start net-snmp service from the windows
> system, stopped at event id 7031! Checking again
>
>
>
> Downloaded and installed the perl scripts... is there anything to modify...
>
>
>
> Please advice.
>
>
>
> Regards
>
> Ananth.
>
>
>
>
>
>
>
>
>
> *From:* Dorfman, Justin [mailto:jus...@mahalo.com]
> *Sent:* 10 September 2010 20:06
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SNMP showing Unknown
>
>
>
> Ananth,
>
>
>
> This is how we check an SNMP process (in commands.cfg):
>
>
>
> # 'check_snmp' command definition
>
>  define command{
>
>  command_namecheck_snmp_process
>
>  command_line$USER1$/check_snmp_process.pl -H $HOSTADDRESS$ -C
> $USER3$
>
>  }
>
>
>
> I would recommend you downloading these perl scripts:
> http://nagios.manubulon.com/index_snmp.html and putting them into your *
> /usr/local/nagios/libexec* folder.
>
>
>
> Let me know how it goes.
>
>
>
> Regards,
>
> Justin Dorfman
> Mahalo.com Inc. > Jr. Systems Engineer
> 818.485.1458
> @jdorfman  | 
> @MahaloSysops| Blog:
> http://bit.ly/aNiWSk
>
>  On Thu, Sep 9, 2010 at 2:36 AM, IT Toonz  wrote:
>
> Hi Justin,
>
>
>
> We have the native SNMP in Windows installed and we wanted to monitor those
> readings. We downloaded and installed Net-SNMP, but seems there a bit of
> configuring to do, we are fiddling with Nagios settings, so not sure whether
> we want to spend time learning Net-SNMP at present.
>
>
>
> But its definitely something which we want to look at in the future. Thanks
> for sharing the info.
>
>
>
> Meanwhile we are still stuck in SNMP!!
>
>
>
> This is what we get when we run
>
> [r...@nagios nagios]# snmpwalk -v1 -c taipl 192.168.3.100 snmp
>
> SNMPv2-MIB::snmpInPkts.0 = Counter32: 1
>
> SNMPv2-MIB::snmpOutPkts.0 = Counter32: 11
>
> SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 11
>
> SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 14
>
> SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 25
>
> SNMPv2-MIB::snmpOutTraps.0 = Counter32: 10
>
> SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: enabled(1)
>
>
>
>
>
> So seems client side is fine. Please advice... below is the error we get by
> mail
>
>
>
> * Nagios *
>
>
>
> Notification Type: PROBLEM
>
>
>
> Service: SNMP
>
> Host: antivirsrv
>
> Address: 192.168.3.100
>
> State: UNKNOWN
>
>
>
> Date/Time: Thu Sept 9 14:42:56 IST 2010
>
>
>
> Additional Info:
>
>
>
> No OIDs specified
>
>
>
> below is the config settings for windows servers
>
>
>
> # Create a service for monitoring SNMP
>
>
>
> define service{
>
> use generic-service
>
> host_name   taipl-domsrv
>
> host_name   tai3dserver
>
> host_name   tai3dstorage-02
>
> host_name   tai3d-avsrv
>
> service_description SNMP
>
> check_command
> check_snmp!.1.3.6.1.2.1.25.2.3.1.6.2!1!Cachebuffers!5!2000
>
> }
>
>
>
> Please advicewhat else is there to configure, please be specific, we

[Nagios-users] contact inheritance

2010-09-13 Thread J . M .
Hi all,

I have a question concerning
http://nagios.sourceforge.net/docs/3_0/objectinheritance.html.

I have 
- a host definition with a certain contact_groups directive
- the host is part of a hostgroup
- which is part of another hostgroup
I also have
- a service template referencing that hostgroup
- the instantiation of the template using additive inheritance in the
contact_groups parameter

i.e. the host's contacts as well as another contact group specific to the
service should be notified.

Now, only the contact group added in the service definition via "contact_groups
+bla" gets notified and the host's contacts do not get notified.

Why could that be?

Thanks
JM


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
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] event hadlers not executed every time ?

2010-09-13 Thread Assaf Flatto
  On 13/09/10 08:28, b2 wrote:
> Hi list,
> i have some problem with my event handlers, they do not execute on HARD
> CRITICAL , but execute on HARD OK state ? is there an option for this
> anywhere in configs ? i cant figure it...
> snip from my log file :
>
> [1284361876] HOST ALERT: bulmiks2;DOWN;SOFT;1;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361886] HOST ALERT: bulmiks2;DOWN;SOFT;2;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361896] HOST ALERT: bulmiks2;DOWN;SOFT;3;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361906] HOST ALERT: bulmiks2;DOWN;SOFT;4;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361916] HOST ALERT: bulmiks2;DOWN;SOFT;5;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361926] HOST ALERT: bulmiks2;DOWN;SOFT;6;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361936] HOST ALERT: bulmiks2;DOWN;SOFT;7;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361946] HOST ALERT: bulmiks2;DOWN;SOFT;8;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361956] HOST ALERT: bulmiks2;DOWN;SOFT;9;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361966] HOST ALERT: bulmiks2;DOWN;HARD;10;CRITICAL - Plugin timed
> out after 10 seconds
> [1284361966] HOST NOTIFICATION:
> support;bulmiks2;DOWN;host-notify-by-email;CRITICAL - Plugin timed out
> after 10 seconds
> [1284361966] SERVICE ALERT: bulmiks2;PING;CRITICAL;HARD;1;CRITICAL -
> Plugin timed out after 10 seconds
>
> - no event handler executed when HARD CRITICAL and even on SOFT
> CRITICAL... , but when service going to HARD OK state there is event
> handler executed -
>
> [1284362306] SERVICE EVENT HANDLER: bulmiks2;PING;OK;HARD;1;test_event
>
>
> ANY sugestions ?!
>
Can yo show us the event handler script ?
and the event handler configuration command ?


-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogtrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
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 showing Unknown

2010-09-13 Thread IT Toonz
Hi Justin,

 

Thanks for the reply.

 

We downloaded net-snmp.exe and installed in a monitored window server.

 

Didn't modify anything, tried to start net-snmp service from the windows
system, stopped at event id 7031! Checking again

 

Downloaded and installed the perl scripts... is there anything to modify...

 

Please advice.

 

Regards

Ananth.

 

 

 

 

From: Dorfman, Justin [mailto:jus...@mahalo.com] 
Sent: 10 September 2010 20:06
To: Nagios Users List
Subject: Re: [Nagios-users] SNMP showing Unknown

 

Ananth,

 

This is how we check an SNMP process (in commands.cfg):

 

# 'check_snmp' command definition 

define command{

command_namecheck_snmp_process

command_line$USER1$/check_snmp_process.pl -H $HOSTADDRESS$ -C
$USER3$

}

 

I would recommend you downloading these perl scripts:
http://nagios.manubulon.com/index_snmp.html and putting them into your
/usr/local/nagios/libexec folder.

 

Let me know how it goes.

 

Regards,

Justin Dorfman
Mahalo.com Inc. > Jr. Systems Engineer
818.485.1458
@jdorfman   | @MahaloSysops
  | Blog: http://bit.ly/aNiWSk



On Thu, Sep 9, 2010 at 2:36 AM, IT Toonz  wrote:

Hi Justin, 

 

We have the native SNMP in Windows installed and we wanted to monitor those
readings. We downloaded and installed Net-SNMP, but seems there a bit of
configuring to do, we are fiddling with Nagios settings, so not sure whether
we want to spend time learning Net-SNMP at present.

 

But its definitely something which we want to look at in the future. Thanks
for sharing the info.

 

Meanwhile we are still stuck in SNMP!!

 

This is what we get when we run 

[r...@nagios nagios]# snmpwalk -v1 -c taipl 192.168.3.100 snmp

SNMPv2-MIB::snmpInPkts.0 = Counter32: 1

SNMPv2-MIB::snmpOutPkts.0 = Counter32: 11

SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0

SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0

SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0

SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0

SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0

SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0

SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0

SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0

SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0

SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 11

SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0

SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 0

SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 14

SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0

SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0

SNMPv2-MIB::snmpInTraps.0 = Counter32: 0

SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0

SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 0

SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0

SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0

SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0

SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0

SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0

SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 25

SNMPv2-MIB::snmpOutTraps.0 = Counter32: 10

SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: enabled(1)

 

 

So seems client side is fine. Please advice... below is the error we get by
mail

 

* Nagios *

 

Notification Type: PROBLEM

 

Service: SNMP

Host: antivirsrv

Address: 192.168.3.100

State: UNKNOWN

 

Date/Time: Thu Sept 9 14:42:56 IST 2010

 

Additional Info:

 

No OIDs specified

 

below is the config settings for windows servers

 

# Create a service for monitoring SNMP

 

define service{

use generic-service

host_name   taipl-domsrv

host_name   tai3dserver

host_name   tai3dstorage-02

host_name   tai3d-avsrv

service_description SNMP

check_command
check_snmp!.1.3.6.1.2.1.25.2.3.1.6.2!1!Cachebuffers!5!2000

}

 

Please advicewhat else is there to configure, please be specific, we
just started in Fully Automated Nagios, with a lot of help we have reached
this far J 

 

Regards

Ananth.

 

From: Dorfman, Justin [mailto:jus...@mahalo.com] 
Sent: 08 September 2010 22:59


To: Nagios Users List
Subject: Re: [Nagios-users] SNMP showing Unknown

 

First off do you have NET-SNMP
(http://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/5.5-bina
ries/) installed on the server you are trying to fetch info from?

 


Regards,

Justin Dorfman
Mahalo.com Inc. > Jr. Systems Engineer
818.485.1458
@jdorfman   | @MahaloSysops
  | Blog: http://bit.ly/aNiWSk

On Wed, Sep 8, 2010 at 4:54 AM, IT Toonz  wrote:

You need to look at the service definition as well as the command

definition to find out how the command is configured to run for this

particular service check.

 

Which file that will be? The command.cfg file entry was the one we had put
in the earlier mail.

 

We are newbies's so if possible kindly explain in

Re: [Nagios-users] SNMP showing Unknown

2010-09-13 Thread IT Toonz
Thanks Marc, checking out what your said.

-Original Message-
From: Marc Powell [mailto:li...@xodus.org] 
Sent: 09 September 2010 17:42
To: Nagios Users List
Subject: Re: [Nagios-users] SNMP showing Unknown


On Sep 9, 2010, at 4:36 AM, IT Toonz wrote:


> below is the config settings for windows servers
>  
> # Create a service for monitoring SNMP
>  
> define service{
> use generic-service
> host_name   taipl-domsrv
> host_name   tai3dserver
> host_name   tai3dstorage-02
> host_name   tai3d-avsrv
> service_description SNMP
> check_command
check_snmp!.1.3.6.1.2.1.25.2.3.1.6.2!1!Cachebuffers!5!2000
> }
>  
> Please advicewhat else is there to configure, please be specific, we
just started in Fully Automated Nagios, with a lot of help we have reached
this far J


> > define command{
> > command_namecheck_snmp
> > command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
> > }

Based on the check_command that you have above, the command_line you've told
nagios to run is --

/check_snmp -H 
.1.3.6.1.2.1.25.1.3.1.6.2

As you can see, this is far from complete or formatted properly. I'm not
sure what the parameters you are trying to pass are but way you have the
command_line set up requires that you pass them as part of the check_command
like so --

  define service {
  ...
  check_command check_snmp!-o .1.3.6.1.2.1.25.2.3.1.6.2 -C
 -l Cachebuffers -(... whatever other paramenters you are
trying to pass to check_snmp)

You probably want to read the documentation on using arguments in commands,
specifically the $ARGx$ macros and check_snmp documenation (man check_snmp)
to fully understand why what you tried didn't work.

--
Marc



--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
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] event hadlers not executed every time ?

2010-09-13 Thread b2
Hi list, 
i have some problem with my event handlers, they do not execute on HARD
CRITICAL , but execute on HARD OK state ? is there an option for this
anywhere in configs ? i cant figure it...
snip from my log file : 

[1284361876] HOST ALERT: bulmiks2;DOWN;SOFT;1;CRITICAL - Plugin timed
out after 10 seconds
[1284361886] HOST ALERT: bulmiks2;DOWN;SOFT;2;CRITICAL - Plugin timed
out after 10 seconds
[1284361896] HOST ALERT: bulmiks2;DOWN;SOFT;3;CRITICAL - Plugin timed
out after 10 seconds
[1284361906] HOST ALERT: bulmiks2;DOWN;SOFT;4;CRITICAL - Plugin timed
out after 10 seconds
[1284361916] HOST ALERT: bulmiks2;DOWN;SOFT;5;CRITICAL - Plugin timed
out after 10 seconds
[1284361926] HOST ALERT: bulmiks2;DOWN;SOFT;6;CRITICAL - Plugin timed
out after 10 seconds
[1284361936] HOST ALERT: bulmiks2;DOWN;SOFT;7;CRITICAL - Plugin timed
out after 10 seconds
[1284361946] HOST ALERT: bulmiks2;DOWN;SOFT;8;CRITICAL - Plugin timed
out after 10 seconds
[1284361956] HOST ALERT: bulmiks2;DOWN;SOFT;9;CRITICAL - Plugin timed
out after 10 seconds
[1284361966] HOST ALERT: bulmiks2;DOWN;HARD;10;CRITICAL - Plugin timed
out after 10 seconds
[1284361966] HOST NOTIFICATION:
support;bulmiks2;DOWN;host-notify-by-email;CRITICAL - Plugin timed out
after 10 seconds
[1284361966] SERVICE ALERT: bulmiks2;PING;CRITICAL;HARD;1;CRITICAL -
Plugin timed out after 10 seconds

- no event handler executed when HARD CRITICAL and even on SOFT
CRITICAL... , but when service going to HARD OK state there is event
handler executed - 

[1284362306] SERVICE EVENT HANDLER: bulmiks2;PING;OK;HARD;1;test_event


ANY sugestions ?!





--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
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