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.cfg | |
download | pdvnagios-master.tar.gz pdvnagios-master.tar.bz2 pdvnagios-master.tar.xz pdvnagios-master.zip |
Cleaned configuration for PDV infrastructure (incomplete) integrated with my Conky monitoring scriptsHEADmaster
Diffstat (limited to 'config/pdv/servers/01_commands.cfg')
-rw-r--r-- | config/pdv/servers/01_commands.cfg | 46 |
1 files changed, 46 insertions, 0 deletions
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 +} + |