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
Plugins4387Themes and Skins11Add-ons734Documentation283Graphics 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
Clustering and High-Availability Check Microsoft Cluster Server
5.0 (1)
108.3K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Artem Zavyalov
AZ

Artem Zavyalov

@artickl

User Stats

Member Since: October 30, 2012

Favorites0

Views

Projects0

No Projects Found
check_asterisk_ami_v2.sh

Nice plug-in but 2 issues in code

That's nice check, but I have issues with channel check and g729. That's diff of fix if needed: 135c135 CHANNELS=`/bin/echo -e "Action: loginrnUsername: ${AMIUSER}rnSecret: ${AMIPASS}rnEvents: offrnrnAction: Commandrncommand: Core Show ChannelsrnrnAction: Logoffrnrn" | /bin/netcat ${REMOTEHOST} ${AMIPORT} | awk '/active channels/ {print $1}'|tr -d "r"` 294c294 MAXLICTEST=`/bin/echo -e "Action: loginrnUsername: ${AMIUSER}rnSecret: ${AMIPASS}rnEvents: offrnrnAction: Commandrncommand: show g729rnrnAction: Logoffrnrn" | /bin/netcat ${REMOTEHOST} ${AMIPORT} | awk '/encoders/ {print $4}'` 302c302 ONUSE=`/bin/echo -e "Action: loginrnUsername: ${AMIUSER}rnSecret: ${AMIPASS}rnEvents: offrnrnAction: Commandrncommand: show g729rnrnAction: Logoffrnrn" | /bin/netcat ${REMOTEHOST} ${AMIPORT} | awk '/encoders/ {print substr($1, 1, match($1, "/") -1)}'`

Reviewed 13 years ago

Check IO stats of one or all disks

Nice check! Must have!

It's very useful check which must be turned on for every server! PS: but small changes for check_all_diskstat.sh can be applied as soon it not returning a correct exit status for nagios notification. I make some changes which can help somebody else: ################### #!/bin/bash EXITCODE=0 CHK=/usr/lib/nagios/plugins/check_diskstat.sh WARN=${1:-"300,10000,10000"} CRIT=${2:-"400,20000,20000"} for DEVICE in `ls /sys/block`; do if [ -L /sys/block/$DEVICE/device ]; then DEVNAME=$(echo /dev/$DEVICE | sed 's#!#/#g') echo -n "$DEVNAME: " OUTPUT="`$CHK -d $DEVICE -w $WARN -c $CRIT`" STATUS=$? if [ "$EXITCODE" -le "$STATUS" ]; then EXITCODE=$STATUS; fi echo $OUTPUT | sed "s#=#_$DEVNAME=#g" fi done exit $EXITCODE ###################

Reviewed 12 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile