Hello,
I am looking for a script that would do the same as check_all_interfaces.pl (https://exchange.nagios.org/directory/P ... rs/details). I've seen in the comments someone mentioning the changes he made to make it work with snmpv3 but I cannot get it to work, anyone has implemented this and can share the script?
Kind Regards
SNMPv3 Interface errors
Re: SNMPv3 Interface errors
Bump for anyone who can help
Re: SNMPv3 Interface errors
This plugin looks like it can do Interface errors and SNMPv3.
https://exchange.nagios.org/directory/P ... ce/details
Take a look at it and if you have any questions, let us know.
https://exchange.nagios.org/directory/P ... ce/details
Take a look at it and if you have any questions, let us know.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMPv3 Interface errors
Hello,tgriep wrote:This plugin looks like it can do Interface errors and SNMPv3.
https://exchange.nagios.org/directory/P ... ce/details
Take a look at it and if you have any questions, let us know.
I believe you have to specify which itnerfaces you want to check in each device etc and cannot all the interfaces at the same time (unless you type them one by one which is impossible for a lot of devices with multiple interfaces).
I will give it a try in case I'm wrong, but if this is the case, sadly, this won't do
Kind Regards
Re: SNMPv3 Interface errors
That is true, it does not check all of the interfaces but the option that is used for the name of the interface uses regex to find the names.
This monitors percentage error rates on a host's network interfaces .
https://exchange.nagios.org/directory/P ... nt/details
Nagios plugin to check all or some network interfaces on a network device for errors.
https://exchange.nagios.org/directory/P ... rs/details
I did find a few other plugins you can try.-n, --name=NAME
Name in description OID (eth0, ppp0 ...).
This is treated as a regexp : -n eth will match eth0,eth1,...
Test it before, because there are known bugs (ex : trailling /)
This monitors percentage error rates on a host's network interfaces .
https://exchange.nagios.org/directory/P ... nt/details
Nagios plugin to check all or some network interfaces on a network device for errors.
https://exchange.nagios.org/directory/P ... rs/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMPv3 Interface errors
Hello,
So first script you sent, have already tried it, brings back below error when run via CLI
"Can't locate Nagios/Plugin.pm in @INC (@INC contains: /home/nagios/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5/5.16.3 /home/nagios/perl5/lib/perl5/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_iferrors_percent line 39.
BEGIN failed--compilation aborted at ./check_iferrors_percent line 39.
"
I've seen it in the past and have tried installing all possible missing libraries but with no luck.
Second script you sent is the one we were using before we move to snmpv3 but I can't make it work for version 3. I've seen the comment that says they alternate the code a little bit to make it work, but I guess I am missing something and can't configure it.
Thank you
So first script you sent, have already tried it, brings back below error when run via CLI
"Can't locate Nagios/Plugin.pm in @INC (@INC contains: /home/nagios/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5/5.16.3 /home/nagios/perl5/lib/perl5/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_iferrors_percent line 39.
BEGIN failed--compilation aborted at ./check_iferrors_percent line 39.
"
I've seen it in the past and have tried installing all possible missing libraries but with no luck.
Second script you sent is the one we were using before we move to snmpv3 but I can't make it work for version 3. I've seen the comment that says they alternate the code a little bit to make it work, but I guess I am missing something and can't configure it.
Thank you
Re: SNMPv3 Interface errors
The first plugin, the Perl module Nagios::Plugin has been replaced and is no longer available.
It has been replaced with a newer module and here is how to update the plugin.
Edit the plugin and everywhere you see the following (Line 39, 314, 672, 676, 680)
replace it with this.
Save the change and that should allow the plugin to function.
The second plugin, I updated it but you need to create a cache directory so it can store the data.
Run this as root.
Then you can use the check_all_interfaces.pl plugin with SNMPv3.
It has been replaced with a newer module and here is how to update the plugin.
Edit the plugin and everywhere you see the following (Line 39, 314, 672, 676, 680)
Code: Select all
Nagios::PluginCode: Select all
Nagios::Monitoring::PluginThe second plugin, I updated it but you need to create a cache directory so it can store the data.
Run this as root.
Code: Select all
mkdir /var/tmp/nagios
mkdir /var/tmp/nagios/iferrors
chown -R nagios.nagios /var/tmp/nagios
chmod ug+rw /var/tmp/nagiosYou do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMPv3 Interface errors
They both work fine now!
Thanks a lot for the help!
Thanks a lot for the help!
Re: SNMPv3 Interface errors
Glad that the plugins are working for you. I'll lock the post for you but feel free to open a new post for any new issues or questions in the future.
Be sure to check out our Knowledgebase for helpful articles and solutions!