LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-30-2019, 04:54 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
SNMP MIB


Hello all,

Is it possible to monitor the status PRI(pmx)?
I ran below command and i got lot of output i guess it can connect via CLI.
snmpwalk -v 2c -c abcd example.com

Code:
root@testuser:~# snmpwalk -v 2c -c abcd example.com
SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software [Denali], ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.3.7, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Sat 04-Aug-18 00:44 by mcpre
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.2068
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (879417) 2:26:34.17
SNMPv2-MIB::sysContact.0 = STRING: TCC +41-61-965-1255
SNMPv2-MIB::sysName.0 = STRING: example.com
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 78

Last edited by 1s440; 02-04-2019 at 04:15 AM.
 
Old 01-30-2019, 07:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by 1s440 View Post
Hello all,
Is it possible to access the voice gateway via the community "abcd" ?
You tell us; did you actually set up that community in the SNMP daemon?
Quote:
Is it possible to monitor the status PRI(pmx)?
Maybe; does the device have the MIB loaded? Did you look at the output you got, to see if it was what you needed?
Quote:
I ran below command and i got lot of output i guess it can connect via CLI.
snmpwalk -v 2c -c abcd example.com
Code:
root@testuser:~# snmpwalk -v 2c -c abcd example.com|head -10
SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software [Denali], ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.3.7, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Sat 04-Aug-18 00:44 by mcpre
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.2068
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (879417) 2:26:34.17
SNMPv2-MIB::sysContact.0 = STRING: TCC +41-61-965-1255
SNMPv2-MIB::sysName.0 = STRING: example.com
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 78
Right. And?
 
Old 01-30-2019, 08:06 AM   #3
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
yes , the community was there before

I am not sure how could i monitor this with nagios. Any suggestions?

Last edited by 1s440; 01-30-2019 at 09:19 AM.
 
Old 01-30-2019, 09:02 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by 1s440 View Post
yes , the community was there before
So then you knew you could monitor it, since you knew SNMP was up, and that community was available.
Quote:
I am not sure how could i monitor this with icinga. Any suggestions?
Read the documentation on icinga. There are many ways to do this, from writing your own script, to adding in MIB's to perform whatever tasks you want. There are icinga forums, libraries of existing plug-ins, and pre-written scripts. Have you checked anything?
 
Old 01-31-2019, 02:08 AM   #5
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
So then you knew you could monitor it, since you knew SNMP was up, and that community was available.

Read the documentation on icinga. There are many ways to do this, from writing your own script, to adding in MIB's to perform whatever tasks you want. There are icinga forums, libraries of existing plug-ins, and pre-written scripts. Have you checked anything?
I have gonethrough the documentation. but i could not get any clues how could i monitor this, thats the reason i am seeking here for help.
 
Old 01-31-2019, 07:49 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by 1s440 View Post
I have gonethrough the documentation. but i could not get any clues how could i monitor this, thats the reason i am seeking here for help.
Sorry, but I find that *VERY* hard to believe, since there are plugins, sample-scripts, and how-to guides on their website. There is even a SPECIFIC PLUGIN for Cisco voice gateways.

If you have a genuine question/problem in getting things to work, we're happy to help. But we aren't going to look things up for you.
 
Old 02-04-2019, 03:29 AM   #7
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Sorry, but I find that *VERY* hard to believe, since there are plugins, sample-scripts, and how-to guides on their website. There is even a SPECIFIC PLUGIN for Cisco voice gateways.

If you have a genuine question/problem in getting things to work, we're happy to help. But we aren't going to look things up for you.
Hi,

The question itself when I ran snmpwalk command I get lots of MIBs and OID'S. If i want to create shell script i should have an idea which MIB is needed to monitor. I just wanted to know how could i start.
 
Old 02-04-2019, 07:18 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by 1s440 View Post
Hi,
The question itself when I ran snmpwalk command I get lots of MIBs and OID'S. If i want to create shell script i should have an idea which MIB is needed to monitor. I just wanted to know how could i start.
You, AGAIN, see their documentation, since (as said), they have sample scripts already there, along with plug-ins to do what you want. Past that, you need to read any of the VERY easily-found bash scripting tutorials...and I even have one in my posting signature. That's how you start.

And we'll go back to "look at their website", because **AGAIN**, they have a plug-in specifically written to monitor Cisco voice equipment. Go get it, load it, and configure it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
Configuring Custom SNMP MIB to Default DELL OMSA SNMP prabakar4all Linux - Server 0 07-29-2011 11:44 AM
SNMP MIB browser glock19 Linux - Networking 1 03-28-2003 03:26 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM
SNMP MIB question arffer Linux - Networking 2 10-30-2000 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration