Page 1 of 2
[Résolu] check_snmp_hsrp.pl
Posted: Wed Jan 21, 2015 9:27 am
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
Re: check_snmp_hsrp.pl
Posted: Wed Jan 21, 2015 3:53 pm
by slansing
What is the error that you speak of? Without more context it is difficult to give you a clear answer.
Re: check_snmp_hsrp.pl
Posted: Thu Jan 22, 2015 8:16 am
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?
Re: check_snmp_hsrp.pl
Posted: Thu Jan 22, 2015 3:07 pm
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.
Re: check_snmp_hsrp.pl
Posted: Fri Jan 23, 2015 4:40 am
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
Re: check_snmp_hsrp.pl
Posted: Fri Jan 23, 2015 1:46 pm
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.
Re: check_snmp_hsrp.pl
Posted: Mon Jan 26, 2015 4:45 am
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,
Re: check_snmp_hsrp.pl
Posted: Mon Jan 26, 2015 4:58 am
by Halysan
I change the program that my service is OK
Thanks
Cordially
Re: [Résolu] check_snmp_hsrp.pl
Posted: Mon Jan 26, 2015 10:21 am
by lgroschen
Halysan,
Can I mark this topic as resolved?
Re: [Résolu] check_snmp_hsrp.pl
Posted: Mon Jan 26, 2015 1:37 pm
by Halysan
Yes, this topic as resolved.
Thank you for your help.
Cordially