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_ssh.cfg | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 config/pdv/servers/01_commands_ssh.cfg (limited to 'config/pdv/servers/01_commands_ssh.cfg') diff --git a/config/pdv/servers/01_commands_ssh.cfg b/config/pdv/servers/01_commands_ssh.cfg new file mode 100644 index 0000000..db962b8 --- /dev/null +++ b/config/pdv/servers/01_commands_ssh.cfg @@ -0,0 +1,54 @@ +define command { + command_name check_ssh_disk + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$" +} + +define command { + command_name check_ssh_all_disks + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_disk -w $ARG1$ -c $ARG2$ -A -X fuse.gvfs-fuse-daemon -X tmpfs -X devtmpfs -X nfs -X fuse.glusterfs" +} + +define command { + command_name check_ssh_load + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_load -w $ARG1$ -c $ARG2$" +} + +define command { + command_name check_ssh_procs + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$" +} + +define command { + command_name check_ssh_users + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_users -w $ARG1$ -c $ARG2$" +} + +define command { + command_name check_ssh_swap + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_swap -w $ARG1$ -c $ARG2$" +} + +define command { + command_name check_ssh_mem + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_mem -u -C -w $ARG1$ -c $ARG2$" +} + +define command { + command_name check_ssh_mysql + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_mysql -H 127.0.0.1 -u root" +} + +define command { + command_name check_ssh_pgsql + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_pgsql -l nagios -p iosnag -d $ARG1$" +} + +#define command { +# command_name check_ssh_ipmi +# command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "$USER2$/check_ipmi_sensor1 -H localhost -T $ARG1$" +#} + +define command { + command_name check_ssh_ibnode + command_line $USER2$/check_by_ssh -H $HOSTADDRESS$ -C "/opt/scripts/nagios_ib_node.sh $ARG1$" +} -- cgit v1.2.3