Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Parses the nagios command file, and simply prints the resulting json from a Docker container

Notifications You must be signed in to change notification settings

Magnetme/nagios-parser-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

nagios-parser-docker

In order to read the status of our nagios servers, we use the following script, which runs within Docker.

This prevents us having to pollute our servers with specific versions of node for just this tool. Effectively the container runs as a script.

You can start it as follows docker run -v /var/cache/nagios3/:/opt/nagios magnetme/nagios-parser-docker:latest. In our case we simply pipe the resulting data through jq in order to parse some information.

An example to determine whether notifications are inadvertently switched off, one can use the following code

docker run \
    -v /var/cache/nagios3/:/opt/nagios \
    magnetme/nagios-parser-docker:latest \
    | jq .programstatus[].enable_notifications

About

Parses the nagios command file, and simply prints the resulting json from a Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published