Система мониторинга ресурсов и сервисов локальной вычислительной сети

Основные проблемы, возникающие у сетевых администраторов предприятий. Программные средства диагностики. Установка ядра системы. Настройка модуля отслеживания загрузки. Расчет затрат на разработку системы сетевого мониторинга, её внедрение и сопровождение.

Рубрика Программирование, компьютеры и кибернетика
Вид дипломная работа
Язык русский
Дата добавления 13.08.2014
Размер файла 4,5 M

Отправить свою хорошую работу в базу знаний просто. Используйте форму, расположенную ниже

Студенты, аспиранты, молодые ученые, использующие базу знаний в своей учебе и работе, будут вам очень благодарны.

is_volatile 0 ; The service is not volatile

check_period 24x7 ; The service can be checked at any time of the day

max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state

normal_check_interval 10 ; Check the service every 10 minutes under normal conditions

retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined

contact_groups admins ; Notifications get sent out to everyone in the 'admins' group

notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events

notification_interval 60 ; Re-notify about service problems every hour

notification_period 24x7 ; Notifications can be sent out at any time

register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!

}

# Local service definition template - This is NOT a real service, just a template!

define service{

name local-service ; The name of this service template

use generic-service ; Inherit default values from the generic-service definition

max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state

normal_check_interval 5 ; Check the service every 5 minutes under normal conditions

retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined

register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!

}

/etc/nagios3/objects/timeperiods.cfg

# This defines a timeperiod where all times are valid for checks,

# notifications, etc. The classic "24x7" support nightmare. :-)

define timeperiod{

timeperiod_name 24x7

alias 24 Hours A Day, 7 Days A Week

sunday 00:00-24:00

monday 00:00-24:00

tuesday 00:00-24:00

wednesday 00:00-24:00

thursday 00:00-24:00

friday 00:00-24:00

saturday 00:00-24:00

}

# 'workhours' timeperiod definition

define timeperiod{

timeperiod_name workhours

alias Normal Work Hours

monday 09:00-18:00

tuesday 09:00-18:00

wednesday 09:00-18:00

thursday 09:00-18:00

friday 09:00-18:00

}

# 'none' timeperiod definition

define timeperiod{

timeperiod_name none

alias No Time Is A Good Time

}

# Some U.S. holidays

# Note: The timeranges for each holiday are meant to *exclude* the holidays from being

# treated as a valid time for notifications, etc. You probably don't want your pager

# going off on New Year's. Although you're employer might... :-)

define timeperiod{

name us-holidays

timeperiod_name us-holidays

alias U.S. Holidays

january 1 00:00-00:00 ; New Years

monday -1 may 00:00-00:00 ; Memorial Day (last Monday in May)

july 4 00:00-00:00 ; Independence Day

monday 1 september 00:00-00:00 ; Labor Day (first Monday in September)

thursday -1 november 00:00-00:00 ; Thanksgiving (last Thursday in November)

december 25 00:00-00:00 ; Christmas

}

# This defines a modified "24x7" timeperiod that covers every day of the

# year, except for U.S. holidays (defined in the timeperiod above).

define timeperiod{

timeperiod_name 24x7_sans_holidays

alias 24x7 Sans Holidays

use us-holidays ; Get holiday exceptions from other timeperiod

sunday 00:00-24:00

monday 00:00-24:00

tuesday 00:00-24:00

wednesday 00:00-24:00

thursday 00:00-24:00

friday 00:00-24:00

saturday 00:00-24:00

}

/etc/nagios3/objects/servers/localhost.cfg

define host{

use linux-server

host_name localhost

alias localhost

address 127.0.0.1

check_interval 0.12

notification_period 24x7

notification_options d,u,f,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description PING

check_command check_ping!100.0,20%!500.0,60%

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description Root Partition

check_command check_local_disk!20%!10%!/

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description var Partition

check_command check_local_disk!20%!10%!/var

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description Current Users

check_command check_local_users!20!50

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description Total Processes

check_command check_local_procs!250!400!RSZDT

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description Current Load

check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name localhost

service_description Swap Usage

check_command check_local_swap!20!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Define a service to check SSH on the local machine.

# Disable notifications for this service by default, as not all users may have SSH enabled.

define service{

use local-service ; Name of service template to use

host_name localhost

service_description SSH

check_command check_ssh

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Define a service to check HTTP on the local machine.

# Disable notifications for this service by default, as not all users may have HTTP enabled.

define service{

use local-service ; Name of service template to use

host_name localhost

service_description HTTP

check_command check_http

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name localhost

service_description Uptime

check_command check_netapp_uptime

}

define service{

use generic-service; Inherit values from a template

host_name localhost

service_description eth0 System Link Status on hosting

check_command check_snmp!public!ifOperStatus.2! -m RFC1213-MIB

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name localhost

service_description eth0.1001 Management Link Status on hosting

check_command check_snmp!public!ifOperStatus.3! -m RFC1213-MIB

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Monitor bandwidth via MRTG logs

define service{

use generic-service; Inherit values from a template

host_name localhost

service_description eth0 System Link Bandwidth Usage on hosting

check_command traffic_average!/var/www/mrtg/monitoring/127.0.0.1_2.log!AVG!1000000,2000000!5000000,5000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name localhost

service_description eth0.1001 Management Link Usage on hosting

check_command traffic_average!/var/www/mrtg/monitoring/127.0.0.1_3.log!AVG!1000000,2000000!5000000,5000000!10

# servicegroups bandwidth_services

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name localhost

service_description Memory Usage

check_command check_snmp_mem_v1!public!70,70!90,90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

/etc/nagios3/objects/servers/1c.cfg

# Define a host for the Windows machine we'll be monitoring

# Change the host_name, alias, and address to fit your situation

define host{

use windows-server ; Inherit default values from a template

host_name 1c ; The name we're giving to this host

alias 1c terminal server ; A longer name associated with the host

address 10.10.80.33 ; IP address of the host

notification_period 24x7

notification_options d,u,f,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Create a service for monitoring the version of NSCLient++ that is installed

# Change the host_name to match the name of the host you defined above

define service{

use generic-service

host_name 1c

service_description NSClient++ Version

check_command check_nt!CLIENTVERSION

}

# Create a service for monitoring the uptime of the server

# Change the host_name to match the name of the host you defined above

define service{

use generic-service

host_name 1c

service_description Uptime

check_command check_nt!UPTIME

}

# Create a service for monitoring CPU load

# Change the host_name to match the name of the host you defined above

define service{

use generic-service

host_name 1c

service_description CPU Load

check_command check_nt!CPULOAD!-l 5,80,90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Create a service for monitoring

# Change the host_name to match the name of the host you defined above

define service{

use generic-service

host_name 1c

service_description Memory Usage

check_command check_nt!MEMUSE!-w 80 -c 90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Create a service for monitoring C:\ disk usage

# Change the host_name to match the name of the host you defined above

define service{

use generic-service

host_name 1c

service_description C:\ System Space

check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name 1c

service_description D:\ Data Space

check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name 1c

service_description E:\ Swap Usage

check_command check_nt!USEDDISKSPACE!-l e -w 80 -c 90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Create a service for monitoring the Explorer.exe process

# Change the host_name to match the name of the host you defined above

define service{

use generic-service

host_name 1c

service_description Explorer

check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

/etc/nagios3/objects/servers/db.cfg

define host{

use linux-server

host_name db

alias Database and DNS

address 192.168.10.215

parents at9924

notification_period 24x7

notification_options d,u,r,f

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service ; Name of service template to use

host_name db

service_description PING

check_command check_ping!100.0,20%!500.0,60%

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name db

service_description Uptime

check_command check_netapp_uptime

}

define service{

use generic-service

host_name db

service_description CPU Load

check_command check_nrpe_1arg!check_load

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description / Free Space

check_command check_nrpe_1arg!check_disk1

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description /var Free Space

check_command check_nrpe_1arg!check_disk2

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description Raid State md0

check_command check_nrpe_1arg!check_raid

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description Total Processes

check_command check_nrpe_1arg!check_total_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description Zombie Processes

check_command check_nrpe_1arg!check_zombie_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description Swap Usage

check_command check_nrpe_1arg!check_swap

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name db

service_description Memory Usage

check_command check_snmp_mem_v1!public!85,70!90,90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name db

service_description DNS

check_command check_dns

}

/etc/nagios3/objects/servers/for.cfg

define host{

use linux-server

host_name for

alias Fortochka

address 192.168.10.3

notification_period 24x7

notification_options d,u,r,f

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# SERVICE DEFINITIONS

# Define a service to "ping" the machine

define service{

use local-service

host_name for

service_description PING

check_command check_ping!100.0,20%!500.0,60%

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Monitor uptime via SNMP

define service{

use generic-service

host_name for

service_description Uptime

check_command check_netapp_uptime

}

define service{

use generic-service

host_name for

service_description CPU Load

check_command check_nrpe_1arg!check_load

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description / Free Space

check_command check_nrpe_1arg!check_disk1

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description Total Processes

check_command check_nrpe_1arg!check_total_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description Zombie Processes

check_command check_nrpe_1arg!check_zombie_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description Swap Usage

check_command check_nrpe_1arg!check_swap

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description eth0 External Link Status

check_command check_snmp!public!ifOperStatus.2! -m RFC1213-MIB

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description Memory Usage

check_command check_snmp_mem_v1!public!85,70!90,90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name for

service_description HTTP

check_command check_http

}

/etc/nagios3/objects/servers/host_mail.cfg

define host{

use linux-server

host_name host_mail

alias Hosting and Mail

address 192.168.10.214

notification_period 24x7

notification_options d,u,r,f

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name host_mail

service_description PING

check_command check_ping!100.0,20%!500.0,60%

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Monitor uptime via SNMP

define service{

use generic-service

host_name host_mail

service_description Uptime

check_command check_netapp_uptime

}

define service{

use generic-service

host_name host_mail

service_description CPU Load

check_command check_nrpe_1arg!check_load

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description /var/ Free Space

check_command check_nrpe_1arg!check_disk1

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description Total Processes

check_command check_nrpe_1arg!check_total_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description Zombie Processes

check_command check_nrpe_1arg!check_zombie_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description Swap Usage

check_command check_nrpe_1arg!check_swap

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description eth0 External Link Status on hosting

check_command check_snmp!public!ifOperStatus.2! -m RFC1213-MIB

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description eth1 System Link Status on hosting

check_command check_snmp!public!ifOperStatus.3! -m RFC1213-MIB

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description eth1.80 Internal Link Status on hosting

check_command check_snmp!public!ifOperStatus.4! -m RFC1213-MIB

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Monitor bandwidth via MRTG logs

define service{

use generic-service

host_name host_mail

service_description eth0 Bandwidth Usage on hosting

check_command traffic_average!/var/www/mrtg/host_mail/192.168.10.214_2.log!AVG!1000000,2000000!5000000,5000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description eth1 Bandwidth Usage on hosting

check_command traffic_average!/var/www/mrtg/host_mail/192.168.10.214_3.log!AVG!1000000,2000000!5000000,5000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description eth1.80 Bandwidth Usage on hosting

check_command traffic_average!/var/www/mrtg/host_mail/192.168.10.214_5.log!AVG!1000000,2000000!5000000,5000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description SMTP

check_command check_smtp

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description POP3

check_command check_pop

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description IMAP

check_command check_imap

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description Memory Usage

check_command check_snmp_mem_v1!public!85,70!90,90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description Raid State md1

check_command check_nrpe_1arg!check_raid

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name host_mail

service_description HTTP

check_command check_http

}

/etc/nagios3/objects/servers/isp.cfg

define host{

use linux-server

host_name isp

alias Database and DNS

address 192.168.10.217

parents at9924

notification_period 24x7

notification_options d,u,r,f

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service

host_name isp

service_description PING

check_command check_ping!100.0,20%!500.0,60%

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name isp

service_description DNS

check_command check_dns

}

/etc/nagios3/objects/routers/at9924.cfg

define host{

use generic-switch ; Inherit default values from a template

host_name at9924 ; The name we're giving to this switch

alias Allied Telesyn AT-9924 ; A longer name associated with the switch

address 192.168.10.101 ; IP address of the switch

hostgroups routers ; Host groups this switch is associated with

notification_period 24x7

notification_options d,u,f,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Create a service to PING to switch

define service{

use generic-service ; Inherit values from a template

host_name at9924 ; The name of the host the service is associated with

service_description PING ; The service description

check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service

normal_check_interval 5 ; Check the service every 5 minutes under normal conditions

retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Monitor uptime via SNMP

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Uptime

check_command check_netapp_uptime

}

# Monitor Ports status via SNMP

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 1 Link Status ub13

check_command check_snmp!public!ifOperStatus.1! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 2 Link Status Lenina-105B

check_command check_snmp!public!ifOperStatus.2! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 3 Link Status krivousova36b

check_command check_snmp!public!ifOperStatus.3! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 4 Link Status ur39a

check_command check_snmp!public!ifOperStatus.4! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 5 Link Status ISP-concentrator

check_command check_snmp!public!ifOperStatus.5! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 6 Link Status isp-server

check_command check_snmp!public!ifOperStatus.6! -m RFC1213-MIB

}

<…>

# Monitor bandwidth via MRTG logs

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 1 Bandwidth Usage ub13

check_command traffic_average!/var/www/mrtg/AT-9924/192.168.10.101_1.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 2 Bandwidth Usage Lenina-105B

check_command traffic_average!/var/www/mrtg/AT-9924/192.168.10.101_2.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 3 Bandwidth Usage krivousova36b

check_command traffic_average!/var/www/mrtg/AT-9924/192.168.10.101_3.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name at9924

service_description Port 4 Bandwidth Usage ur39a

check_command traffic_average!/var/www/mrtg/AT-9924/192.168.10.101_4.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

<…>

/etc/nagios3/objects/routers/router_len58a.cfg

define host{

use linux-server

host_name router_len58a

alias Lenina 58a Router

address 192.168.10.158

parents des3627g

notification_period 24x7

notification_options d,u,r,f

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use local-service ; Name of service template to use

host_name router_len58a

service_description PING

check_command check_ping!100.0,20%!500.0,60%

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name router_len58a

service_description Uptime

check_command check_netapp_uptime

}

define service{

use generic-service

host_name router_len58a

service_description CPU Load

check_command check_nrpe_1arg!check_load

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name router_len58a

service_description / Free Space

check_command check_nrpe_1arg!check_disk1

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name router_len58a

service_description Total Processes

check_command check_nrpe_1arg!check_total_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name router_len58a

service_description Zombie Processes

check_command check_nrpe_1arg!check_zombie_procs

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service

host_name router_len58a

service_description Memory Usage

check_command check_snmp_mem_v1!public!85,70!90,90

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service; Inherit values from a template

host_name router_len58a

service_description DNS

check_command check_dns

}

/etc/nagios3/objects/routers/des3627g.cfg

define host{

use generic-switch ; Inherit default values from a template

host_name des3627g ; The name we're giving to this switch

alias D-Link DES-3627G ; A longer name associated with the switch

address 192.168.10.111 ; IP address of the switch

hostgroups routers ; Host groups this switch is associated with

notification_period 24x7

notification_options d,u,f,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Create a service to PING to switch

define service{

use generic-service ; Inherit values from a template

host_name des3627g ; The name of the host the service is associated with

service_description PING ; The service description

check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service

normal_check_interval 5 ; Check the service every 5 minutes under normal conditions

retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

# Monitor uptime via SNMP

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Uptime

check_command check_netapp_uptime

}

# Monitor Ports status via SNMP

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 1 Link Status

check_command check_snmp!public!ifOperStatus.1! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 2 Link Status

check_command check_snmp!public!ifOperStatus.2! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 3 Link Status

check_command check_snmp!public!ifOperStatus.3! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 4 Link Status

check_command check_snmp!public!ifOperStatus.4! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 5 Link Status

check_command check_snmp!public!ifOperStatus.5! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 6 Link Status

check_command check_snmp!public!ifOperStatus.6! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 7 Link Status

check_command check_snmp!public!ifOperStatus.7! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 8 Link Status

check_command check_snmp!public!ifOperStatus.8! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 9 Link Status

check_command check_snmp!public!ifOperStatus.9! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 10 Link Status

check_command check_snmp!public!ifOperStatus.10! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 11 Link Status

check_command check_snmp!public!ifOperStatus.11! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 12 Link Status ugmk-router

check_command check_snmp!public!ifOperStatus.12! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 21 Link Status

check_command check_snmp!public!ifOperStatus.21! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 22 Link Status

check_command check_snmp!public!ifOperStatus.22! -m RFC1213-MIB

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 23 Link Status

check_command check_snmp!public!ifOperStatus.23! -m RFC1213-MIB

}

# Monitor bandwidth via MRTG logs

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 1 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_1.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 2 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_2.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 3 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_3.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 4 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_4.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 5 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_5.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 6 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_6.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 8 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_8.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 9 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_9.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 10 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_10.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 11 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_11.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 12 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_12.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 21 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_21.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 22 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_22.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

define service{

use generic-service ; Inherit values from a template

host_name des3627g

service_description Port 23 Bandwidth Usage

check_command traffic_average!/var/www/mrtg/DES-3627G/192.168.10.111_23.log!AVG!80000000,90000000!100000000,120000000!10

notification_period 24x7

notification_options w,c,r

notification_interval 30

contact_groups admins

notifications_enabled 1

}

/etc/nagios/nrpe.cfg

#############################################################################

# This is configuration file for the NRPE daemon. It needs to be

# located on the remote host that is running the NRPE daemon, not the host

# from which the check_nrpe client is being executed.

#############################################################################

# PID FILE

# The name of the file in which the NRPE daemon should write it's process ID

# number. The file is only written if the NRPE daemon is started by the root

# user and is running in standalone mode.

pid_file=/var/run/nrpe.pid

# PORT NUMBER

# Port number we should wait for connections on.

# NOTE: This must be a non-priviledged port (i.e. > 1024).

# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

server_port=5666

# SERVER ADDRESS

# Address that nrpe should bind to in case there are more than one interface

# and you do not want nrpe to bind on all interfaces.

# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

server_address=192.168.10.214

# NRPE USER

# This determines the effective user that the NRPE daemon should run as.

# You can either supply a username or a UID.

#

# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

nrpe_user=nagios

# NRPE GROUP

# This determines the effective group that the NRPE daemon should run as.

# You can either supply a group name or a GID.

#

# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

nrpe_group=nagios

# ALLOWED HOST ADDRESSES

# This is an optional comma-delimited list of IP address or hostnames

# that are allowed to talk to the NRPE daemon.

#

# Note: The daemon only does rudimentary checking of the client's IP

# address. I would highly recommend adding entries in your /etc/hosts.allow

# file to allow only the specified host to connect to the port

# you are running this daemon on.

#

# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

allowed_hosts=127.0.0.1,192.168.10.2

# COMMAND ARGUMENT PROCESSING

# This option determines whether or not the NRPE daemon will allow clients

# to specify arguments to commands that are executed. This option only works

# if the daemon was configured with the --enable-command-args configure script

# option.

#

# *** ENABLING THIS OPTION IS A SECURITY RISK! ***

# Read the SECURITY file for information on some of the security implications

# of enabling this variable.

#

# Values: 0=do not allow arguments, 1=allow command arguments

dont_blame_nrpe=0

# COMMAND PREFIX

# This option allows you to prefix all commands with a user-defined string.

# A space is automatically added between the specified prefix string and the

# command line from the command definition.

#

# *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! ***

# Usage scenario:

# Execute restricted commmands using sudo. For this to work, you need to add

# the nagios user to your /etc/sudoers. An example entry for alllowing

# execution of the plugins from might be:

#

# nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/

#

# This lets the nagios user run all commands in that directory (and only them)

# without asking for a password. If you do this, make sure you don't give

# random users write access to that directory or its contents!

# command_prefix=/usr/bin/sudo

# DEBUGGING OPTION

# This option determines whether or not debugging messages are logged to the

# syslog facility.

# Values: 0=debugging off, 1=debugging on

debug=0

# COMMAND TIMEOUT

# This specifies the maximum number of seconds that the NRPE daemon will

# allow plugins to finish executing before killing them off.

command_timeout=60

# WEEK RANDOM SEED OPTION

# This directive allows you to use SSL even if your system does not have

# a /dev/random or /dev/urandom (on purpose or because the necessary patches

# were not applied). The random number generator will be seeded from a file

# which is either a file pointed to by the environment valiable $RANDFILE

# or $HOME/.rnd. If neither exists, the pseudo random number generator will

# be initialized and a warning will be issued.

# Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness

#allow_weak_random_seed=1

# INCLUDE CONFIG FILE

# This directive allows you to include definitions from an external config file.

#include=<somefile.cfg>

# INCLUDE CONFIG DIRECTORY

# This directive allows you to include definitions from config files (with a

# .cfg extension) in one or more directories (with recursion).

#include_dir=<somedirectory>

#include_dir=<someotherdirectory>

# COMMAND DEFINITIONS

# Command definitions that this daemon will run. Definitions

# are in the following format:

#

# command[<command_name>]=<command_line>

#

# When the daemon receives a request to return the results of <command_name>

# it will execute the command specified by the <command_line> argument.

#

# Unlike Nagios, the command line cannot contain macros - it must be

# typed exactly as it should be executed.

#

# Note: Any plugins that are used in the command lines must reside

# on the machine that this daemon is running on! The examples below

# assume that you have plugins installed in a /usr/local/nagios/libexec

# directory. Also note that you will have to modify the definitions below

# to match the argument format the plugins expect. Remember, these are

# examples only!

# The following examples use hardcoded command arguments...

command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10

command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20

command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/md1

command[check_disk2]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/md3

command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 17000 -c 18000 -s Z

command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 17000 -c 20000

command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 20 -c 10

command[check_raid]=/usr/lib/nagios/plugins/check_linux_raid md1

# The following examples allow user-supplied arguments and can

# only be used if the NRPE daemon was compiled with support for

# command arguments *AND* the dont_blame_nrpe directive in this

# config file is set to '1'...

#command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$

#command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$

#command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$

#command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$

#

# local configuration:

# if you'd prefer, you can instead place directives here

include=/etc/nagios/nrpe_local.cfg

Приложение И

Исходные тексты плагинов, не идущих в поставке с пакетом ядра системы.

/usr/lib/nagios/plugins/check_snmp_load.pl

#!/usr/bin/perl -w

# nagios: -epn

############################## check_snmp_load #################

my $Version='1.12';

#

# Help : ./check_snmp_load.pl -h

#

use strict;

use Net::SNMP;

use Getopt::Long;

# Nagios specific

my $TIMEOUT = 15;

my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4);

# SNMP Datas

# Generic with host-ressource-mib

my $base_proc = "1.3.6.1.2.1.25.3.3.1"; # oid for all proc info

my $proc_id = "1.3.6.1.2.1.25.3.3.1.1"; # list of processors (product ID)

my $proc_load = "1.3.6.1.2.1.25.3.3.1.2"; # %time the proc was not idle over last minute

# Linux load

my $linload_table= "1.3.6.1.4.1.2021.10.1"; # net-snmp load table

my $linload_name = "1.3.6.1.4.1.2021.10.1.2"; # text 'Load-1','Load-5', 'Load-15'

my $linload_load = "1.3.6.1.4.1.2021.10.1.3"; # effective load table

# Cisco cpu/load

my $cisco_cpu_5m = "1.3.6.1.4.1.9.2.1.58.0"; # Cisco CPU load (5min %)

my $cisco_cpu_1m = "1.3.6.1.4.1.9.2.1.57.0"; # Cisco CPU load (1min %)

my $cisco_cpu_5s = "1.3.6.1.4.1.9.2.1.56.0"; # Cisco CPU load (5sec %)

# Cisco catalyst cpu/load

my $ciscocata_cpu_5m = ".1.3.6.1.4.1.9.9.109.1.1.1.1.5.9"; # Cisco CPU load (5min %)

my $ciscocata_cpu_1m = ".1.3.6.1.4.1.9.9.109.1.1.1.1.3.9"; # Cisco CPU load (1min %)

my $ciscocata_cpu_5s = ".1.3.6.1.4.1.9.9.109.1.1.1.1.4.9"; # Cisco CPU load (5sec %)

# Netscreen cpu/load

my $nsc_cpu_5m = "1.3.6.1.4.1.3224.16.1.4.0"; # NS CPU load (5min %)

my $nsc_cpu_1m = "1.3.6.1.4.1.3224.16.1.2.0"; # NS CPU load (1min %)

my $nsc_cpu_5s = "1.3.6.1.4.1.3224.16.1.3.0"; # NS CPU load (5sec %)

# AS/400 CPU

my $as400_cpu = "1.3.6.1.4.1.2.6.4.5.1.0"; # AS400 CPU load (10000=100%);

# Net-SNMP CPU

my $ns_cpu_idle = "1.3.6.1.4.1.2021.11.11.0"; # Net-snmp cpu idle

my $ns_cpu_user = "1.3.6.1.4.1.2021.11.9.0"; # Net-snmp user cpu usage

my $ns_cpu_system = "1.3.6.1.4.1.2021.11.10.0"; # Net-snmp system cpu usage

# Procurve CPU

my $procurve_cpu = "1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0"; # Procurve CPU Counter

# Nokia CPU

my $nokia_cpu = "1.3.6.1.4.1.94.1.21.1.7.1.0"; # Nokia CPU % usage

# Bluecoat Appliance

my $bluecoat_cpu = "1.3.6.1.4.1.3417.2.4.1.1.1.4.1"; # Bluecoat %cpu usage.

# Fortigate CPU

my $fortigate_cpu = ".1.3.6.1.4.1.12356.1.8.0"; # Fortigate CPU % usage

# Linkproof Appliance

my $linkproof_cpu= "1.3.6.1.4.1.89.35.1.55.0"; # CPU RE (Routing Engine Tasks)

# 1.3.6.1.4.1.89.35.1.53.0 : Ressource utilisation (%) Considers network utilization and internal CPU utilization

# 1.3.6.1.4.1.89.35.1.54 : CPU only (%)

# 1.3.6.1.4.1.89.35.1.55 : network only (%)

# HP-UX cpu usage (thanks to krizb for the OIDs).

my $hpux_load_1_min="1.3.6.1.4.1.11.2.3.1.1.3.0";

my $hpux_load_5_min="1.3.6.1.4.1.11.2.3.1.1.4.0";

my $hpux_load_15_min="1.3.6.1.4.1.11.2.3.1.1.5.0";

# valid values

my @valid_types = ("stand","netsc","netsl","as400","cisco","cata","nsc","fg","bc","nokia","hp","lp","hpux");

# CPU OID array

my %cpu_oid = ("netsc",$ns_cpu_idle,"as400",$as400_cpu,"bc",$bluecoat_cpu,"nokia",$nokia_cpu,"hp",$procurve_cpu,"lp",$linkproof_cpu,"fg",$fortigate_cpu);

# Globals

my $o_host = undef; # hostname

my $o_community = undef; # community

my $o_port = 161; # port

my $o_help= undef; # wan't some help ?

my $o_verb= undef; # verbose mode

my $o_version= undef; # print version

# check type : stand | netsc | netsl | as400 | cisco | cata | nsc | fg | bc | nokia | hp | lp | hpux

my $o_check_type= "stand";

# End compatibility

my $o_warn= undef; # warning level

my @o_warnL= undef; # warning levels for Linux Load or Cisco CPU

my $o_crit= undef; # critical level

my @o_critL= undef; # critical level for Linux Load or Cisco CPU

my $o_timeout= undef; # Timeout (Default 5)

my $o_perf= undef; # Output performance data

my $o_version2= undef; # use snmp v2c

# SNMPv3 specific

my $o_login= undef; # Login for snmpv3

my $o_passwd= undef; # Pass for snmpv3

my $v3protocols=undef; # V3 protocol list.

my $o_authproto='md5'; # Auth protocol

my $o_privproto='des'; # Priv protocol

my $o_privpass= undef; # priv password

# functions

sub p_version { print "check_snmp_load version : $Version\n"; }

sub print_usage {

print "Usage: $0 [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -w <warn level> -c <crit level> -T=[stand|netsl|netsc|as400|cisco|cata|nsc|fg|bc|nokia|hp|lp|hpux] [-f] [-t <timeout>] [-V]\n";

}

sub isnnum { # Return true if arg is not a number

my $num = shift;

if ( $num =~ /^(\d+\.?\d*)|(^\.\d+)$/ ) { return 0 ;}

return 1;

}

sub help {

print "\nSNMP Load & CPU Monitor for Nagios version ",$Version,"\n";

print "GPL licence, (c)2004-2007 Patrick Proy\n\n";

print_usage();

print <<EOT;

-v, --verbose

print extra debugging information

-h, --help

print this help message

-H, --hostname=HOST

name or IP address of host to check

-C, --community=COMMUNITY NAME

community name for the host's SNMP agent (implies v1 protocol)

-2, --v2c

Use snmp v2c

-l, --login=LOGIN ; -x, --passwd=PASSWD

Login and auth password for snmpv3 authentication

If no priv password exists, implies AuthNoPriv

-X, --privpass=PASSWD

Priv password for snmpv3 (AuthPriv protocol)

-L, --protocols=<authproto>,<privproto>

<authproto> : Authentication protocol (md5|sha : default md5)

<privproto> : Priv protocole (des|aes : default des)

-P, --port=PORT

SNMP port (Default 161)

-w, --warn=INTEGER | INT,INT,INT

1 value check : warning level for cpu in percent (on one minute)

3 value check : comma separated level for load or cpu for 1min, 5min, 15min

-c, --crit=INTEGER | INT,INT,INT

critical level for cpu in percent (on one minute)

1 value check : critical level for cpu in percent (on one minute)

3 value check : comma separated level for load or cpu for 1min, 5min, 15min

-T, --type=stand|netsl|netsc|as400|cisco|bc|nokia|hp|lp

CPU check :

stand : standard MIBII (works with Windows),

can handle multiple CPU.

netsl : linux load provided by Net SNMP (1,5 & 15 minutes values)

netsc : cpu usage given by net-snmp (100-idle)

as400 : as400 CPU usage

cisco : Cisco CPU usage

cata : Cisco catalyst CPU usage

nsc : NetScreen CPU usage

fg : Fortigate CPU usage

bc : Bluecoat CPU usage

nokia : Nokia CPU usage

hp : HP procurve switch CPU usage

lp : Linkproof CPU usage

hpux : HP-UX load (1,5 & 15 minutes values)

-f, --perfparse

Perfparse compatible output

-t, --timeout=INTEGER

timeout for SNMP in seconds (Default: 5)

-V, --version

prints version number

EOT

}

# For verbose output

sub verb { my $t=shift; print $t,"\n" if defined($o_verb) ; }


Подобные документы

  • Разработка структуры локально-вычислительной сети ГБОУ СПО "ВПТ". Обоснование топологии, выбор аппаратного обеспечения для коммутации и сегментации. Установка и настройка сетевых протоколов и служб. Система мониторинга сетевых узлов и сетевого трафика.

    дипломная работа [1,8 M], добавлен 25.10.2013

  • Типы сетевых кабелей локальной вычислительной сети. Особенности установки беспроводного соединения Wi-Fi. Расчет трудоемкости работ по созданию ЛВС, затрат на ее разработку и монтаж. Предполагаемая прибыль от реализации ЛВС, капитальных затрат покупателя.

    курсовая работа [295,9 K], добавлен 27.12.2010

  • Анализ административного программного обеспечения локальной сети. Структура сетевых операционных систем. Планирование и сетевая архитектура локальной сети. Использование сетевых ресурсов на примере предприятия, предоставляющего услуги Интернет-провайдера.

    контрольная работа [112,5 K], добавлен 15.12.2010

  • Анализ и практическая реализация использования администрирования и мониторинга сети на предприятии. Процесс создания карты сети в программе LANState. Сетевые программы для сисадминов, программы мониторинга сети. Описание локальной вычислительной сети.

    курсовая работа [3,6 M], добавлен 15.02.2017

  • Классификация локальной вычислительной сети. Типы топологий локальной вычислительной сети. Модель взаимодействия систем OSI. Сетевые устройства и средства коммуникаций. Виды сетевых кабелей. Конфигурация компьютеров-серверов, техники рабочих станций.

    курсовая работа [1,3 M], добавлен 05.01.2013

  • Топология и принципы администрирования кабельной сети, выбор метода подключения сетевого оборудования. Проектирование локальной вычислительной сети. Оценка затрат на внедрение структурированной кабельной системы и системы бесперебойного питания.

    дипломная работа [1,8 M], добавлен 28.10.2013

  • Выбор спецификации активного и пассивного сетевого оборудования локальной вычислительной сети. Расчет количества кабеля и кабель-каналов. Выбор операционной системы рабочих станций. Настройка серверного, активного сетевого и серверного оборудования.

    курсовая работа [2,5 M], добавлен 18.05.2021

  • Функциональная схема локальной вычислительной сети. Планирование структуры и топология сети. IP–адресация и протокол TCP/IP. Настройка сетевого принтера и антивирусной системы NOD32. Технология прокладки кабельной системы. Технология создания патч-корда.

    курсовая работа [6,0 M], добавлен 08.08.2015

  • Способы классификации сетей. Разработка и описание структуры локальной вычислительной сети, расположенной в пятиэтажном здании. Технические сведения, топология иерархической звезды. Клиентское аппаратное обеспечение. Установка и настройка сервера.

    курсовая работа [58,1 K], добавлен 27.07.2011

  • Подбор пассивного сетевого оборудования. Обоснование необходимости модернизации локальной вычислительной сети предприятия. Выбор операционной системы для рабочих мест и сервера. Сравнительные характеристики коммутаторов D-Link. Схемы локальной сети.

    курсовая работа [1,9 M], добавлен 10.10.2015

Работы в архивах красиво оформлены согласно требованиям ВУЗов и содержат рисунки, диаграммы, формулы и т.д.
PPT, PPTX и PDF-файлы представлены только в архивах.
Рекомендуем скачать работу.