Skip to content

check_service: add count of service(s) to the top syntax#372

Open
inqrphl wants to merge 2 commits intomainfrom
fix-check-service-syntax
Open

check_service: add count of service(s) to the top syntax#372
inqrphl wants to merge 2 commits intomainfrom
fix-check-service-syntax

Conversation

@inqrphl
Copy link
Copy Markdown
Contributor

@inqrphl inqrphl commented Apr 28, 2026

ensures that that even when check result is warning/critical it will include the count:

before: ./snclient run check_service service=cron "warning=count gt 0" WARNING - |'cron'=4 'cron rss'=1605632B;;;0 'cron vms'=18137088B;;;0 'cron cpu'=0%;;;0 'cron tasks'=1;;;0

after: ./snclient run check_service service=cron "warning= count gt 0" WARNING - 1 service(s) |'cron'=4 'cron rss'=1605632B;;;0 'cron vms'=18137088B;;;0 'cron cpu'=0%;;;0 'cron tasks'=1;;;0

Ahmet Oeztuerk added 2 commits April 29, 2026 00:05
ensures that that even when check result is warning/critical it will include the count:

before:
./snclient run check_service service=cron "warning=count gt 0"
WARNING -  |'cron'=4 'cron rss'=1605632B;;;0 'cron vms'=18137088B;;;0 'cron cpu'=0%;;;0 'cron tasks'=1;;;0

after:
./snclient run check_service service=cron "warning= count gt 0"
WARNING - 1 service(s)  |'cron'=4 'cron rss'=1605632B;;;0 'cron vms'=18137088B;;;0 'cron cpu'=0%;;;0 'cron tasks'=1;;;0
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.

1 participant