Check Host & Service status from Nagios via JSON RPC.
New in version 2015.8.0.
salt.modules.nagios_rpc.
host_status
(hostname=None, **kwargs)¶Check status of a particular host By default statuses are returned in a numeric format.
Parameters:
Returns: | 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
salt.modules.nagios_rpc.
service_status
(hostname=None, service=None, **kwargs)¶Check status of a particular service on a host on it in Nagios. By default statuses are returned in a numeric format.
Parameters:
Returns: | 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 February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy