We have a number of servers and I would like to know if there is a way to count the number of active checks from the command line or via API so we can get MSP pricing and to be able to keep track of tracks to avoid any surprises if we move to MSP licensing.
I am looking for a shell command that returns the number of active checks.
OR
An API call that will return the number of active checks.
THanks!
Naigos automate count of checks for licensing
Re: Naigos automate count of checks for licensing
Hi
Please go to Help, and under API docs in the left-hand menu select System Reference.
The Get system/status returns the number of active checks and the number of passive
checks:
{
"instance_id": "1",
"instance_name": "localhost",
"status_update_time": "2015-09-21 01:48:14",
"program_start_time": "2015-09-20 12:21:20",
"program_run_time": "48419",
"program_end_time": "0000-00-00 00:00:00",
"is_currently_running": "1",
"process_id": "105075",
"daemon_mode": "1",
"last_command_check": "1969-12-31 18:00:00",
"last_log_rotation": "2015-09-21 00:00:00",
"notifications_enabled": "1",
"active_service_checks_enabled": "1",
"passive_service_checks_enabled": "1",
"active_host_checks_enabled": "1",
"passive_host_checks_enabled": "1",
"event_handlers_enabled": "1",
"flap_detection_enabled": "1",
"process_performance_data": "1",
"obsess_over_hosts": "0",
"obsess_over_services": "0",
"modified_host_attributes": "0",
"modified_service_attributes": "0",
"global_host_event_handler": "xi_host_event_handler",
"global_service_event_handler": "xi_service_event_handler"
}
Please let us know if that is what you're looking for or if you have any
other questions.
Thanks
Please go to Help, and under API docs in the left-hand menu select System Reference.
The Get system/status returns the number of active checks and the number of passive
checks:
{
"instance_id": "1",
"instance_name": "localhost",
"status_update_time": "2015-09-21 01:48:14",
"program_start_time": "2015-09-20 12:21:20",
"program_run_time": "48419",
"program_end_time": "0000-00-00 00:00:00",
"is_currently_running": "1",
"process_id": "105075",
"daemon_mode": "1",
"last_command_check": "1969-12-31 18:00:00",
"last_log_rotation": "2015-09-21 00:00:00",
"notifications_enabled": "1",
"active_service_checks_enabled": "1",
"passive_service_checks_enabled": "1",
"active_host_checks_enabled": "1",
"passive_host_checks_enabled": "1",
"event_handlers_enabled": "1",
"flap_detection_enabled": "1",
"process_performance_data": "1",
"obsess_over_hosts": "0",
"obsess_over_services": "0",
"modified_host_attributes": "0",
"modified_service_attributes": "0",
"global_host_event_handler": "xi_host_event_handler",
"global_service_event_handler": "xi_service_event_handler"
}
Please let us know if that is what you're looking for or if you have any
other questions.
Thanks