Nous on utilise la commande suivante:
$USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$ -a $USER$:$PASSWORD$ -u $ARG2$ -w 5 -c 20
check_http est en natif avec nagios.
1 2 3 4 5 6
| Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
[-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
[-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string]
[-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string]
[-k string] [-S] [-C <age>] [-T <content-type>] |
La commande ne marche pas avec ton type d'authentification ?
Partager