2016-12-04 10:31:25 +00:00
< HTML >
< HEAD >
< TITLE > Nagios plugins< / TITLE >
< META NAME = "Keywords" CONTENT = "nagios,plugins,perl,snmp,proy" >
< STYLE type = "text/css" >
<!--
.Default { font-family: verdana,arial,serif; font-size: 10pt; }
.ProgramTitle { font-family: verdana,arial,serif; font-size: 18pt; font-weight: bold;}
.Copyright { font-family: verdana,arial,serif; font-size: 10pt;}
.Email { font-family: verdana,arial,serif; font-size: 10pt;}
.NewsItem { font-family: verdana,arial,serif; font-size: 8pt; }
.NewsItemOdd { font-family: verdana,arial,serif; font-size: 8pt; background-color: #DBDBDB;}
.NewsItemEven { font-family: verdana,arial,serif; font-size: 8pt; background-color: #C4C2C2;}
.NewsItemUrgent { font-family: verdana,arial,serif; font-size: 8pt; background-color: #ccff99;}
.NewsItemDate { font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; }
.SectionTitle { font-family: verdana,arial,serif; font-size: 9pt; font-weight: bold; text-decoration: underline;}
.SectionBody { font-family: verdana,arial,serif; font-size: 8pt; }
.ModificationDate { font-family: verdana,arial,serif; font-size: 7pt; }
.Disclaimer { font-family: verdana,arial,serif; font-size: 8pt; }
A.SideNavBarItem { font-family: verdana,arial,serif; background-color : black; color: #e7e7e7; font-size: 9pt; font-weight: bold; text-decoration: none; }
A.SideNavBarItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }
A.SideNavBarHotItem { font-family: verdana,arial,serif; background-color : black; color: #ffcc66; font-size: 9pt; font-weight: bold; text-decoration: none; }
A.SideNavBarHotItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }
-->
< / STYLE >
< / HEAD >
< body background = "img/sideback.jpg" bgcolor = "#FFFFFF" text = "black" class = "Default" >
<!-- background="img/sideback.jpg" -->
< table width = "100%" border = "0" >
< tr >
< td valign = top > <!-- Begin Side Bar -->
< table border = "0" width = "130" valign = top >
< tr >
< td > < a class = "SideNavBarHotItem" > This site :< / a > < / td >
< / tr >
< tr >
< td > < a href = "index.html" class = "SideNavBarItem" > Home< / a > < / td >
< / tr >
< tr >
< td > < a href = "index_snmp.html" class = "SideNavBarItem" > Nagios plugins< / a > < / td >
< / tr >
< tr >
< td > < a href = "index_info.html" class = "SideNavBarItem" > Info on snmp< / a > < / td >
< / tr >
< tr >
< td > < a href = "index_commands.html" class = "SideNavBarItem" > Nagios config< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://nagios.manubulon.com/wiki/index.php/Faq-url" class = "SideNavBarItem" > FAQ< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://sourceforge.net/projects/nagios-snmp/" class = "SideNavBarItem" > Project page on SourceForge< / a > < / td >
< / tr >
< tr >
< td > < font color = "#FFFFFF" > -----------< / font > < / td >
< / tr >
< tr >
< td > < a class = "SideNavBarHotItem" > Links :< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://www.nagios.org/" class = "SideNavBarItem" > Nagios
Home< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://sourceforge.net/projects/nagiosplugins" class = "SideNavBarItem" > Nagios
Plugins< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://www.oreon.org" class = "SideNavBarItem" > Oreon project< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://www.nagiosexchange.org" class = "SideNavBarItem" > NagiosExchange< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://forums.opsyx.com/viewforum.php?f=1" class = "SideNavBarItem" > Opsyx
forum< / a > < / td >
< / tr >
< tr >
< td > < a href = "http://forum.2037.org/" class = "SideNavBarItem" > Forum 2037< / a > < / td >
< / tr >
< tr >
< td > < font color = "#FFFFFF" > -----------< / font > < / td >
< / tr >
< tr >
< td > < a class = "SideNavBarHotItem" > Others :< / a > < / td >
< / tr >
< tr >
< td >
< script type = "text/javascript" > < ! - -
google_ad_client = "ca-pub-1303792821309694";
/* nagios */
google_ad_slot = "5986789334";
google_ad_width = 120;
google_ad_height = 600;
//-->
< / script >
< script type = "text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
< / script >
< / td >
< / tr >
< tr >
< td > < font color = "#FFFFFF" > -----------< / font > < / td >
< / tr >
< tr >
< td > < A href = "http://sourceforge.net/projects/nagios-snmp" > < IMG src = "http://sourceforge.net/sflogo.php?group_id=134917&type=3" width = "110" height = "37" border = "0" alt = "SourceForge.net Logo" / > < / A > < / td >
< / tr >
< / table >
<!-- End Side Bar -->
< / td >
< td valign = top >
< table width = "100%" border = "0" valign = top >
< tr >
< td class = "ProgramTitle" > My plugins for < img src = "img/smalllogo7.jpg" border = "0" alt = "Nagios" >
< / td >
< / tr >
< tr >
< td >
< p class = "SectionTitle" align = "right" > Last update : Jun24 2006< / p >
< p class = "SectionTitle" > This page is been migrated on the wiki : < a href = "http://nagios.manubulon.com/wiki/index.php/Commands-host-url" > http://nagios.manubulon.com/wiki/index.php/Commands-host-url< / a > < / p >
< p class = "SectionTitle" > It will remain until all has been migrated. < / p >
< p class = "SectionTitle" > Commands< / p >
< p class = "SectionBody" > Here are commands example to use my scripts
with nagios. < br >
It's only the basic things you can do, < b > check the help of every
script if you need more advanced features especially if you need
performance outputs.< / b > < br >
The command definitions are complete, but not the service definitions
: you must add host name, contact groups, etc....< / p >
< p class = "SectionBody" > All these commands use $USER< n> $ macros
to put snmp login. The reason for this is that the ressources.cfg
file cannot be read by the CGI, preventing your " passwords"
to be seen with the config.< br >
You must set the $USER7$ or $USER8$ to make these examples work.
< br >
The $USER< n> $ macro are defined in the resources.cfg file< / p >
< p class = "SectionTitle" > < a href = "index_commands.html#snmplogin" > SNMP login with $USER< n> $< / a > < a href = "index_commands.html#regexp" > < br >
About regular expressions< / a > < / p >
< p class = "SectionBody" > < span class = "SectionTitle" > Configuration examples
of< / span > < br >
< br >
< a href = "index_commands.html#boostedge" > < span class = "SectionTitle" > check_snmp_boostedge.pl< br >
< / span > < / a > < a href = "index_commands.html#cpfw" > < span class = "SectionTitle" > check_snmp_cpfw.pl< br >
< / span > < / a > < span class = "SectionTitle" > < a href = "index_commands.html#css" > check_snmp_css.pl
& check_snmp_css_main.pl< br >
< / a > < / span > < span class = "SectionTitle" > < a href = "index_commands.html#env" > check_snmp_env.pl< br >
< / a > < / span > < span class = "SectionTitle" > < a href = "index_commands.html#lpnhr" > check_snmp_linkproof_nhr.pl< / a > < br >
< a href = "index_commands.html#load" > check_snmp_load.pl < / a > < br >
< a href = "index_commands.html#interface" > check_snmp_interface.pl< / a > < br >
< a href = "index_commands.html#mem" > check_snmp_mem.pl< br >
< / a > < / span > < span class = "SectionTitle" > < a href = "index_commands.html#nsbox" > check_snmp_nsbox.pl
< / a > < br >
< a href = "index_commands.html#process" > check_snmp_process.pl< / a > < br >
< a href = "index_commands.html#storage" > check_snmp_storage.pl< / a > < br >
< a href = "index_commands.html#vrrp" > check_snmp_vrrp.pl< br >
< / a > < / span > < a href = "index_commands.html#windows" class = "SectionTitle" > check_snmp_win.pl< / a > < / p >
< p class = "SectionTitle" > < a href = "index_commands.html#checktype" > Checks you can make by
host type< / a > < / p >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "snmplogin" > < / a > SNMP
login< br >
< / span > < a href = "index_info.html#snmplogin" > < br >
< / a > For more information, you can have a look at < a href = "index_info.html#snmplogin" > information
on snmp login< / a > < / p >
< p class = "SectionBody" > If you are using snmp v1 :< b > < br >
$USER7$=-C < community> < / b > < / p >
< p class = "SectionBody" > If you are using snmp v2c :< b > < br >
$USER7$=-C < community> -2< / b > < / p >
< p class = "SectionBody" > or you can use $USER9$ if you need both v1 and v2c. < / p >
< p class = "SectionBody" > Examples of snmp v3 login : < br >
AuthNoPriv (md5) : < br >
< b > $USER8$=-l < login> -x < pass> < / b > < / p >
< p class = "SectionBody" > AuthPriv (md5,aes) :< b > < br >
< / b > < b > $USER8$=-l < login> -x < pass> -X < pass>
-L md5,aes< / b > < span class = "SectionTitle" > < br >
< / span > < br >
< / p >
< p class = "SectionTitle" > < span class = "SectionTitle" > < a name = "regexp" > < / a > < / span > About
regular expressions< / p >
< p class = "SectionBody" > With all these scripts, when you select an
interface, a service or process name etc... you use by default regular
expresions : < br >
Note : you can disable this by using " -r" < / p >
< p class = "SectionBody" > Examples : Don't forget it is perl regular
expressions. < / p >
< table border = "1" width = "60%" >
< tr >
< td class = "SectionTitle" > Regexp< / td >
< td class = "SectionTitle" > Will match< / td >
< / tr >
< tr >
< td class = "SectionBody" > eth< / td >
< td class = "SectionBody" > eth0, eth1, eth2 but also Fast< b > eth< / b > ernet0/0
.... < / td >
< / tr >
< tr >
< td class = "SectionBody" > eth[1-9]< / td >
< td class = "SectionBody" > eth1, eth2, ... eth9 but also eth10, eth11< / td >
< / tr >
< tr >
< td class = "SectionBody" > eth[1-2]$< / td >
< td class = "SectionBody" > eth1, eth2 only (not eth11 for ex).< / td >
< / tr >
< tr >
< td class = "SectionBody" > dhcp< / td >
< td class = "SectionBody" > < b > dhcp< / b > c, < b > dhpc< / b > d< / td >
< / tr >
< / table >
< p class = "SectionBody" > < / p >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "boostedge" > < / a > check_snmp_boostedge.pl
< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_boostedge< / b > < / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_boostedge_v1< br >
command_line $USER1$/check_snmp_boostedge.pl -H $HOSTADDRESS$
$USER7$ -s $ARG1$ -n $ARG2$ $ARG3$< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td > ARG1 : Service name (regexp)< br >
ARG2 : Number of services selected by regexp which must be in
running & enabled state< br >
ARG3 : additional arguments if needed.< / td >
< / tr >
< tr >
< td > < b > Service < / b > < / td >
< td >
< p > < b > boostedge_services< / b > : checks is there is < b > 3< / b > active
& enabled service matching " < b > test< / b > " with
snmp v2c < / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td > define service {< br >
name boostedge_services< br >
check_command check_snmp_boostedge_v1!< b > test< / b > !< b > 3< / b > !< b > -2< / b > < br >
}< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "cpfw" > < / a > check_snmp_cpfw.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_cpfw1_v3< / b > < / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_cpfw1_v3< br >
command_line $USER1$/check_snmp_cpfw.pl -H $HOSTADDRESS$
$USER8$ $ARG1$< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td > ARG1 : all arguments.< / td >
< / tr >
< tr >
< td > < b > Service < / b > < / td >
< td >
< p > < b > checkpoint_verification< / b > : checks high availability
cluster, with policy " CP_Policy" installed, and
warning at 100000 connexions, critical at 200000< br >
< b > CP_Management< / b > : checks management station< / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td > define service {< br >
name checkpoint_verification< br >
check_command check_cpfw1_v3!< b > -swa -p CP_Policy
-c 100000,200000 -f< / b > < br >
}< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td >
< p > define service {< br >
name CP_Management< br >
service_description CPFW1 management< br >
check_command check_cpfw1_v3!< b > -sm< / b > < br >
} < / p >
< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "css" > < / a > check_snmp_css.pl
& check_snmp_css_main.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td >
< p > < b > check_snmp_css_main < / b > : get index from the host, services
are then checked using check_snmp_css_indexed (snmpv2)< br >
< b > check_snmp_css_indexed< / b > : check services indexed by
check_snmp_css_main (snmpv2)< br >
< b > check_snmp_css< / b > : directly read index & data from
the host (snmpv2)< / p >
< / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_css_main< br >
command_line $USER1$/check_snmp_css_main.pl -H $HOSTADDRESS$
$USER7$ -2< br >
}< / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_css_indexed< br >
command_line $USER1$/check_snmp_css.pl -H $HOSTADDRESS$
$USER7$ -2 -d -n $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_css< br >
command_line $USER1$/check_snmp_css.pl -H $HOSTADDRESS$
$USER7$ -2 -n $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td >
< p > ARG1 : regexp of service(s) to check< br >
ARG2 : warning level for : minimum number of active &
alive service , average response time, number of connexions< br >
ARG3 : critical level for : minimum number of active &
alive service , average response time, number of connexions
< br >
ARG4 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Service < / b > < / td >
< td >
< p > < b > css_index_file_create< / b > : This is a " fake"
service, which only creates index file in /tmp. It normally
returns the number of services it indexes, or an error if
he can't.< br >
< b > css_verif_TEST< / b > : checks at least < b > 2 < / b > services
mathnig TEST are up. Warning if 1, critical if 0. This service
uses the index file created by css_index_file_create, and
returns UNKNOWN if it can't find it.< br >
< b > css_verif_TEST2< / b > : checks at least < b > 2 < / b > services
mathnig TEST2 are up. Warning if 1, critical if 0. This service
doesn't use an index file.< / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td > define service {< br >
name css_index_file_create< br >
check_command check_snmp_css_main< br >
}< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td >
< p > define service {< br >
name css_verif_TEST< br >
check_command check_snmp_css_indexed!< b > " TEST" < / b > !< b > 1< / b > !< b > 0< / b >
< br >
} < / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td >
< p > define service {< br >
name css_verif_TEST2< br >
check_command check_snmp_css!< b > " TEST2" < / b > !< b > 1< / b > !< b > 0
< / b > < br >
} < / p >
< / td >
< / tr >
< / table >
< p > < / p >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "env" > < / a > check_snmp_env.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_env (snmpv1)< br >
check_snmp_env_v3 (snmpv3)< / b > < / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_env< br >
command_line $USER1$/check_snmp_env.pl -H $HOSTADDRESS$
$USER7$ -T $ARG1$ $ARG2$< br >
}< / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_env_v3< br >
command_line $USER1$/check_snmp_env.pl -H $HOSTADDRESS$
$USER8$ -T $ARG1$ $ARG2$< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td > ARG1 : type (cisco|nokia|bc|iron)< br >
ARG2 : additional arguments if needed.< / td >
< / tr >
< tr >
< td > < b > Service < / b > < / td >
< td >
< p > < b > ironport_env< / b > : checks ironport fans RPM > 1500
and temp < 70 deg celcius< br >
< b > nokia_env< / b > : checks nokia IP fans and power supply status< br >
< b > cisco_env< / b > : checks cisco fans and power supply status
< / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td > define service {< br >
name ironport_env< br >
check_command check_snmp_env!< b > iron< / b > !< b > -F
1500 -c 70< / b > < br >
}< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td >
< p > define service {< br >
name nokia_env< br >
check_command check_snmp_env_v3!< b > nokia< / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td >
< p > define service {< br >
name cisco_env< br >
check_command check_snmp_env_v3!< b > cisco< / b > < br >
} < / p >
< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "lpnhr" > < / a > check_snmp_linkproof_nhr.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_lp_nhr_v3 < / b > (snmpv3 and performance output)< / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_lp_nhr_v3< br >
command_line $USER1$/check_snmp_linkproof_nhr.pl
-H $HOSTADDRESS$ $USER8$ -f< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td > None< / td >
< / tr >
< tr >
< td > < b > Service < / b > < / td >
< td >
< p > < b > linkproof_nhr< / b > : returns < br >
WARNING if one nhr at least is in " no new session"
or " inactive" mode.< br >
CRITICAL if all nhr are inactive. < / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td > define service {< br >
name linkproof_nhr< br >
check_command check_snmp_lp_nhr_v3< br >
}< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "load" > < / a > check_snmp_load.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_load_v1 < / b > : using snmpv1 (or v2 depending
on $USER7$ value)< br >
< b > check_snmp_load_v3< / b > : using snmpv3< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_load_v1< br >
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$
$USER7$ -T $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_load_v3< br >
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$
$USER8$ -T $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td >
< p > ARG1 : host type (stand,netsc,netsl,as400,cisco,cata,nsc,fg,bc,nokia,hp,lp,hpux)< br >
ARG2 : warning level < br >
ARG3 : critical level< br >
ARG4 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > bluecoat_load< / b > : Bluecoat cpu usage< br >
< b > Linux_load< / b > : Linux load (1min, 5 min, 15 min)< br >
< b > Cisco_load< / b > : Cisco cpu usage< br >
< b > lp_load< / b > : Radware Linkproff cpu usage< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define service {< br >
name bluecoat_load< br >
check_command check_snmp_load_v1!< b > bc< / b > !< b > 95< / b > !< b > 99< / b > < br >
}< / td >
< / tr >
< tr >
< td > Service< / td >
< td >
< p > define service {< br >
name Linux_load< br >
check_command check_snmp_load_v1!< b > netsl< / b > !< b > 4,3,3< / b > !< b > 8,5,5< / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > Service< / td >
< td >
< p > define service {< br >
name Cisco_load< br >
check_command check_snmp_load_v1!< b > cisco< / b > !< b > 90,80,60< / b > !< b > 100,100,100< / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define service {< br >
name lp_load< br >
check_command check_snmp_load_v1!< b > lp< / b > !< b > 90< / b > !< b > 99< / b > < br >
} < / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "interface" > < / a > check_snmp_interface.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td >
< p > < b > check_snmp_int_v1 < / b > : using snmpv1< br >
< b > check_snmp_int_v3 < / b > : using snmpv3< / p >
< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_int_v1< br >
command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$
$USER7$ -n $ARG1$ $ARG2$< br >
}< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_int_v3< br >
command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$
$USER8$ -n $ARG1$ $ARG2$< br >
}< / td >
< / tr >
< tr >
< td > < b > Arguments< / b > < / td >
< td >
< p > ARG1 : regexp of interface< br >
ARG2 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > check_int_1_6< / b > : Checks FastEthernet 1 to 6 are up (snmpv1)< br >
< b > check_int_eth0_bdw< / b > : Checks input bandwith on eth1 is
< 100 KBytes/s and output is < 50 Kbytes/s (critical at
0,0 means no critical levels). (snmpv3)< / td >
< / tr >
< tr >
< td > Service< / td >
< td >
< p > define service {< br >
name check_int_1_6< br >
check_command check_snmp_int_v1!< b > " FastEthernet-[1-6]" < / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define service {< br >
name check_int_eth0_bdw< br >
check_command check_snmp_int_v3!< b > eth0< / b > !< b > -k
-w 100,50 -c 0,0< / b > < br >
} < / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "mem" > < / a > check_snmp_mem.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_mem< / b > < / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_mem_v1< br >
command_line $USER1$/check_snmp_mem.pl -H $HOSTADDRESS$
$USER7$ $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_mem_v3< br >
command_line $USER1$/check_snmp_mem.pl -H $HOSTADDRESS$
$USER8$ $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Arguments< / td >
< td >
< p > ARG1 : Host type (-N, -I, -E)< br >
ARG2 : warning level(s)< br >
ARG3 : critical level(s) < br >
ARG4 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > Linux_memory< / b > : warning at 95% memory used and 60% swap
used, critical at 99% mem and 90% swap< br >
< b > Cisco_mem< / b > : warning at 80% used, critical at 99% used.< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define service {< br >
name Linux_memory< br >
check_command check_snmp_mem_v1!< b > -N< / b > !< b > 95,60< / b > !< b > 99,90< / b > < br >
} < / td >
< / tr >
< tr >
< td > Service< / td >
< td >
< p > define service {< br >
name Cisco_mem< br >
check_command check_snmp_mem_v1!< b > -I< / b > !< b > 80< / b > !< b > 99< / b >
< br >
} < / p >
< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "nsbox" > < / a > check_snmp_nsbox.pl
< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_nsbox < / b > (snmpv1 or v2c)< / td >
< / tr >
< tr >
< td > Nagios cmd< / td >
< td > define command{< br >
command_name check_snmp_nsbox< br >
command_line $USER1$/check_snmp_nsbox.pl -H $HOSTADDRESS$ $USER7$
-d $ARG1$ -s $ARG2$ -n $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Arguments< / td >
< td >
< p > ARG1 : Diode name (regexp)< br >
ARG2 : Vhost name (regexp) < br >
ARG3 : Number of diodes and vhost that must be up< br >
ARG4 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Service < / b > < / td >
< td >
< p > < b > check_service_nsbox < / b > : checks using snmpv2< br >
- 6 diodes matching " diode_name" are up< br >
- 3 vhosts matching " vhost_name" are up< / p >
< / td >
< / tr >
< tr >
< td > Nagios service< / td >
< td > define service {< br >
name check_service_nsbox< br >
check_command check_snmp_nsbox_v1!< b > diode_name< / b > !< b > vhost_name< / b > !< b > 6,3< / b > !< b > -2< / b > < br >
}< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "process" > < / a > check_snmp_process.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_process< / b > < / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_process_v1< br >
command_line $USER1$/check_snmp_process.pl -H $HOSTADDRESS$
$USER7$ -n $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Arguments< / td >
< td >
< p > ARG1 : regexp of process name< br >
ARG2 : warning level(s)< br >
ARG3 : critical level(s) < br >
ARG4 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Services< / b > < / td >
< td > < b > proxy_checks : < / b > checks with snmpv2 (-2 option) that
there is more than 21 process matching " proxy" , but
no more than 1999 (critical at 20 & 2000)< br >
< b > Check_httpd_all< / b > < b > : < / b > Checks that process matching
" httpd" < br >
- Process number is > 5 and < 100 (or returns warning)< br >
- Process number is > 0 (or returns critical)< br >
- Memory used (by httpd process using the max memory) is <
20 Mbytes or < 30 Mbytes< br >
- Cpu used (by all process together) is < 90% or 99%.< br >
< b > check_crontab< / b > : checks crontab is running (critical if
not, no warnings).< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define command {< br >
name proxy_checks< br >
check_command check_snmp_process_v1!< b > proxy< / b > !< b > 21,1999< / b > !< b > 20,2000< / b > !< b > -2< / b >
< br >
} < / td >
< / tr >
< tr >
< td > Service< / td >
< td > define command {< br >
name Check_httpd_all< br >
check_command check_snmp_process_v1!< b > httpd< / b > !< b > 5,100< / b > !< b > 0< / b > !< b > -2
-m 20,30 -u 90,99< / b > < br >
} < / td >
< / tr >
< tr >
< td > Service< / td >
< td >
< p > define service {< br >
name check_crontab< br >
check_command check_snmp_process!< b > crond< / b > !< b > 0< / b > !< b > 0< / b > < br >
} < / p >
< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "storage" > < / a > check_snmp_storage.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_storage< / b > < / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_storage_v1< br >
command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$
$USER7$ -m $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_storage_v3< br >
command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$
$USER8$ -m $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$< br >
}< / td >
< / tr >
< tr >
< td > Arguments< / td >
< td >
< p > ARG1 : regexp of storage name< br >
ARG2 : warning level< br >
ARG3 : critical level< br >
ARG4 : additional arguments if needed.< / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > Check_LinDisk_home :< / b > Checks " /home" mountpoint
(and only this one because of -r) usage < 90 and 97 %< / td >
< / tr >
< tr >
< td > < / td >
< td >
< p > define service {< br >
name Check_LinDisk_home< br >
service_description Verification /home< br >
check_command check_snmp_storage_v3!/< b > home< / b > !< b > 90< / b > !< b > 97< / b > !< b > -r< / b >
< br >
} < / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > Win_check_swap : < / b > Checks virtual (ram+swap) mem on windows
< 60% or 90%< / td >
< / tr >
< tr >
< td > < / td >
< td >
< p > define command {< br >
name Win_check_swap< br >
service_description Verification swap Windows< br >
check_command check_snmp_storage_v3!< b > Virtual< / b > !< b > 60< / b > !< b > 90< / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > check_linux_swap < / b > : checks Linux swap < 60 and 90%< / td >
< / tr >
< tr >
< td > < / td >
< td > define command {< br >
name check_linux_swap< br >
service_description Verfication swap linux< br >
check_command check_snmp_storage_v1!< b > Swap< / b > !< b > 60< / b > !< b > 90< / b > !< br >
} < / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > check_disk_all < / b > : Checks that " /" , " /opt"
, " /var" , " /config" mountpoints usage is
< 80 and 90%< / td >
< / tr >
< tr >
< td > < / td >
< td > define command {< br >
name check_disk_all< br >
service_description Verification / /opt /var /config< br >
check_command check_snmp_storage_v1!< b > " ^/$|opt|config|var" < / b > !< b > 80< / b > !< b > 90< / b > !< br >
}< / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "vrrp" > < / a > check_snmp_vrrp.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_vrrp< / b > < / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_vrrp_v1< br >
command_line $USER1$/check_snmp_vrrp.pl -H $HOSTADDRESS$
$USER7$ -T $ARG1$ -s $ARG2$< br >
}< / td >
< / tr >
< tr >
< td > Command< / td >
< td > define command{< br >
command_name check_snmp_vrrp_v3< br >
command_line $USER1$/check_snmp_vrrp.pl -H $HOSTADDRESS$
$USER8$ -T $ARG1$ -s $ARG2$< br >
}< / td >
< / tr >
< tr >
< td > Arguments< / td >
< td >
< p > ARG1 : Host type (nokia, alteon, lp, nsc, ipso)< br >
ARG2 : state (master or backup) or number of members, max
% assigned to nodes (for ipso).< / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > Linkproof_check_vrrp_master < / b > : Checks that all interface
are in master state< / td >
< / tr >
< tr >
< td > Service< / td >
< td >
< p > define service {< br >
name Linkproof_check_vrrp_master< br >
check_command check_snmp_vrrp_v3!< b > lp< / b > !< b > master< / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > Nokia_check_vrrp_backup < / b > : Checks that all interface
are in backup state< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define service {< br >
name Linkproof_check_vrrp_backup< br >
check_command check_snmp_vrrp_v3!< b > lp< / b > !< b > backup< / b > < br >
} < / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > Nokia_clustering< / b > : checks that nokia cluster has 2
members and that the load assigned to each member < 98%< / td >
< / tr >
< tr >
< td > Service< / td >
< td > define service {< br >
name Nokia_clustering< br >
check_command check_snmp_vrrp_v3!< b > ipso< / b > !< b > 2,98%< / b > < br >
} < / td >
< / tr >
< / table >
< p class = "SectionBody" > < span class = "SectionTitle" > < a name = "windows" > < / a > check_snmp_win.pl< / span > < / p >
< table width = "100%" border = "1" class = "SectionBody" >
< tr >
< td > < b > Command< / b > < / td >
< td > < b > check_snmp_win< / b > < / td >
< / tr >
< tr >
< td > Nagios< / td >
< td > define command {< br >
command_name check_win< br >
command_line $USER1$/check_snmp_win.pl -H $HOSTADDRESS$
$USER7$ -n $ARG1$< br >
# comment community service(s) name< br >
}< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > check_win_dhcp < / b > : Checks dhcp service is running< / td >
< / tr >
< tr >
< td > Nagios< / td >
< td >
< p > define service {< br >
name check_win_dhcp< br >
service_description Checks dhcp service is running< br >
check_command check_win!< b > dhcp< / b > < br >
} < / p >
< / td >
< / tr >
< tr >
< td > < b > Service< / b > < / td >
< td > < b > check_win_reg_spool< / b > : Checks registery access &
print spool is active (French windows !!)< / td >
< / tr >
< tr >
< td > Nagios< / td >
< td >
< p > define service {< br >
name check_win_reg_spool< br >
service_description Checks registery access &
print spool is active < br >
check_command check_win!< b > " au registre" ,spouleur< / b > < br >
} < / p >
< / td >
< / tr >
< / table >
< p > < span class = "SectionTitle" > < a name = "checktype" > < / a > Checks you can
make by host type< / span > < / p >
< p class = "SectionBody" > < b > N/A< / b > : nothing of this type to check< br >
< b > SNMP< / b > : yes with simple snmp query< br >
< b > ??< / b > : not tested because useless most of the time.< / p >
< p class = "SectionBody" > < b > Specific< / b > : name of the script to look
at for platform specific checks.< / p >
< table width = "100%" border = "1" >
< tr >
< td class = "SectionBody" > < b > Host type< / b > < / td >
< td class = "SectionBody" > < b > Interface< / b > < / td >
< td class = "SectionBody" > < b > storage< / b > < / td >
< td class = "SectionBody" > < b > load/cpu< / b > < / td >
< td class = "SectionBody" > < b > mem< / b > < / td >
< td class = "SectionBody" > < b > process< / b > < / td >
< td class = "SectionBody" > < b > env< / b > < / td >
< td class = "SectionBody" > < b > specific< / b > < / td >
< / tr >
< tr >
< td class = "SectionBody" > Linux< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > Windows< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > check_snmp_win.pl< / td >
< / tr >
< tr >
< td class = "SectionBody" > Cisco router/switch< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > N/A< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > N/A< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > HP router/switch< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > N/A< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > N/A< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > Bluecoat proxy< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > CheckPoint on SPLAT< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > check_snmp_cpfw.pl< / td >
< / tr >
< tr >
< td class = "SectionBody" > CheckPoint on Nokia IP< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > ??< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > check_snmp_vrrp.pl< / td >
< / tr >
< tr >
< td class = "SectionBody" > Boostedge< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > ??< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > check_snmp_boostedge.pl< / td >
< / tr >
< tr >
< td class = "SectionBody" > AS400< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > NetsecureOne Netbox< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > ??< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > Radware Linkproof< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > N/A< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" >
< p > check_snmp_linkproof_nhr< br >
check_snmp_vrrp.pl< / p >
< / td >
< / tr >
< tr >
< td class = "SectionBody" > IronPort< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > snmp< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > < / td >
< / tr >
< tr >
< td class = "SectionBody" > Cisco CSS< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > ??< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > Yes< / td >
< td class = "SectionBody" > No< / td >
< td class = "SectionBody" > ??< / td >
< td class = "SectionBody" > check_snmp_css.pl< / td >
< / tr >
< / table >
< p > < / p >
< / td >
< / tr >
< td >
< p class = "SectionBody" > This project is hosted on : < br >
< A href = "http://sourceforge.net/projects/nagios-snmp" > < IMG src = "http://sourceforge.net/sflogo.php?group_id=134917&type=5" width = "210" height = "62" border = "0" alt = "SourceForge.net Logo" / > < / A >
< / p >
< p class = "SectionBody" > Nagios and the Nagios logo are registered trademarks
of Ethan Galstad.< / p >
< / td >
< / table >
< / td >
< / tr >
< / table >
< / BODY >
< / HTML >