summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_dhcp.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-10-25 20:43:04 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2007-10-25 20:43:04 +0000
commitcf0dee616af1f417daa76e746dfaa50947009fac (patch)
tree58e5ae5ef39f76bce53c7b09a49dfbaf0324cfac /plugins-root/check_dhcp.c
parent745b58a68bf2e60a6652475c56a1cff0aa6ebf9f (diff)
downloadmonitoring-plugins-cf0dee616af1f417daa76e746dfaa50947009fac.tar.gz
Automatically update website with --help output. Cosmetic
fixes for some help output git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1810 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r--plugins-root/check_dhcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index c6e5af8a..bc2f4bbe 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -269,9 +269,6 @@ int main(int argc, char **argv){
269 int dhcp_socket; 269 int dhcp_socket;
270 int result = STATE_UNKNOWN; 270 int result = STATE_UNKNOWN;
271 271
272 /* this plugin almost certainly needs root permissions. */
273 np_warn_if_not_root();
274
275 setlocale (LC_ALL, ""); 272 setlocale (LC_ALL, "");
276 bindtextdomain (PACKAGE, LOCALEDIR); 273 bindtextdomain (PACKAGE, LOCALEDIR);
277 textdomain (PACKAGE); 274 textdomain (PACKAGE);
@@ -280,6 +277,9 @@ int main(int argc, char **argv){
280 usage4 (_("Could not parse arguments")); 277 usage4 (_("Could not parse arguments"));
281 } 278 }
282 279
280 /* this plugin almost certainly needs root permissions. */
281 np_warn_if_not_root();
282
283 /* create socket for DHCP communications */ 283 /* create socket for DHCP communications */
284 dhcp_socket=create_dhcp_socket(); 284 dhcp_socket=create_dhcp_socket();
285 285