Page 1 of 2

lookup device-id failed: Physical Memory

Posted: Tue Aug 20, 2013 5:25 am
by tmeto
hi!

I'm having trouble with a check on a machine with windows 2000. The machine is virtualized and has 2g ram, but at check shows me this error "lookup failed device-id: Physical Memory" and I dont know that can be ...

any ideas?

Re: lookup device-id failed: Physical Memory

Posted: Tue Aug 20, 2013 9:38 am
by slansing
What check are you running? Can you also show us the command definition and let us know what the command that is actually being run looks like?

Re: lookup device-id failed: Physical Memory

Posted: Wed Aug 21, 2013 2:07 am
by tmeto
this is what you want to see?

define command{
command_name check_disk_snmp
command_line /usr/bin/perl $USER1$/check_disk_snmp.pl -H $HOSTADDRESS$ -s $ARG1$ -d $ARG2$ -u $ARG3$ -w $ARG4$ -c $ARG5$
}

Re: lookup device-id failed: Physical Memory

Posted: Wed Aug 21, 2013 9:30 am
by slansing
Yes, can you also share the command definition as it appears in your service's .cfg file? So we can see what you are using for arguments?

Re: lookup device-id failed: Physical Memory

Posted: Thu Aug 22, 2013 2:01 am
by tmeto
sorry, bad command. :mrgreen:

define service{
use generic-service
hostgroup_name COAATM-CHECK
service_description check memoria
check_command check_winmem_snmp!nagiosica!MB!90%!99%
}

and ....

define command{
command_name check_winmem_snmp
command_line /usr/bin/perl $USER1$/check_disk_snmp.pl -H $HOSTADDRESS$ -s $ARG1$ -d phys -u $ARG2$ -w $ARG3$ -c $ARG4$
}

Re: lookup device-id failed: Physical Memory

Posted: Thu Aug 22, 2013 10:57 am
by abrist
Have you attempted to run the check from the cli?

Code: Select all

/usr/bin/perl /usr/local/nagios/check_disk_snmp.pl -H <ip address of remote host> -s nagiosica -d phys -u MB -w 90% -c 99%

Re: lookup device-id failed: Physical Memory

Posted: Fri Aug 23, 2013 1:59 am
by tmeto
yes, and.....is the same.

root@xxxxx:/usr/local/nagios/etc/losclientes# /usr/bin/perl /usr/local/nagios/libexec/check_disk_snmp.pl -H 172.16.0.3 -s nagiosica -d phys -u MB -w 90% -c 99%
lookup device-id failed: Physical Memory

Re: lookup device-id failed: Physical Memory

Posted: Fri Aug 23, 2013 9:54 am
by abrist
I presume that you have configured snmp on the windows server? Do you have any other snmp checks working on the is windows server? Have you looked at using nsclient instead of snmp?

Re: lookup device-id failed: Physical Memory

Posted: Mon Aug 26, 2013 4:39 am
by tmeto
I can not use nscliente for this case and we have more on that machine check. It may be the version / windows updates? the machine is very old system......

Re: lookup device-id failed: Physical Memory

Posted: Mon Aug 26, 2013 9:26 am
by slansing
I can not use nscliente for this case and we have more on that machine check. It may be the version / windows updates? the machine is very old system......
Was NSClient++ not installing for you? What version of windows are you running?