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

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4405Themes and Skins13Add-ons758Graphics 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 How To Create Nagios Plugins With Bash on Ubuntu 12.10
0.0 (0)
38.3K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)deskwork_itunes142 (4)Davide Lemma (3)Chad Columbus (3)Marcin Bednarski (3)
See More
Newest Contributors
Linuxfabrik (1)signalgrid (1)Sanna Glue (2)fisherrs (1)smolinux (1)
See More

Copyright © 2009-2026 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 10 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 12 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile