Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4394Themes and Skins11Add-ons743Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs Using Nagios to Monitor Your Clusters’ Health
0.0 (0)
70K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)Yoann LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Claudio Kuenzler (2)
See More
Newest Contributors
RavuAlHemio (1)sowoii (1)Nitatemic (1)cjdepaul (1)ixs (1)
See More

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Peter Vugs
PV

Peter Vugs

@p-thor

User Stats

Member Since: July 24, 2014

Favorites0

Views

Projects0

No Projects Found
search.cgi

Very good but seems to have a bug

I really like the regex of it all. Searches most things. But I have found that when the host alias is missing it does not work properly. Also the search does a grep -A INT so if the configuration is less default and places the grep'ed variable outside of the lookahead it will fail also. example: grep -EA2 "define[ ]+host[ ]+" /path/to/objects.cache | grep -Eo "(host_name|alias).+" if alias is on position 3+ it will miss it. Perhaps first grep all the required parameters and then split the ones you want. Something like below. example: grep "(host_name|alias|define[ ]+host[ ]+).+" |grep -EA2 "define[ ]+host[ ]+" /path/to/objects.cache | grep -Eo "(host_name|alias).+"

Reviewed 9 years ago

check_haproxy_backend

works well with one minor change

This works well espexially because it has perf data. I only had to change a minor thing becaus eit matched the wrong line due to matching grep. if you grep "something" it would match "not-something" as well. so i changed: my @line = grep(/$proxy,BACKEND,/, @csv); to: my @line = grep(/^$proxy,BACKEND,/, @csv); regards, Peter

Reviewed 11 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile