-
Notifications
You must be signed in to change notification settings - Fork 0
Batch acknowledge service/host problems for NAGIOS CORE
License
mlewissmith/nagioscore-batch_ack
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
nagioscore-batch_ack 0.1.4 NAME nagioscore-batch_ack - Batch acknowledge service/host problems for NAGIOS CORE SYNOPSIS nagioscore-batch_ack [*OPTIONS*] nagioscore-batch_ack --help | --options | --version | --man DESCRIPTION Batch acknowledge service/host problems for NAGIOS CORE. Tested with NAGIOS CORE 4.x. OPTIONS --problem-hosts, --no-problem-hosts, --ph, --no-ph Select problem hosts. Default on. --problem-services, --no-problem-services, --ps, --no-ps Select problem services. Default on. --problems, --no-problems, --pp, --no-pp Shortcut for --[no-]problem-hosts --[no-]problem-services --hosts *REGEXP*, --hh *REGEXP* Select only hosts matching *REGEXP*. --hostgroups *REGEXP*, --hg *REGEXP* Select only hosts which are members of hostgroup *NAME*. --services *REGEXP*, --ss *REGEXP* Select only services matching *REGEXP*. --servicegroups *REGEXP*, --sg *REGEXP* Select only services which are members of servicegroup *REGEXP*. --ignore-problem-hosts, --no-ignore-problem-hosts, --iph, --no-iph Ignore service problems on problem hosts. Default on. --ignore-acknowledged, --no-ignore-acknowledged, --ia, --no-ia Ignore host or service problems which have already been acknowledged. Default on. --ignore-ok, --no-ignore-ok, --iok, --no-iok Ignore hosts or services which have no problems. --acknowledge, --no-acknowledge, -a, --no-a Acknowledge selected problems. Default off. --all Shortcut for --no-ignore-acknowledged --no-ignore-ok. --message *TEXT*, -m *TEXT* Acknowledgement message. Requires --acknowledge. Default *prompt*. --message-author *USERNAME*, -U *USERNAME* Specify the author of the acknowledgement message. Requires --acknowledge. Default *current user*. --colour, --no-colour, --color, --no-color Default on. Nagios Files --status_file *FILE* Default "/var/spool/nagios/status.dat". --objects_cache_file *FILE* Default "/var/spool/nagios/objects.cache". --command_file *FILE* Default "/var/spool/nagios/cmd/nagios.cmd". Help --help, -h --options, -H --version, -V --man,-M Help in varying degrees of verbosity. EXAMPLES $ nagioscore-batch_ack Show all outstanding problems, eg: [DOWN] | hostname1 | hostcheck_ping | CRITICAL - Host Unreachable (...) [DOWN] | hostname2 | hostcheck_ping | PING CRITICAL - Packet loss = 100% [WARN] | hostname3 | check_load | WARNING - load average per CPU: 1.05, 1.02, 1.03 [CRIT] | hostname4 | check_load | CRITICAL - load average per CPU: 1.86, 1.96, 2.01 ... $ nagioscore-batch_ack -a Acknowledge all outstanding problems, prompt for comment for each acknowledgement. $ nagioscore-batch_ack -U *username* -a -m "*COMMENT*" Acknowledge all outstanding problems as user *username* with acknowledgement message *COMMENT*. $ nagioscore-batch_ack --hg desktops -a -m "*COMMENT*" Acknowledge all outstanding problems on hosts in hostgroup desktops. $ nagioscore-batch_ack --no-ignore-ok --no-ignore-acknowledged $ nagioscore-batch_ack --noiok --noia $ nagioscore-batch_ack --all Show all host and service check statuses.
About
Batch acknowledge service/host problems for NAGIOS CORE