SNMP how to? check_snmp plugin
Anders Nerheim
anders at jblinux.net
Wed Oct 16 23:03:11 CEST 2002
have you added check_snmp to your checkcommands.cfg?
like
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C public -o
$ARG1$
}
> I have this configuration in hosts.cfg
>
> define host{
> use generic-host ; Name of host template to use
>
> host_name VG6425BUE
> alias VG6425BUE
> address 192.168.1.254
> check_command check_snmp -H 192.168.1.254 -C public -o ifOperStatus.1
> max_check_attempts 20
> notification_interval 60
> notification_period 24x7
> notification_options d,u,r
> }
>
> When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>
> I got
> Reading configuration data...
>
> Running pre-flight check on configuration data...
>
> Checking services...
> Checked 3 services.
> Checking hosts...
> Error: Host check command 'check_snmp -H 192.168.1.254 -C public -o ifOperStatus.1' specified for host 'VG6425BUE' is not defined anywhere!
> Checked 3 hosts.
> Checking host groups...
> Checked 3 host groups.
> Checking contacts...
>
> If i do
>
> ./check_snmp -H 192.168.1.254 -o ifOperStatus.1
> SNMP OK - up(1)
>
> I works OK!!
>
> Why is it not recognizing the plugin??? Should I set up anything else for this to run??
>
> Thanks
>
> Sergio D. Morilla
> Sistemas
>
> Tipoiti SATIC
> San Martín 647 Piso 2 Tel. : +54 11 4314-4482
> C1004AAM - Buenos Aires Fax : +54 11 4508-6425
> Argentina e-mail smorilla at tipoiti.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: viaVerio will pay you up to
> $1,000 for every account that you consolidate with us.
> http://ad.doubleclick.net/clk;4749864;7604308;v?
> http://www.viaverio.com/consolidator/osdn.cfm
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
More information about the Users
mailing list