From d782fc24ab4acb4de25ca10d2fb3c883ffc47e64 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 9 Dec 2018 11:49:09 +0100 Subject: [PATCH] Fix ZBX_NOTSUPPORTED string in several scripts --- zabbix_scripts/check_httpd | 4 ++-- zabbix_scripts/check_nginx | 4 ++-- zabbix_scripts/check_pmg_sudo | 2 +- zabbix_scripts/check_pve_sudo | 2 +- zabbix_scripts/check_squid | 4 ++-- zabbix_scripts/check_zfs | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/zabbix_scripts/check_httpd b/zabbix_scripts/check_httpd index 2ea03b7..2378f3b 100644 --- a/zabbix_scripts/check_httpd +++ b/zabbix_scripts/check_httpd @@ -21,7 +21,7 @@ my $status = get($uri . '?auto'); unless ($status){ - print 'ZBX_UNSUPPOTED'; + print 'ZBX_NOTSUPPORTED'; exit 1; } @@ -50,6 +50,6 @@ elsif (defined $res{$what}){ print $res{$what}; } else{ - print 'ZBX_UNSUPPOTED'; + print 'ZBX_NOTSUPPORTED'; } exit 0; diff --git a/zabbix_scripts/check_nginx b/zabbix_scripts/check_nginx index f3d19ab..e9e2e8f 100755 --- a/zabbix_scripts/check_nginx +++ b/zabbix_scripts/check_nginx @@ -23,7 +23,7 @@ my $status = get($uri); unless ($status){ - print 'ZBX_UNSUPPOTED'; + print 'ZBX_NOTSUPPORTED'; exit 1; } @@ -51,6 +51,6 @@ elsif (defined $res->{$what}){ print $res->{$what}; } else{ - print 'ZBX_UNSUPPOTED'; + print 'ZBX_NOTSUPPORTED'; } exit 0; diff --git a/zabbix_scripts/check_pmg_sudo b/zabbix_scripts/check_pmg_sudo index f0d193a..060cae3 100644 --- a/zabbix_scripts/check_pmg_sudo +++ b/zabbix_scripts/check_pmg_sudo @@ -81,7 +81,7 @@ if (not defined $domain){ $json->{$_} //= 0 foreach (qw/rbl pregreet/); if (defined $what and not defined $json->{$what}){ - print 'ZBX_UNSUPORTED'; + print 'ZBX_NOTSUPPORTED'; exit 0; } elsif (defined $what){ $resp = $json->{$what} diff --git a/zabbix_scripts/check_pve_sudo b/zabbix_scripts/check_pve_sudo index 5d36969..63a93ae 100644 --- a/zabbix_scripts/check_pve_sudo +++ b/zabbix_scripts/check_pve_sudo @@ -114,7 +114,7 @@ if ($cluster){ } } } else{ - print 'ZBX_UNSUPORTED'; + print 'ZBX_NOTSUPPORTED'; exit 0; } diff --git a/zabbix_scripts/check_squid b/zabbix_scripts/check_squid index a71a21a..fec6bb2 100644 --- a/zabbix_scripts/check_squid +++ b/zabbix_scripts/check_squid @@ -23,7 +23,7 @@ my $status = get($uri); unless ($status){ - print 'ZBX_UNSUPPOTED'; + print 'ZBX_NOTSUPPORTED'; exit 1; } @@ -82,6 +82,6 @@ elsif (defined $res->{$what}){ print $res->{$what}; } else{ - print 'ZBX_UNSUPPOTED'; + print 'ZBX_NOTSUPPORTED'; } exit 0; diff --git a/zabbix_scripts/check_zfs b/zabbix_scripts/check_zfs index ebeabee..adc3c8a 100644 --- a/zabbix_scripts/check_zfs +++ b/zabbix_scripts/check_zfs @@ -45,9 +45,9 @@ if ($zpool){ } } if ($what){ - print ((defined $json->{$pool}->{$what}) ? $json->{$pool}->{$what} : 'ZBX_UNSUPORTED'); + print ((defined $json->{$pool}->{$what}) ? $json->{$pool}->{$what} : 'ZBX_NOTSUPPORTED'); } elsif ($pool){ - print ((defined $json->{$pool}) ? to_json($json->{$pool}, { pretty => $pretty }) : 'ZBX_UNSUPORTED'); + print ((defined $json->{$pool}) ? to_json($json->{$pool}, { pretty => $pretty }) : 'ZBX_NOTSUPPORTED'); } else { print to_json($json, { pretty => $pretty }); }