Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
/ check_remote_json Public archive

Simple Nagios/Icinga check for remote query with JSON output

Notifications You must be signed in to change notification settings

Scout24/check_remote_json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Nagios/Icinga check for remote query with JSON output

This project is DEPRECATED and not any longer supported

Did you every try to use check_http to check a web service that talks JSON? I did and it is no fun. This check queries a remote URL and expects JSON output with a status and message field, for example like this:

{
    "message": "",
    "status": 0,
}

Or, to indicate a error situation:

{
    "message": "Foo is really getting the bar up today, please fix the baz.",
    "status": 2,
}

In fact, any status that is not 0 will lead to a critical result (exit code 2) of the check.

Usage

Simply call check_remote_json with the URL to check. Optionally use -v to always see the full response body. Example using the vSphere time sync check available in Lab Manager Light:

$ check_remote_json http://some.host.name/lml/hostdatetime.pl

About

Simple Nagios/Icinga check for remote query with JSON output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages