summaryrefslogtreecommitdiffstats
path: root/plugins/check_mrtgtraf.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-02 16:51:25 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-02 16:51:25 (GMT)
commit234481163fc3caf0cb8b14f601f0f9f1458f97f5 (patch)
treee8debce30a2722f5f4dc5e33faf54c9915dd022f /plugins/check_mrtgtraf.c
parentdf1bd0c89ff63de64ee630e0025389651947020c (diff)
downloadmonitoring-plugins-234481163fc3caf0cb8b14f601f0f9f1458f97f5.tar.gz
More internationalization work
new usage4 function to permit localisation of think like check_ssh: xxxxx git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@979 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mrtgtraf.c')
-rw-r--r--plugins/check_mrtgtraf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index 5bbce50..24ccaa9 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -63,12 +63,12 @@ main (int argc, char **argv)
63 char outgoing_speed_rating[8]; 63 char outgoing_speed_rating[8];
64 64
65 if (process_arguments (argc, argv) != TRUE) 65 if (process_arguments (argc, argv) != TRUE)
66 usage (_("check_ldap: could not parse arguments\n")); 66 usage4 (_("Could not parse arguments"));
67 67
68 /* open the MRTG log file for reading */ 68 /* open the MRTG log file for reading */
69 fp = fopen (log_file, "r"); 69 fp = fopen (log_file, "r");
70 if (fp == NULL) 70 if (fp == NULL)
71 usage (_("Unable to open MRTG log file\n")); 71 usage4 (_("Unable to open MRTG log file"));
72 72
73 line = 0; 73 line = 0;
74 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) { 74 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) {
@@ -110,7 +110,7 @@ main (int argc, char **argv)
110 110
111 /* if we couldn't read enough data, return an unknown error */ 111 /* if we couldn't read enough data, return an unknown error */
112 if (line <= 2) 112 if (line <= 2)
113 usage (_("Unable to process MRTG log file\n")); 113 usage4 (_("Unable to process MRTG log file"));
114 114
115 /* make sure the MRTG data isn't too old */ 115 /* make sure the MRTG data isn't too old */
116 time (&current_time); 116 time (&current_time);