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
Plugins4399Themes and Skins13Add-ons753Documentation283Graphics 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
Network Connections, Stats and Bandwidth Check And Graph DataOut From Network Interface
1.0 (1)
62.5K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)Julien DESMAREST (6)Chad Columbus (4)Davide Lemma (4)deskwork_itunes142 (4)
See More
Newest Contributors
smolinux (1)juanfertor (1)zsoltaire (1)RavuAlHemio (1)sowoii (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Mihail Cretu
MC

Mihail Cretu

@TGVirus

User Stats

Member Since: April 19, 2015

Favorites0

Views

Projects0

No Projects Found
NOD32 Update Mirror Version Checker

not the propper way to submit, but made changed and they work

#!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PROGNAME=`basename $0` PROGPATH=`echo $0 | sed -e 's,[\/][^\/][^\/]*$,,'` REVISION=`echo '$Revision: 1.1 $' | sed -e 's/[^0-9.]//g'` UPDATEVERFILE="/tmp/nod32updatever.$$" NOD32HOST=$1 NOD32PORT=$2 . $PROGPATH/utils.sh print_usage() { echo "Usage: $PROGNAME HOST PORT [-v]" echo "Parameter order must be identical!" } print_help() { print_revision $PROGNAME $REVISION echo "" print_usage echo "" echo "This plugin checks wether NOD32 Update Mirror is up to date or not." echo "" support exit 0 } case "$1" in --help) print_help exit 0 ;; -h) print_help exit 0 ;; --version) print_revision $PROGNAME $REVISION exit 0 ;; -V) print_revision $PROGNAME $REVISION exit 0 ;; *) cd /tmp # Grab NOD32 update version wget -q --timeout=7 http://$NOD32HOST:$NOD32PORT/update.ver -O $UPDATEVERFILE WGETSTATUS=$? # Figure out if we have any alarms export CURRENTDATE=`date +%Y%m%d` export ALARMVAL=`cat $UPDATEVERFILE | grep -c "$CURRENTDATE"` UPDATESTATUS=`cat $UPDATEVERFILE | grep ENGINE2 -A 13 | grep version= | cut -f2 -d=` VERSION=`cat $UPDATEVERFILE | grep ENGINE2 -A 13 | grep 'version=' | cut -f2 -d= | cut -f1 -d' '` VERSIONDATE=`cat $UPDATEVERFILE | grep ENGINE2 -A 13 | grep 'version=' | cut -f2 -d= | cut -f2 -d' ' | tr -d '()'` # No more data needed, remove our temporary file rm $UPDATEVERFILE if test "$3" = "-v" -o "$3" = "--verbose"; then echo "${UPDATESTATUS}" echo "${ALARMVAL}" fi if test ${WGETSTATUS} -eq 1; then echo "Unable to get status from http://${NOD32HOST}:${NOD32PORT}/ - check Host and Port settings in $0?" exit -1 fi if test ${ALARMVAL} -eq 0; then echo "NOD32 UPDATE CRITICAL - $UPDATESTATUS" exit 2 else echo "NOD32 UPDATE VERSION $VERSION OK - $UPDATESTATUS" exit 0 fi ;; esac

Reviewed 11 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile