This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

snmp-script.txt - Custom SNMP checks with email notification

This is the script I use for two application component monitors - NFS Check (makes sure all NFS mounts are mounted), and Inode Check (alerts if over 85% inode usage) but can be customized for many different things.

I have an application monitor and an alert that will go off if there is an issue (solarwinds SNMP check only allows for a number to be returned so 0 is Up and 1 is critical.) The script will then (if the result is 1), send an email from the local server letting us know which mount is not mounted or which has inode usage above 85%.

The /etc/snmp/snmpd.conf has the following at the end:

extend inode /root/bin/cs-snmp iNode

extend nfs /root/bin/cs-snmp nfsCheck

Parents
  • My application monitor template has the following component monitors:

    Inode check - grabs the value of

    .1.3.6.1.4.1.8072.1.3.2.3.1.1.5.105.110.111.100.101

    NFS check - grabs the value of

    .1.3.6.1.4.1.8072.1.3.2.3.1.1.3.110.102.115
Reply
  • My application monitor template has the following component monitors:

    Inode check - grabs the value of

    .1.3.6.1.4.1.8072.1.3.2.3.1.1.5.105.110.111.100.101

    NFS check - grabs the value of

    .1.3.6.1.4.1.8072.1.3.2.3.1.1.3.110.102.115
Children
No Data