Back to index

nagios-plugins  1.4.16
Functions
check_timeout.c File Reference
#include <stdio.h>
#include <unistd.h>

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 25 of file check_timeout.c.

                               {

       if(argc==1){
              printf("Incorrect arguments supplied\n");
              printf("\n");
              printf("Plugin timeout tester for Nagios\n");
              printf("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n");
              printf("Last Modified: 01-10-2000\n");
              printf("License: GPL\n");
              printf("\n");
              printf("Usage: %s <something>\n",argv[0]);
              printf("\n");
              printf("Options:\n");
              printf(" <something> = Anything at all...\n");
              printf("\n");
              printf("Notes:\n");
              printf("This 'plugin' doesn't do anything.  It is designed to never exit and therefore\n");
              printf("provides an easy way of testing service and host check timeouts in Nagios.\n");
              printf("\n");
              return 0;
                }

       /* let's never leave here, okay? */
       while(1)
              sleep(1);

       return 0;
        }