diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-04 22:54:49 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-04 22:54:49 +0200 |
commit | b74ea32070492c251943d69a09265463cc9866ed (patch) | |
tree | 080bd9c8eb0b53491e118bdfed29f7cd61126bfe /config/pdv/servers/01_commands_ssh.cfg | |
download | pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.tar.gz pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.tar.bz2 pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.tar.xz pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.zip |
Cleaned configuration for PDV infrastructure (incomplete) integrated with my Conky monitoring scriptsHEADmaster
Diffstat (limited to 'config/pdv/servers/01_commands_ssh.cfg')
-rw-r--r-- | config/pdv/servers/01_commands_ssh.cfg | 54 |
1 files changed, 54 insertions, 0 deletions
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$" +} |