diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 (GMT) |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_nwstat.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r-- | plugins/check_nwstat.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index b4fd3c7..c0e5ece 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c | |||
@@ -203,7 +203,7 @@ main(int argc, char **argv) { | |||
203 | 203 | ||
204 | /* check CPU load */ | 204 | /* check CPU load */ |
205 | if (vars_to_check==LOAD1 || vars_to_check==LOAD5 || vars_to_check==LOAD15) { | 205 | if (vars_to_check==LOAD1 || vars_to_check==LOAD5 || vars_to_check==LOAD15) { |
206 | 206 | ||
207 | switch(vars_to_check) { | 207 | switch(vars_to_check) { |
208 | case LOAD1: | 208 | case LOAD1: |
209 | temp_buffer = strdup ("1"); | 209 | temp_buffer = strdup ("1"); |
@@ -249,7 +249,7 @@ main(int argc, char **argv) { | |||
249 | temp_buffer, | 249 | temp_buffer, |
250 | utilization, | 250 | utilization, |
251 | warning_value, | 251 | warning_value, |
252 | critical_value); | 252 | critical_value); |
253 | 253 | ||
254 | /* check number of user connections */ | 254 | /* check number of user connections */ |
255 | } else if (vars_to_check==CONNS) { | 255 | } else if (vars_to_check==CONNS) { |
@@ -457,7 +457,7 @@ main(int argc, char **argv) { | |||
457 | critical_value); | 457 | critical_value); |
458 | } | 458 | } |
459 | 459 | ||
460 | 460 | ||
461 | /* check % free space on volume */ | 461 | /* check % free space on volume */ |
462 | } else if (vars_to_check==VPF) { | 462 | } else if (vars_to_check==VPF) { |
463 | 463 | ||
@@ -568,11 +568,11 @@ main(int argc, char **argv) { | |||
568 | result=STATE_WARNING; | 568 | result=STATE_WARNING; |
569 | asprintf (&output_message,_("Warning - NRM Status is suspect!")); | 569 | asprintf (&output_message,_("Warning - NRM Status is suspect!")); |
570 | } | 570 | } |
571 | 571 | ||
572 | asprintf (&output_message,_("OK - NRM Status is good!")); | 572 | asprintf (&output_message,_("OK - NRM Status is good!")); |
573 | } | 573 | } |
574 | 574 | ||
575 | 575 | ||
576 | 576 | ||
577 | /* check packet receive buffers */ | 577 | /* check packet receive buffers */ |
578 | } else if (vars_to_check==UPRB || vars_to_check==PUPRB) { | 578 | } else if (vars_to_check==UPRB || vars_to_check==PUPRB) { |
@@ -827,7 +827,7 @@ main(int argc, char **argv) { | |||
827 | open_files, | 827 | open_files, |
828 | warning_value, | 828 | warning_value, |
829 | critical_value); | 829 | critical_value); |
830 | 830 | ||
831 | 831 | ||
832 | /* check # of abended threads (Netware > 5.x only) */ | 832 | /* check # of abended threads (Netware > 5.x only) */ |
833 | } else if (vars_to_check==ABENDS) { | 833 | } else if (vars_to_check==ABENDS) { |
@@ -914,7 +914,7 @@ main(int argc, char **argv) { | |||
914 | 914 | ||
915 | 915 | ||
916 | 916 | ||
917 | 917 | ||
918 | /* check LRU sitting time in secondss */ | 918 | /* check LRU sitting time in secondss */ |
919 | } else if (vars_to_check==LRUS) { | 919 | } else if (vars_to_check==LRUS) { |
920 | 920 | ||
@@ -977,7 +977,7 @@ main(int argc, char **argv) { | |||
977 | total_cache_buffers, | 977 | total_cache_buffers, |
978 | warning_value, | 978 | warning_value, |
979 | critical_value); | 979 | critical_value); |
980 | 980 | ||
981 | } else if (vars_to_check==DSVER) { | 981 | } else if (vars_to_check==DSVER) { |
982 | 982 | ||
983 | close(sd); | 983 | close(sd); |
@@ -1005,7 +1005,7 @@ main(int argc, char **argv) { | |||
1005 | 1005 | ||
1006 | recv_buffer[sizeof(recv_buffer)-1]=0; | 1006 | recv_buffer[sizeof(recv_buffer)-1]=0; |
1007 | recv_buffer[strlen(recv_buffer)-1]=0; | 1007 | recv_buffer[strlen(recv_buffer)-1]=0; |
1008 | 1008 | ||
1009 | asprintf (&output_message,_("Up %s"),recv_buffer); | 1009 | asprintf (&output_message,_("Up %s"),recv_buffer); |
1010 | 1010 | ||
1011 | } else if (vars_to_check==NLM) { | 1011 | } else if (vars_to_check==NLM) { |
@@ -1024,7 +1024,7 @@ main(int argc, char **argv) { | |||
1024 | } else { | 1024 | } else { |
1025 | result=STATE_CRITICAL; | 1025 | result=STATE_CRITICAL; |
1026 | asprintf (&output_message,_("Module %s is not loaded"),nlm_name); | 1026 | asprintf (&output_message,_("Module %s is not loaded"),nlm_name); |
1027 | 1027 | ||
1028 | } | 1028 | } |
1029 | } else if (vars_to_check==NRMP) { | 1029 | } else if (vars_to_check==NRMP) { |
1030 | 1030 | ||
@@ -1313,7 +1313,7 @@ int process_arguments(int argc, char **argv) { | |||
1313 | 1313 | ||
1314 | int option = 0; | 1314 | int option = 0; |
1315 | static struct option longopts[] = | 1315 | static struct option longopts[] = |
1316 | { | 1316 | { |
1317 | {"port", required_argument,0,'p'}, | 1317 | {"port", required_argument,0,'p'}, |
1318 | {"timeout", required_argument,0,'t'}, | 1318 | {"timeout", required_argument,0,'t'}, |
1319 | {"critical", required_argument,0,'c'}, | 1319 | {"critical", required_argument,0,'c'}, |
@@ -1498,7 +1498,7 @@ int process_arguments(int argc, char **argv) { | |||
1498 | nrmm_name = strdup (optarg+4); | 1498 | nrmm_name = strdup (optarg+4); |
1499 | if (!strcmp(nrmm_name,"")) | 1499 | if (!strcmp(nrmm_name,"")) |
1500 | nrmm_name = strdup ("AVAILABLE_CACHE_MEMORY"); | 1500 | nrmm_name = strdup ("AVAILABLE_CACHE_MEMORY"); |
1501 | 1501 | ||
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | else if (strncmp(optarg,"NRMS",4)==0) { | 1504 | else if (strncmp(optarg,"NRMS",4)==0) { |
@@ -1506,7 +1506,7 @@ int process_arguments(int argc, char **argv) { | |||
1506 | nrms_name = strdup (optarg+4); | 1506 | nrms_name = strdup (optarg+4); |
1507 | if (!strcmp(nrms_name,"")) | 1507 | if (!strcmp(nrms_name,"")) |
1508 | nrms_name = strdup ("USED_SWAP_SPACE"); | 1508 | nrms_name = strdup ("USED_SWAP_SPACE"); |
1509 | 1509 | ||
1510 | } | 1510 | } |
1511 | 1511 | ||
1512 | else if (strncmp(optarg,"NSS1",4)==0) { | 1512 | else if (strncmp(optarg,"NSS1",4)==0) { |
@@ -1514,7 +1514,7 @@ int process_arguments(int argc, char **argv) { | |||
1514 | nss1_name = strdup (optarg+4); | 1514 | nss1_name = strdup (optarg+4); |
1515 | if (!strcmp(nss1_name,"")) | 1515 | if (!strcmp(nss1_name,"")) |
1516 | nss1_name = strdup ("CURRENTBUFFERCACHESIZE"); | 1516 | nss1_name = strdup ("CURRENTBUFFERCACHESIZE"); |
1517 | 1517 | ||
1518 | } | 1518 | } |
1519 | 1519 | ||
1520 | else if (strncmp(optarg,"NSS2",4)==0) { | 1520 | else if (strncmp(optarg,"NSS2",4)==0) { |
@@ -1522,7 +1522,7 @@ int process_arguments(int argc, char **argv) { | |||
1522 | nss2_name = strdup (optarg+4); | 1522 | nss2_name = strdup (optarg+4); |
1523 | if (!strcmp(nss2_name,"")) | 1523 | if (!strcmp(nss2_name,"")) |
1524 | nss2_name = strdup ("CACHEHITS"); | 1524 | nss2_name = strdup ("CACHEHITS"); |
1525 | 1525 | ||
1526 | } | 1526 | } |
1527 | 1527 | ||
1528 | else if (strncmp(optarg,"NSS3",4)==0) { | 1528 | else if (strncmp(optarg,"NSS3",4)==0) { |
@@ -1530,7 +1530,7 @@ int process_arguments(int argc, char **argv) { | |||
1530 | nss3_name = strdup (optarg+4); | 1530 | nss3_name = strdup (optarg+4); |
1531 | if (!strcmp(nss3_name,"")) | 1531 | if (!strcmp(nss3_name,"")) |
1532 | nss3_name = strdup ("CACHEGITPERCENT"); | 1532 | nss3_name = strdup ("CACHEGITPERCENT"); |
1533 | 1533 | ||
1534 | } | 1534 | } |
1535 | 1535 | ||
1536 | else if (strncmp(optarg,"NSS4",4)==0) { | 1536 | else if (strncmp(optarg,"NSS4",4)==0) { |
@@ -1538,7 +1538,7 @@ int process_arguments(int argc, char **argv) { | |||
1538 | nss4_name = strdup (optarg+4); | 1538 | nss4_name = strdup (optarg+4); |
1539 | if (!strcmp(nss4_name,"")) | 1539 | if (!strcmp(nss4_name,"")) |
1540 | nss4_name = strdup ("CURRENTOPENCOUNT"); | 1540 | nss4_name = strdup ("CURRENTOPENCOUNT"); |
1541 | 1541 | ||
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | else if (strncmp(optarg,"NSS5",4)==0) { | 1544 | else if (strncmp(optarg,"NSS5",4)==0) { |
@@ -1546,7 +1546,7 @@ int process_arguments(int argc, char **argv) { | |||
1546 | nss5_name = strdup (optarg+4); | 1546 | nss5_name = strdup (optarg+4); |
1547 | if (!strcmp(nss5_name,"")) | 1547 | if (!strcmp(nss5_name,"")) |
1548 | nss5_name = strdup ("CACHEMISSES"); | 1548 | nss5_name = strdup ("CACHEMISSES"); |
1549 | 1549 | ||
1550 | } | 1550 | } |
1551 | 1551 | ||
1552 | 1552 | ||
@@ -1555,7 +1555,7 @@ int process_arguments(int argc, char **argv) { | |||
1555 | nss6_name = strdup (optarg+4); | 1555 | nss6_name = strdup (optarg+4); |
1556 | if (!strcmp(nss6_name,"")) | 1556 | if (!strcmp(nss6_name,"")) |
1557 | nss6_name = strdup ("PENDINGWORKSCOUNT"); | 1557 | nss6_name = strdup ("PENDINGWORKSCOUNT"); |
1558 | 1558 | ||
1559 | } | 1559 | } |
1560 | 1560 | ||
1561 | 1561 | ||
@@ -1564,7 +1564,7 @@ int process_arguments(int argc, char **argv) { | |||
1564 | nss7_name = strdup (optarg+4); | 1564 | nss7_name = strdup (optarg+4); |
1565 | if (!strcmp(nss7_name,"")) | 1565 | if (!strcmp(nss7_name,"")) |
1566 | nss7_name = strdup ("CACHESIZE"); | 1566 | nss7_name = strdup ("CACHESIZE"); |
1567 | 1567 | ||
1568 | } | 1568 | } |
1569 | 1569 | ||
1570 | 1570 | ||