From b74ea32070492c251943d69a09265463cc9866ed Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 4 Sep 2019 22:54:49 +0200 Subject: Cleaned configuration for PDV infrastructure (incomplete) integrated with my Conky monitoring scripts --- config/pdv/servers/01_commands.cfg | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 config/pdv/servers/01_commands.cfg (limited to 'config/pdv/servers/01_commands.cfg') diff --git a/config/pdv/servers/01_commands.cfg b/config/pdv/servers/01_commands.cfg new file mode 100644 index 0000000..34fcbad --- /dev/null +++ b/config/pdv/servers/01_commands.cfg @@ -0,0 +1,46 @@ +define command { + command_name true + command_line /bin/true +} + +define command { + command_name check_host + command_line $USER2$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 +} + +define command { + command_name check_ip + command_line $USER2$/check_ping -H $ARG1$ -w 100.0,1% -c 500.0,5% -p 5 +} + +define command { + command_name check_remote_ip + command_line $USER2$/check_ping -H $ARG1$ -w 500.0,5% -c 2000.0,20% -p 5 +} + +define command { + command_name check_ntp + command_line $USER2$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -t 1 +} + +define command { + command_name check_ntp_win + command_line $USER2$/check_ntp_win -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -t 1 +} + +define command { + command_name check_mysql + command_line $USER2$/check_mysql -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ +} + +# We should not resolve ourselves (and actually argument looks different). So we go for original here. +define command { + command_name check_dns + command_line $USER1$/check_dns -s $HOSTADDRESS$ -H $ARG1$ -a $ARG2$ +} + +define command { + command_name check_openvpn + command_line $USER1$/check_openvpn -H $HOSTADDRESS$ -p $ARG1$ -n -r $ARG2$ -c +} + -- cgit v1.2.3