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

Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now

Plugins4379Themes and Skins11Addons732Documentation283Graphics 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
IBM San Volume Controller Check IBM Storwize V7000 Unified / SONAS VFS Warnings
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (4)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)TcoUpLoad (1)
See More
Newest Contributors
Community Member (51)Davide Lemma (4)Alarig Le Lay (1)Penn Rabb (1)Sean Falzon (1)
See More
Home > Vahid Hedayati
VH

Vahid Hedayati

@vahidh

User Stats

Favorites1

Views7464

Projects12

snmp_ethernet_traffic
SNMP
snmp_ethernet_traffic
This will return the network tcp throughput via snmp ./network-throughput server snmp_community_string lo_In:459368179 lo_Out:459368179 eth0_In:840523177 eth0_Out:1893964244 eth1_In:443203265 bond0_In:1283726442 bond0_Out:1893964244 |lo_In=459368179o;;;0 lo_Out=459368179o;;;0 eth0_In=840523177o;;;0 eth0_Out=1893964244o;;;0 eth1_In=443203265o;;;0 bond0_In=1283726442o;;;0…
0.0 (0)
38.7K
0
Vahid Hedayati
GPL
netcat-port-check
* TCP and UDP (Generic)
netcat-port-check
Nagios telnet to a port check (Linux) ./telnet-check.sh localhost 80 Connection to localhost 80 port [tcp/http] succeeded!|time=0.011741s;;;0 ./telnet-check.sh localhost 22 Connection to localhost 22 port…
0.0 (0)
45.7K
0
Vahid Hedayati
GPL
check_http_content (updated)
Websites, Forms and Transactions
check_http_content (updated)
check_http_content-updated- Nagios script by CapSiDE SL - has been updated to generate graphs for pnp4nagios #------------------------------------------------------------------------------ # Updated by Vahid Hedayati April 2013 - (improves…
2.5 (2)
46.8K
0
Vahid Hedayati
GPL
check_mysql_wrapper
MySQL
check_mysql_wrapper
hack for nagios check_mysql binary - This wraps the information sent back into a format that then produces graphs from the output When executing check_mysql…
4.0 (1)
40.6K
0
Vahid Hedayati
GPL
check_TomcatApplication updated
Apache Tomcat
check_TomcatApplication updated
This is an updated version of : http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_TomcatApplication/details The reason for my update was the script was very useful but did not generated any graphical…
3.2 (5)
47.1K
0
Vahid Hedayati
GPL
nagios fail over
Utilities
nagios fail over
nagios-failover script to failover nagios servers if and when their down - automtically done via bash script that will require some ground work to be…
1.7 (3)
43.9K
1
Vahid Hedayati
GPL
Disabled host and service notification parser – updated for latest nagios including auto enable of hosts/services
* Notification Managers
Disabled host and service notification parser – updated for latest nagios including auto enable of hosts/services
This is an updated version of an all in one script that does a little bit more than original project: http://exchange.nagios.org/directory/Addons/Notifications/*-Notification-Managers/Disabled-host-and-service-notification-parser/details Script looks at nagios…
4.0 (1)
43.9K
0
Vahid Hedayati
nagalert
Scheduled Downtime
nagalert
If you require an easy way of disabling nagios alerts temporarily whilst carrying out work then you can either roll this script out to all…
0.0 (0)
44.3K
0
Vahid Hedayati
GPL
snmp_remote_swap
Memory
snmp_remote_swap
This checks to ensure there is enough swap available ./snmp_remote_swap localhost public 100 where localhost is server public is snmp pass 100 is when swap…
0.0 (0)
38.9K
0
Vahid Hedayati
GPL
snmp_remote_disk_auto
File System
snmp_remote_disk_auto
This is taken from an existing script but ammended to auto discover paritions ./snmp_remote_disk_auto localhost public 100 |-|ALL DISKS OK: / (1415 MB) /var (5657…
0.0 (0)
39.7K
0
Vahid Hedayati
GPL
snmp_remote_memory
Memory
snmp_remote_memory
This uses snmp to check the memory of a Linux host: Requires ./snmp_remote_memory localhost public 100 RAM OK: - Total: 2048 - Used: 2360 Limit:…
0.0 (0)
41.2K
0
Vahid Hedayati
snmp_remote_load
CPU Usage and Load
snmp_remote_load
# This script takes: # -H -l -p # Once given a hostname and community string with or without specific load limit # with no…
0.0 (0)
42.3K
0
Vahid Hedayati
GPL
Disabled host and service notification parser

Modifications for 3.5 as well as automated enabling

I will re-release this script with all of its requirements: This script will convert output to html email and provide a html link to enable service/host #!/bin/bash DATE=$(date +%c) NAGIOS_STATUS="/var/nagios/status.dat" WORKING_DIR="/usr/local/bin" SUBJECT="Disabled Nagios notifications *** $DATE" from="[email protected]" SENDMAIL_FOLDER="$WORKING_DIR/sendmail" RCPT="[email protected]" BODY="$HOST $SERVICE" userpass="nagiosadmin:password" nagios_server="nagios.server.yourdomain.com" function host_status() { awk -v user=$userpass -v server=$nagios_server 'BEGIN { header=0; FS="="; } /^[[:space:]]*info {[[:space:]]*$/ { codeblock="info"; } /^[[:space:]]*program {[[:space:]]*$/ { codeblock="program"; } /^[[:space:]]*hoststatus {[[:space:]]*$/ { codeblock="host"; host_name=""; notifications_enabled=""; } /^[[:space:]]*service {[[:space:]]*$/ { codeblock="service"; } /^[[:space:]]*host_name=/ { host_name=$2; } /^[[:space:]]*notifications_enabled=/ { notifications_enabled=$2; } /^[[:space:]]*}[[:space:]]*$/ { if (codeblock=="host" && notifications_enabled=="0") { if (header==0) { print "The following hosts have notifications disabled:"; header=1; } print ""host_name"ENABLE NOTIFICATION"; } } ' } function service_status() { awk -v user=$userpass -v server=$nagios_server 'BEGIN { header=0; FS="="; } /^[[:space:]]*info {[[:space:]]*$/ { codeblock="info"; } /^[[:space:]]*program {[[:space:]]*$/ { codeblock="program"; } /^[[:space:]]*hoststatus {[[:space:]]*$/ { codeblock="host"; } /^[[:space:]]*servicestatus {[[:space:]]*$/ { codeblock="service"; host_name=""; service_description=""; notifications_enabled=""; } /^[[:space:]]*host_name=/ { host_name=$2; } /^[[:space:]]*service_description=/ { service_description=$2; } /^[[:space:]]*notifications_enabled=/ { notifications_enabled=$2; } /^[[:space:]]*}[[:space:]]*$/ { if (codeblock=="service" && notifications_enabled=="0") { if (header==0) { print "The following services have notifications turned off"; header=1; } print ""service_description " on " host_name"ENABLE SERVICE NOTIFICATION"; } } ' } HOST=$(/bin/cat $NAGIOS_STATUS| host_status) SERVICE=$(/bin/cat $NAGIOS_STATUS |service_status) if [[ -n $HOST || -n $SERVICE ]]; then cd $SENDMAIL_FOLDER;./sendmail.pl "$WORKING_DIR" "$from" "$RCPT" "$SUBJECT:" "$SERVICE$HOST" else echo "Nothing is disabled..." fi ---------------------- sendmail.pl --------------------- #!/usr/bin/perl use MIME::Lite; use Net::SMTP; $spath=$ARGV[0]; $from=$ARGV[1]; $to=$ARGV[2]; $subject=$ARGV[3]; $body=$ARGV[4]; $msg = MIME::Lite->new( From =>$from, To =>$to, ##Cc =>'[email protected], [email protected]', Subject =>$subject, Type =>'multipart/mixed' ); $msg->attach( Type =>'text/html; charset="iso-8859-1"', Data =>$body ); $mail_host="localhost"; MIME::Lite->send('smtp', $mail_host, Timeout=>60); $msg->send;

Reviewed 12 years ago

check_long_procs
Linux
check_long_procs
Check for long running processes and alert if in case the process is running more than 24 hours. Usage: check_long_procs -c -p -n [-v] [-h]…
0.0 (0)
42.8K
1
Ajoy Bharath
GPL

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

Privacy PolicyTerms of UseTrademarks