}define command{ command_name check_snmp_hpux_mem_v1 command_line $USER1$/check_snmp_hpux_mem.sh $USER8$ $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$ }define command{ command_name check_snmp_v1 command_line $USER1$/check_snmp -H $HOSTADDRESS$ $USER7$ -o $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ }define command{ command_name check_snmp_process_v1 command_line $USER1$/check_snmp_process.pl -H $HOSTADDRESS$ $USER7$ -n $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ }define command{ command_name check_win command_line $USER1$/check_snmp_win.pl -H $HOSTADDRESS$ $USER7$ -n $ARG1$ $ARG2$ }## FIM SNMP ################# DISCOdefine command{ command_name check_disk command_line $USER1$/check_disk -w limit -c limit -t 5 }# IMPRESSORA HPdefine command{ command_name check_hp_print command_line $USER1$/check_hp_print -H $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ }# TERMINAL SERVICEdefine command{ command_name check_ts command_line $USER$/check_ts -H $HOSTADDRESS$ -p 3389 }# PRINTERSdefine command{ command_name check_printer command_line $USER1$/check_printer $HOSTADDRESS$ $USER8$ $ARG1$ $ARG2$ $ARG3$ $ARG4$ }# WIRETEMPdefine command{ command_name check_1-wiretemp command_line $USER1$/custom/check_1-wiretemp -c $ARG1$ -w $ARG2$ -W$ARG3$ -C$ARG4$ -i $ARG5$ -o $ARG6$ }# NRPEdefine command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$}# OPENVPNdefine command{ command_name check_openvpn command_line /usr/lib/nagios/plugins/check_openvpn -t $ARG1$ -p $ARG2$ -n $ARG3$}# SQUIDdefine command{ command_name check_squid command_line $USER1$/check_squid.pl -u http://www.google.com.br -p $HOSTADDRESS$ -l 8080 -o usuario -m senha -e 200 }# SAMBAdefine command{ command_name check_samba command_line $USER1$/check_samba -L $HOSTADDRESS$}# WINTEMPdefine command{ command_name check_snmp_wintemp command_line $USER1$/check_snmp_wintemp -L $HOSTADDRESS$}# 3COMdefine command{ command_name check_3com command_line $USER1$/check_3com.pl -H $HOSTADDRESS$ -C $ARG1$ -u $ARG2$ }# SWITCH UPTIMEdefine command { command_name check_switch_uptime command_line $USER1$/check_switch_uptime.pl -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ -c $ARG3$}# MEMORIAdefine command { command_name check_mem command_line $USER1$/check_mem -w $ARG1$ -c $ARG2$}# MRTGdefine command { command_name check_mrtgtraf command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$} # NAGIOSGRAPHERdefine command{ command_name process-service-perfdata-file command_line mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/service-perfdata.$TIMET$}Monitorando Impressoras de Rede no Nagios (por Rafael Oliveira)# DEFINICAO DA IMPRESSORAdefine host{ use generic-printer host_name hp_producao alias Impressora HP Producao address 172.16.130.100 parents 3Com_4200 check_interval 1retry_check_interval 10check_period workhoursnotification_interval 120notification_period workhoursnotification_options d,u,rcontact_groups admins hostgroups network-printers }# CHECAGEM DOS SERVICOS## PINGdefine service{ use generic-service host_name hp_producao service_description PING check_command check_ping!3000.0,80%!5000.0,100% normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notification_interval 120 notification_options c,r contact_groups admins notification_period workhours }# FOLHAS IMPRESSASdefine service{ use generic-service host_name hp_producao service_description Folhas Impressas check_command check_printer!counter 1 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }# Parts Statusdefine service{ use generic-service host_name hp_producao service_description Parts Status check_command check_printer!parts 1 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }# Port Statusdefine service{ use generic-service host_name hp_producao service_description Port Status check_command check_printer!parts 2 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }# Toners Status## Cyanodefine service{ use generic-service host_name hp_producao service_description Toner Cyano check_command check_printer!toner/ink 1!0.5,0.8 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }## Magentadefine service{ use generic-service host_name hp_producao service_description Toner Magenta check_command check_printer!toner/ink 2!0.5,0.8 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }## Amarelodefine service{ use generic-service host_name hp_producao service_description Toner Amarelo check_command check_printer!toner/ink 3!0.5,0.8 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }## Pretodefine service{ use generic-service host_name hp_producao service_description Toner Preto check_command check_printer!toner/ink 4!0.5,0.8 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }# Reservatorio de Residuosdefine service{ use generic-service host_name hp_producao service_description Reservatorio de Residuos check_command check_printer!toner/ink 5!0.5,0.8 normal_check_interval 1 retry_check_interval 10 max_check_attempts 2 notifications_enabled 0 }