Re: [Nagios-users] Problem with Router status in notification.

2008-05-21 Thread Jay R. Ashworth
On Tue, May 20, 2008 at 12:19:22PM -0500, Marc Powell wrote:
> On May 20, 2008, at 11:39 AM, Jay R. Ashworth wrote:
> > On Tue, May 20, 2008 at 02:16:23PM +0530, Michael Mukherji wrote:
> >>   thanks for your input.But the port was actually down.Bt i want  
> >> notification
> >>   saying that port is down rather than snmp unable to collect data
> >>
> >>   So is any extra parameter such as -s /-r is required in my  
> >> check_snmp
> >>   command.
> >
> > No.
> >
> > As he noted, the problem is that the Cisco doesn't behave properly.   
> > If
> > the port is down, the Cisco should *say that it is down*, rather than
> > simply ceasing to respond properly.
> >
> > But that's what it does, and that's what you're seeing.
> 
> That's not how I interpreted his issue at all and I'm a bit dubious  
> about it.

Perhaps I misunderstood Hugo; he seemed pretty clear about what he was
saying, but admittedly, I haven't tripped over the problem myself.

>The problem interface was a Serial interface, possibly the  
> only upstream connection. check_snmp will behave this way if the  
> router is unreachable. I've never personally experienced this  
> 'disappearing' interface problem or non-responsiveness with any kind  
> of physical connection (Serial, (Fast)Ethernet, etc), only virtuals  
> such as ISDN Virtual interfaces, which are expected and even those  
> have never caused SNMP to be non-responsive. I do perform somewhat  
> extensive checking of interfaces via SNMP (several thousand).

Well, that sounds pretty authoritative.  Hugo?

Cheers,
- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with Router status in notification.

2008-05-20 Thread Marc Powell

On May 20, 2008, at 11:39 AM, Jay R. Ashworth wrote:

> On Tue, May 20, 2008 at 02:16:23PM +0530, Michael Mukherji wrote:
>>   thanks for your input.But the port was actually down.Bt i want  
>> notification
>>   saying that port is down rather than snmp unable to collect data
>>
>>   So is any extra parameter such as -s /-r is required in my  
>> check_snmp
>>   command.
>
> No.
>
> As he noted, the problem is that the Cisco doesn't behave properly.   
> If
> the port is down, the Cisco should *say that it is down*, rather than
> simply ceasing to respond properly.
>
> But that's what it does, and that's what you're seeing.

That's not how I interpreted his issue at all and I'm a bit dubious  
about it. The problem interface was a Serial interface, possibly the  
only upstream connection. check_snmp will behave this way if the  
router is unreachable. I've never personally experienced this  
'disappearing' interface problem or non-responsiveness with any kind  
of physical connection (Serial, (Fast)Ethernet, etc), only virtuals  
such as ISDN Virtual interfaces, which are expected and even those  
have never caused SNMP to be non-responsive. I do perform somewhat  
extensive checking of interfaces via SNMP (several thousand).

Michael: Can you clarify? I'm interested in knowing if this is  
something I need to be concerned about. What IOS version are you  
running?

--
Marc

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with Router status in notification.

2008-05-20 Thread Jay R. Ashworth
On Tue, May 20, 2008 at 02:16:23PM +0530, Michael Mukherji wrote:
>thanks for your input.But the port was actually down.Bt i want notification
>saying that port is down rather than snmp unable to collect data
> 
>So is any extra parameter such as -s /-r is required in my check_snmp
>command.

No.

As he noted, the problem is that the Cisco doesn't behave properly.  If
the port is down, the Cisco should *say that it is down*, rather than
simply ceasing to respond properly.

But that's what it does, and that's what you're seeing.

Marc, I gather provided a workaround, but that will likely obscure
those circumstances when the entire router drops dead.  Well, at least,
the historical logs will say the wrong thing.

No way to do better.

I concur: contact TAC; open a ticket. 

Cheers,
-- jra


><[EMAIL PROTECTED]> wrote:
> 
>  -BEGIN PGP SIGNED MESSAGE-
>  Hash: SHA1
> 
>Michael Mukherji wrote:
>| Hello list
>|
>| I am using nagios 3.0.I am having problem in getting notification for
>| any port down in my router.I am using snmp to collect data.
>|
>| define service{
>| usegeneric-service; Inherit values from a template
>| host_namehongkong-gw1
>| service_descriptionPort 10 descr adminstatus operstatus
>| check_commandcheck_snmp! -C public -o
>| ifDescr.14,ifAdminStatus.14,ifOperStatus.14
>|
>| this gives me output
>|
>| SNMP OK - Serial0/0 up(1) up(1) "FTIL1566 Connection to Londonpop-gw1
>| Ser0/3"
>|
>| now when the  port goes down , i recieve messege saying SMNP data not
>| recieved from host , problem unknown.but i want that it should give me
>| messege that the port is down.
>|
>| is there anything i need to change in the above check_snmp command?
> 
>  No. You need to get another router. Cisco in their infinite wisdom will
>  give odd results on some interfaces if they are down. I have seen cases
>  where the interface is there if it's up but when it's down the interface
>  is gone as far as SNMP is concerned.
>  I suggest you open a supprt ticket with Cisco on this odd behaviour.
>  It's their problem and they need to fix it.
>  Hugo.
>  - --
>  [EMAIL PROTECTED]   [3]http://hugo.vanderkooij.org/
>  PGP/GPG? Use: [4]http://hugo.vanderkooij.org/0x58F19981.asc
> A: Yes.
> >Q: Are you sure?
> >>A: Because it reverses the logical flow of conversation.
> >>>Q: Why is top posting frowned upon?
>  Bored? Click on [5]http://spamornot.org/ and rate those images.
>  -BEGIN PGP SIGNATURE-
>  Version: GnuPG v1.4.7 (GNU/Linux)
>  iD8DBQFIMofYBvzDRVjxmYERAu8sAJwKf81ROkyCpkcMsakPbXvjMCF5ygCbBkaG
>  cZ6DMrhKEhkQOx2lsTJbX7M=
>  =XGIN
>  -END PGP SIGNATURE-
>  -
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  [6]http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
>  ___
>  Nagios-users mailing list
>  [EMAIL PROTECTED]
>  [8]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
> 
> References
> 
>1. mailto:[EMAIL PROTECTED]
>2. mailto:[EMAIL PROTECTED]
>3. http://hugo.vanderkooij.org/PGP/GPG
>4. http://hugo.vanderkooij.org/0x58F19981.asc
>5. http://spamornot.org/
>6. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
>7. mailto:Nagios-users@lists.sourceforge.net
>8. https://lists.sourceforge.net/lists/listinfo/nagios-users

> -
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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

-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-

Re: [Nagios-users] Problem with Router status in notification.

2008-05-20 Thread Marc Powell

On May 20, 2008, at 2:23 AM, Michael Mukherji wrote:

> Hello list
>
> I am using nagios 3.0.I am having problem in getting notification  
> for any port down in my router.I am using snmp to collect data.
>

> now when the  port goes down , i recieve messege saying SMNP data  
> not recieved from host , problem unknown.but i want that it should  
> give me messege that the port is down.

> is there anything i need to change in the above check_snmp command?

There's no command line option to change this behavior. If you wish to  
exit with a CRITICAL status instead of UNKNOWN you'll need to edit the  
source for check_snmp.c around line 300 and replace --

 if (found == 0)
 die (STATE_UNKNOWN,
 _("%s problem - No data received from host 
\nCMD: %s\n"),
 label,
 cl_hidden_auth);

with

 if (found == 0)
 die (STATE_CRITICAL,
 _("%s problem - No data received from host 
\nCMD: %s\n"),
 label,
 cl_hidden_auth);

--
Marc

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with Router status in notification.

2008-05-20 Thread Michael Mukherji
Hi
thanks for your input.But the port was actually down.Bt i want notification
saying that port is down rather than snmp unable to collect data

So is any extra parameter such as -s /-r is required in my check_snmp
command.

On Tue, May 20, 2008 at 1:42 PM, Hugo van der Kooij <
[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Michael Mukherji wrote:
> | Hello list
> |
> | I am using nagios 3.0.I am having problem in getting notification for
> | any port down in my router.I am using snmp to collect data.
> |
> | define service{
> | usegeneric-service; Inherit values from a template
> | host_namehongkong-gw1
> | service_descriptionPort 10 descr adminstatus operstatus
> | check_commandcheck_snmp! -C public -o
> | ifDescr.14,ifAdminStatus.14,ifOperStatus.14
> |
> | this gives me output
> |
> | SNMP OK - Serial0/0 up(1) up(1) "FTIL1566 Connection to Londonpop-gw1
> | Ser0/3"
> |
> | now when the  port goes down , i recieve messege saying SMNP data not
> | recieved from host , problem unknown.but i want that it should give me
> | messege that the port is down.
> |
> | is there anything i need to change in the above check_snmp command?
>
> No. You need to get another router. Cisco in their infinite wisdom will
> give odd results on some interfaces if they are down. I have seen cases
> where the interface is there if it's up but when it's down the interface
> is gone as far as SNMP is concerned.
>
> I suggest you open a supprt ticket with Cisco on this odd behaviour.
> It's their problem and they need to fix it.
>
> Hugo.
>
> - --
> [EMAIL PROTECTED]   http://hugo.vanderkooij.org/
> PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
>
>A: Yes.
>>Q: Are you sure?
>>>A: Because it reverses the logical flow of conversation.
>>>>Q: Why is top posting frowned upon?
>
> Bored? Click on http://spamornot.org/ and rate those images.
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (GNU/Linux)
>
> iD8DBQFIMofYBvzDRVjxmYERAu8sAJwKf81ROkyCpkcMsakPbXvjMCF5ygCbBkaG
> cZ6DMrhKEhkQOx2lsTJbX7M=
> =XGIN
> -END PGP SIGNATURE-
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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
>
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Problem with Router status in notification.

2008-05-20 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Mukherji wrote:
| Hello list
|
| I am using nagios 3.0.I am having problem in getting notification for
| any port down in my router.I am using snmp to collect data.
|
| define service{
| usegeneric-service; Inherit values from a template
| host_namehongkong-gw1
| service_descriptionPort 10 descr adminstatus operstatus
| check_commandcheck_snmp! -C public -o
| ifDescr.14,ifAdminStatus.14,ifOperStatus.14
|
| this gives me output
|
| SNMP OK - Serial0/0 up(1) up(1) "FTIL1566 Connection to Londonpop-gw1
| Ser0/3"
|
| now when the  port goes down , i recieve messege saying SMNP data not
| recieved from host , problem unknown.but i want that it should give me
| messege that the port is down.
|
| is there anything i need to change in the above check_snmp command?

No. You need to get another router. Cisco in their infinite wisdom will
give odd results on some interfaces if they are down. I have seen cases
where the interface is there if it's up but when it's down the interface
is gone as far as SNMP is concerned.

I suggest you open a supprt ticket with Cisco on this odd behaviour.
It's their problem and they need to fix it.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIMofYBvzDRVjxmYERAu8sAJwKf81ROkyCpkcMsakPbXvjMCF5ygCbBkaG
cZ6DMrhKEhkQOx2lsTJbX7M=
=XGIN
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Problem with Router status in notification.

2008-05-20 Thread Michael Mukherji
Hello list

I am using nagios 3.0.I am having problem in getting notification for any
port down in my router.I am using snmp to collect data.

define service{
usegeneric-service; Inherit values from a template
host_namehongkong-gw1
service_descriptionPort 10 descr adminstatus operstatus
check_commandcheck_snmp! -C public -o
ifDescr.14,ifAdminStatus.14,ifOperStatus.14

this gives me output

SNMP OK - Serial0/0 up(1) up(1) "FTIL1566 Connection to Londonpop-gw1
Ser0/3"

now when the  port goes down , i recieve messege saying SMNP data not
recieved from host , problem unknown.but i want that it should give me
messege that the port is down.

is there anything i need to change in the above check_snmp command?

appreciate your help !!

regards
Michael
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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