Skip to content

Conversation

hromojaro
Copy link

The grep pipe was making the exit status of "systemctl status ..." always 0, returning OK to nagios when the service was not running.

Copy link

@antivirtel antivirtel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes it on Linux Mint 18.04.

@kjetilho
Copy link

The real problem is that grep -i Active also matches "inactive", I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants