Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
p.postai
Hi! I tested on my ix2-200 at office and the memory error ocurrs.
After i checked OIDs from the memory check, i found differences, changin and now it's working fine now.
I modified the code, excanging memfree and memused and collected different OID
memtotal: .1.3.6.1.2.1.25.2.3.1.5.1
memused : .1.3.6.1.2.1.25.2.3.1.6.1
Old code:
mem) memtotal=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.4.1.2021.4.5.0)
memfree=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.4.1.2021.4.11.0)
memused=$(( $memtotal - $memfree))
-
New code:
mem) memtotal=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.2.1.25.2.3.1.5.1)
memused=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.2.1.25.2.3.1.6.1)
memfree=$(( $memtotal - $memused))
Hope it helps you, and thanks for this nice plugin!
After i checked OIDs from the memory check, i found differences, changin and now it's working fine now.
I modified the code, excanging memfree and memused and collected different OID
memtotal: .1.3.6.1.2.1.25.2.3.1.5.1
memused : .1.3.6.1.2.1.25.2.3.1.6.1
Old code:
mem) memtotal=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.4.1.2021.4.5.0)
memfree=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.4.1.2021.4.11.0)
memused=$(( $memtotal - $memfree))
-
New code:
mem) memtotal=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.2.1.25.2.3.1.5.1)
memused=$(snmpwalk -v 3 -u ${user} -O vqeU ${host} .1.3.6.1.2.1.25.2.3.1.6.1)
memfree=$(( $memtotal - $memused))
Hope it helps you, and thanks for this nice plugin!