https://github.com/shift/nagios-check-redis
Nagios check_redis in Ruby
https://github.com/shift/nagios-check-redis
Last synced: 6 months ago
JSON representation
Nagios check_redis in Ruby
- Host: GitHub
- URL: https://github.com/shift/nagios-check-redis
- Owner: shift
- License: other
- Created: 2010-04-16T13:22:24.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T10:09:04.000Z (almost 3 years ago)
- Last Synced: 2024-04-15T14:13:08.650Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 31
- Watchers: 3
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# Nagios Redis Check
commands.cfg:
define command {
command_name check_redis
command_line /path_to_nagios_checks/check_redis.rb $ARG1$ -H $HOSTADDRESS$ -p $ARG2$ -P $ARG3$ -t $ARG4$ -w $ARG5$ -c $ARG6$
}define command {
command_name check_redis_key
command_line /path_to_nagios_checks/check_redis.rb $ARG1$ -K -D $ARG7$ -H $HOSTADDRESS$ -p $ARG2$ -P $ARG3$ -t $ARG4$ -w $ARG5$ -c $ARG6$
}define command {
command_name check_redis_and_graph
command_line /path_to_nagios_checks/check_redis.rb $ARG1$ -H $HOSTADDRESS$ -p $ARG2$ -P $ARG3$ -t $ARG4$ -w $ARG5$ -c $ARG6$ -G $ARG7$ -O $ARG8$ -M $ARG9$
}define command {
command_name check_redis_and_graph_elapsed_time
command_line /path_to_nagios_checks/check_redis.rb $ARG1$ -H $HOSTADDRESS$ -p $ARG2$ -P $ARG3$ -t $ARG4$ -w $ARG5$ -c $ARG6$ -G $ARG7$ -O $ARG8$ -M $ARG9$ -R
}services.cfg:
define service {
check_command check_redis!used_memory!6379!password!5!100000!1048576!2097152
...
}define service {
check_command check_redis_key!key!6379!password!5!100000!1048576!2097152!0
...
}define service {
check_command check_redis_and_graph!used_memory!6379!password!5!100000!1048576!2097152!graphite.example.com!2003!system.foo
...
}define service {
check_command check_redis_and_graph_elapsed_time!used_memory!6379!password!5!100000!1048576!2097152!graphite.example.com!2003!system.foo
...
}