Nagios plugins
Keywords: nagios,plugins,perl,snmp,proy

SNMP plugins for Nagios
Last update : April 19 2007 About The general idea of these scripts is to check as many things as possible with snmp (how do you install NRPE on Cisco or AS/400 ?) : disks, memory, load, interface, running procsses, etc... The other idea is to select disks, interfaces, process using regular expressions - it is possible to test more than one disk/int/process in one Nagios check (ex : eth* instead of eth0,eth1,eth2,...) - you only have to provide a unique part of the name to select a disk/int/process (ex : "C:" instead of "C:\ Label: Serial Number xxxxxxx" makes it easy to use on multiple Windows hosts). Most of these scripts can make performance outputs. Enjoy and give me feedback ! All code here is under GPL licence. If you want to be informed when I release new versions, or if you have some advices, feedback, questions, go to the project's sourceforge page : nagios-snmp Please send me your feedback : - Test with embeded Perl - Test on various systems - Bugs, advices, comments, RFE, etc... Thank you ! Run the scripts with '-h' to get help.
Requirements - Perl in /usr/bin/perl - if not run 'perl script' or change the path in the scripts first line - Net::SNMP - file 'utils.pm' in diretory /usr/local/nagios/libexec or change the line "use libs /usr/local/nagios/libexec/" in the scripts Configurations examples Plugins
check_snmp_storage | This scripts checks by snmp (1,2c,3) disks, memory, swap, everthing in hrStorage table. Disk selection can be done by perl regexp on description, index or type to select one or multiple storages. Vérifie par snmp v1 ou v3 (merci à V. Carpentier) l'occupation des disques, mais aussi de la swap, de la mémoire, etc.. tout ce qui est disponible en snmp par la table hrStorage. Les disques sont sélectionnables par expression régulière compatible Perl Details
check_snmp_int | Checks by snmp (1,2c,3) interface state and usage. Interfaces can be selected by regexp. It is possible to check the input/output bandwidth and error rate of the interface. Vérifie par snmp v1 ou v3 l'état des interfaces d'un hôte. Ce script permet d'utiliser des expressions régulières pour sélectionner les interfaces : ex 'eth' va vérifier eth0, eth1, ... Il permet également de lister toutes les interfaces disponibles sur la machine cible (option -v). Details
check_snmp_process | Checks by snmp (1,2c,3) the number (can be 1) of processes matching a perl regexp. The script can also check memory and cpu usage of processes. Vérifie par snmp v1 ou v3 (idem) le nombre de process sur un hôte. Ce script permet d'utiliser des expressions régulières pour sélectionner les process. Il est également possible de vérifier l'utilisation mémoire et CPU de la machine. Il permet également de lister touts les process disponibles sur la machine cible (option -v). Details
check_snmp_load | Checks by snmp (1,2c,3) cpu or average load. Works on Linux, Windows, Cisco, AS400, HP Procurve, LinkProof, Blucoat, Nokia, Fortinet, Netscreen,HP-UX. Vérifie par snmp (1,2c,3) la charge ou l'ocupation CPU. Details.
check_snmp_mem | Checks by snmp (1,2c,3) : - Memory and swap usage on Linux/Net-snmp - Memory usage on cisco routers or Pix - Memory usage on HP Procurve switchs For memory check on other OS (Windows, AS400) see the description page Vérifcation de - l'utilisation mémoire et swap sur Linux/Net-snmp - l'utilisation mémoire sur Cisco (routeurs et Pix). - l'utilisation mémoire sur Switch Hp Procurve. Pour d'autres SE (Windows, AS400), aller à la page de description. Détail
check_snmp_vrrp | Checks the vrrp state of all the interface of a host. You can specify if they must be master or backup. Supported platforms : Nokia IP (vrrp & clustering), Linkproof, Alteon. Verifie l'état vrrp des interfaces d'un host.
check_snmp_cpfw | Checks the state of Checkpoint Firewall-1 modules (SVN, HA, FW, MGMT) and active connexions (tested on NG). Snmp extensions must be activated Vérifie l'état des modules Checkpoint Fw-1 (HA, SVN, MGMT, FW) et les connexions actives. Testé sur NG-AI R55. L'extension SNMP doit être activée sur les modules. Détail
check_snmp_win | Checks windows services state with snmp. Véifie l'état de services Windows par snmp. Détail
check_snmp_css | Checks css services state
check_snmp_env | Checks environemental status (fan, temp, power supply) on Cisco, Nokia, Bluecoat, IronPort, Foundry.
Compatibility matrix :
System | check_snmp_storage | check_snmp_int | check_snmp_process | check_snmp_mem | check_snmp_load
Linux | OK : - '/home', '/var' - 'Swap', 'Real Memory' | OK : - 'eth' - 'ppp' | OK | OK (mem & swap) | OK
Windows | OK : - '^[CDE]:' | OK | OK | NO See check_snmp_storage for virtual mem | OK
Cisco/HP switch | N/A | OK : - 'Giga' : all gigabits - 'Fast.*0.1[1234]' : checks FastEternet0/11 to 0/14. | N/A | OK | OK
AS400 | OK : - '-m RAM -s' to get all RAM - 'System ASP' : Disk | OK | OK | NO See check_snmp_storage | OK
LinkProof | N/A | OK | N/A | N/A | OK
This project is hosted on : Nagios and the Nagios logo are registered trademarks of Ethan Galstad.