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?
lookup device-id failed: Physical Memory
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: lookup device-id failed: Physical Memory
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
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$
}
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$
}
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: lookup device-id failed: Physical Memory
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
sorry, bad command.
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$
}
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
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%
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: lookup device-id failed: Physical Memory
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
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
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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: lookup device-id failed: Physical Memory
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......
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: lookup device-id failed: Physical Memory
Was NSClient++ not installing for you? What version of windows are you running?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......