Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The -p (port) option was forgotten in some cases #28

Merged
merged 2 commits into from
Feb 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/check_snmp_boostedge.pl
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ sub check_options {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -257,6 +258,7 @@ sub check_options {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
2 changes: 2 additions & 0 deletions plugins/check_snmp_css.pl
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ sub check_options {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -336,6 +337,7 @@ sub check_options {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
2 changes: 2 additions & 0 deletions plugins/check_snmp_css_main.pl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ sub check_options {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -215,6 +216,7 @@ sub check_options {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
2 changes: 2 additions & 0 deletions plugins/check_snmp_env.pl
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ sub check_options {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -393,6 +394,7 @@ sub check_options {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
2 changes: 2 additions & 0 deletions plugins/check_snmp_linkproof_nhr.pl
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ sub check_options {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -220,6 +221,7 @@ sub check_options {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
2 changes: 2 additions & 0 deletions plugins/check_snmp_load.pl
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ sub is_legacy_snmp_version {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -401,6 +402,7 @@ sub is_legacy_snmp_version {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
2 changes: 2 additions & 0 deletions plugins/check_snmp_nsbox.pl
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ sub check_options {
verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand All @@ -275,6 +276,7 @@ sub check_options {
verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down
1 change: 1 addition & 0 deletions plugins/check_snmp_win.pl
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ sub check_options {
verb("SNMPv3 login");
($session, $error) = Net::SNMP->session(
-hostname => $o_host,
-port => $o_port,
-version => '3',
-username => $o_login,
-authpassword => $o_passwd,
Expand Down