Check Host & Service status from Nagios via JSON RPC.
New in version 2015.8.0.
Check status of a particular host By default statuses are returned in a numeric format.
Parameters:
The hostname to check the status of the service in Nagios.
Turn to false in order to return status in text format ('OK' instead of 0, 'Warning' instead of 1 etc)
status: 'OK', 'Warning', 'Critical' or 'Unknown'
CLI Example:
salt '*' nagios_rpc.host_status hostname=webserver.domain.com
salt '*' nagios_rpc.host_status hostname=webserver.domain.com numeric=False
Check status of a particular service on a host on it in Nagios. By default statuses are returned in a numeric format.
Parameters:
The hostname to check the status of the service in Nagios.
The service to check the status of in Nagios.
Turn to false in order to return status in text format ('OK' instead of 0, 'Warning' instead of 1 etc)
status: 'OK', 'Warning', 'Critical' or 'Unknown'
CLI Example:
salt '*' nagios_rpc.service_status hostname=webserver.domain.com service='HTTP'
salt '*' nagios_rpc.service_status hostname=webserver.domain.com service='HTTP' numeric=False
Generated on April 30, 2024 at 17:51:03 UTC.
You are viewing docs for the latest stable release, 3007.0. Switch to docs for the previous stable release, 3006.8, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy