Nagios Exchange
  • Home
  • Directory
  • 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
Plugins4387Themes and Skins11Add-ons732Documentation283Graphics 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 Verifying Your Nagios Configuration
0.0 (0)
66.6K
RSS Feed
Newest Listings Updated Listings
Top Contributors
LAMY (7)Julien DESMAREST (6)deskwork_itunes142 (4)Davide Lemma (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More
Home > Dupre
D

Dupre

@fmdupre

User Stats

Favorites0

Views0

Projects2

Check cpu, men and pagin space for AIX
AIX
Check cpu, men and pagin space for AIX
Plugins AIX to monitore : - cpu (cumul,us,sy,id,wa,pc). - mem (srfr,numperm,pctused). - pagin space.
3.7 (3)
100.1K
0
Dupre
TSM check scratchs, reclog and occupation
Tivoli Storage Manager
TSM check scratchs, reclog and occupation
Some scripts to get number of scratch tapes, reclog and occupation for nodes.
0.0 (0)
96.7K
0
Dupre
check_ntp_server_sync

now its perfdata

I changed the pluguin to be perfdata: Now - It returns 0 if the peer has been declared the system peer and lends its variables to the system variables. - It returns 1 if the peer is a survivor, but not among the first six peers sorted by synchronization distance. If the association is ephemeral, it may be demobilized to conserve resources. - If it returns 2 if the peer is discarded as unreachable, synchronized to this server (synch loop) or outrageous synchronization distance. #!/bin/sh # # [email protected] # Checks if the ntp service synchronises to the server time, gives ntp server IP and offset. # Tested on Ubuntu 12.04. /usr/sbin/ntpq -p | tail -1 | cut -c 1 >/tmp/check_ntp_server_sync.tmp ETAT="$(cat /tmp/check_ntp_server_sync.tmp | cut -c 1)" if [ "${ETAT}" == "*" ] then retour_nagios=0 fi if [ "${ETAT}" == "#" ] then retour_nagios=1 fi if [ "${ETAT}" == " " ] then retour_nagios=2 fi HOST=$(/usr/sbin/ntpq -pn | tail -1 | awk '{print $1}' | cut -c 2-) COMMAND=$(/usr/sbin/ntpq -pn | grep -F '*' | awk '{print $1}' | cut -d "*" -f 2) OFFSET=$(/usr/sbin/ntpq -pn | tail -1 | awk '{print $9}') if [ -z "$COMMAND" ] then echo "No synchronization with the time server : ${HOST} offset: ${OFFSET}; | Offset=${OFFSET}s;;" exit ${retour_nagios} else echo "Synchronized with the time server : ${HOST} offset: ${OFFSET} | Offset=${OFFSET}s;;" exit ${retour_nagios} fi

Reviewed 11 years ago

Check Windows Time Offset (check_windows_time.bat)

Do not round numbers

I made the following change to no longer be rounding the numbers a point lower to 1. Do not round numbers for /f "tokens=*" %%t in ('w32tm /stripchart /computer:%time_server% /samples:1 /dataonly') do set output=%%t if not "x%output:0x80072af9=%"=="x%output%" goto host_error if not "x%output:0x800705B4=%"=="x%output%" goto comm_error if not "x%output:error=%"=="x%output%" goto unknown_error if not "x%output:)=%"=="x%output%" goto unknown_error set time_org=%output:*, =% set time=%time_org% rem set time=%time_org:~1,-9%

Reviewed 11 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks