[Résolu] check_snmp_hsrp.pl

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Halysan
Posts: 6
Joined: Wed Jan 21, 2015 9:14 am

[Résolu] check_snmp_hsrp.pl

Post by Halysan »

Dearl all,

I'm french, excuse me for my english.
I found an error while running check_snmp_hsrp.pl

My command is: perl -w check_snmp_hsrp.pl -H X.X.X.X -C public -s master -2
The result is: Vrid : 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/120), 1(master/up/110), 1(master/up/110), 2(master/up/110), 1(backup/up/100) : not all master : NOK

I use this plugin to supervise the hsrp for my switches Cisco 3560.

You have an idea?
Can you help me please

Halysan
Last edited by Halysan on Mon Jan 26, 2015 5:11 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_snmp_hsrp.pl

Post by slansing »

What is the error that you speak of? Without more context it is difficult to give you a clear answer.
Halysan
Posts: 6
Joined: Wed Jan 21, 2015 9:14 am

Re: check_snmp_hsrp.pl

Post by Halysan »

How to supervise the protocol hsrp my two switches cisco 3560 ?

With check_snmp?
Command:
./check_snmp -H X.X.X.X -C public -o .1.3.6.1.4.1.9.9.106.1.2.1.1.11.16.1

Result: SNMP OK - = IpAddress: X.X.X.X
Problem: I have twenty address for HSRP.. The result it's for one adress HSRP...
And witch is the master/backup?


With check_snmp_hsrp?
Command on nagios for Master:
./check_snmp_hsrp.pl -H X.X.X.X -C public -s master -g -2

Result: Vrid : 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/110), 1(master/up/120), 1(master/up/110), 1(master/up/110), 2(master/up/110), 1(backup/up/100) : not all master : NOK
Problem: Not all master ...

Command on nagios for backup:
./check_snmp_hsrp.pl -H X.X.X.X -C public -s backup -g -2

Result: Vrid : 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 1(backup/up/100), 2(backup/up/100), 1(master/up/100) : not all backup : NOK

Problem: Not all backup...

With other plugin?


Do you have an idea?
Last edited by slansing on Thu Jan 22, 2015 3:04 pm, edited 1 time in total.
Reason: Removed your previous post, please do not double post, it will not expedite the resolution.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_snmp_hsrp.pl

Post by slansing »

No I have absolutely no idea what that means, your best bet would be to contact the creator of the plugin and ask them. Their information should either be in the plugin, or on the page they posted it.
Halysan
Posts: 6
Joined: Wed Jan 21, 2015 9:14 am

Re: check_snmp_hsrp.pl

Post by Halysan »

I sent an email to the creator of the plugin..
But no reply, I await a reply.
On their page they put everything works ...
And the script does not contain comment..

If I find a solution I reply in my poste.
If an idea comes to mind, it will be welcome
Good day,

Thank you
Cordially,
Oxsan
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: check_snmp_hsrp.pl

Post by lgroschen »

Let us know if we can help with anything you get from the creator. When you post back it helps to include the commands you run in a code block so we can replicate it.
/Luke
Halysan
Posts: 6
Joined: Wed Jan 21, 2015 9:14 am

Re: check_snmp_hsrp.pl

Post by Halysan »

The reply of Creator:
The error is merely saying that not all your HSRP instances are in “master” status. As you can see from the output the very last one appears to be in “backup”state.

My nagios web interface shows the critical state for this service.
How to define this service OK?

Cordially,
Halysan
Posts: 6
Joined: Wed Jan 21, 2015 9:14 am

Re: check_snmp_hsrp.pl

Post by Halysan »

I change the program that my service is OK

Thanks
Cordially
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: [Résolu] check_snmp_hsrp.pl

Post by lgroschen »

Halysan,

Can I mark this topic as resolved?
/Luke
Halysan
Posts: 6
Joined: Wed Jan 21, 2015 9:14 am

Re: [Résolu] check_snmp_hsrp.pl

Post by Halysan »

Yes, this topic as resolved.
Thank you for your help.

Cordially
Locked