Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Dec 17, 2015 12:08 pm
Looking at the results, can you try this?
Code: Select all
snmpwalk 10.30.4.23 -c media -v2c | grep sysUpTimeInstance
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 18, 2015 4:45 am
hsmith wrote: Looking at the results, can you try this?
Code: Select all
snmpwalk 10.30.4.23 -c media -v2c | grep sysUpTimeInstance
Hi Hsmith,
this was the OutPut for it.
Code: Select all
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (268866336) 31 days, 2:51:03.36
and then the Console Stuck at one point.
Any Help ?
thanks
SJ
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 18, 2015 10:35 am
That's the uptime, correct?
What do you mean the console stuck?
It takes awhile to run the SNMPWalk, but the grep is only making it show results that have sysUpTimeInstance, so it doesn't look like it is doing anything.
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 18, 2015 10:57 am
hsmith wrote: That's the uptime, correct?
What do you mean the console stuck?
It takes awhile to run the SNMPWalk, but the grep is only making it show results that have sysUpTimeInstance, so it doesn't look like it is doing anything.
So
snmpwalk command I got the switch uptime but with
./check _snmp it still didn't work.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 18, 2015 11:14 am
Can you show me the check_snmp command you're running and the output?
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 18, 2015 11:35 am
hsmith wrote: Can you show me the check_snmp command you're running and the output?
Code: Select all
./check_snmp -H 10.30.4.23 -c Media -o sysUpTimeInstance
./check_snmp -H 10.30.4.23 -c Media -o sysUpTimeInstance.0
And the output is plug in timed out as the heading of my thread
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 18, 2015 12:11 pm
Can you try -c media instead of -c Media? I don't know if it's case sensitive, but I wouldn't be surprised.
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Mon Dec 21, 2015 7:49 am
hsmith wrote: Can you try -c media instead of -c Media? I don't know if it's case sensitive, but I wouldn't be surprised.
Hi Hsmith,
I have used both Capital and Small Case but it didnt give me the Uptime of switch.
i am only having problem to get the Value of
Uptime, .
rest of the service like, free memory , cpu and ram usage i can get with OID's of all Hp switches.
please Help
SJ
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Mon Dec 21, 2015 10:30 am
Code: Select all
./check_snmp -H 10.30.4.23 -c media -P 2c -o sysUpTimeInstance
How about this one?
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Mon Dec 21, 2015 10:47 am
hsmith wrote: Code: Select all
./check_snmp -H 10.30.4.23 -c media -P 2c -o sysUpTimeInstance
How about this one?
HI Hsmith,
My Problem is Finally Solved out. and i want to brief here , how it works.
STEPs:
Extract the MIB on the Nagios Server in /usr/share/snmp/mib
Define the Service like this.
# Monitor uptime via SNMP
Code: Select all
define service{
use generic-service
hostgroup_name HP-SWITCHES
service_description Uptime
check_command check_snmp!-C media -o sysUpTime.0 -m all
}
Thanks Hsmith and everyone who replied to this Thread, Truley speaking without your help, i will not be able to solve this out.
thanks