Koozali.org: home of the SME Server

SMNP and monitoring SME

Offline Drifting

  • *****
  • 431
  • +0/-0
SMNP and monitoring SME
« on: October 07, 2006, 04:50:16 PM »
Hi.

I have been using a really good program to monitor SNMP on windows boxes. It's called PRTG. I now would like to monitor my SME server, I did read somewhere that SNMP was installed but not configured? (net-snmp)

The only comment I saw was the usual read the Net_SNMP website, which is all very well if you understand snmp fully, and the quirks from standard Linux that SME pulls. (Both of which I don't)

So if some kind person could explain what I need to do to be able to monitor my sme box remotely I would be most greatfull.

Please do not reply saying use MRTG or other such program, I have made the investment in PRTG and I know the interface.

Paul.
Infamy, Infamy, they all have it in for me!

Offline drurydj

  • *
  • 8
  • +0/-0
    • http://www.hvacc.net
Monitoring with SNMP (Bandwidth)
« Reply #1 on: January 31, 2007, 05:34:08 PM »
After doing this I was able to setup prtg as other servers to log bandwidth of both interfaces.

SME 7.1

#1 - You have to allow access to service from lan (/etc/hosts.allow).
#2 - Edit /etc/snmp/snmp.conf.    File is just an example file.   Making the top look like below will make public community read only to all.
#3 - Restart snmpd (I used /etc/init.d/snmpd restart).  Seems to have worked, not sure if its "right" way to restart.
#4 - Unsure but I may have already had net-snmp up and running from sme7admin contrib.

####
# First, map the community name "public" into a "security name"

#       sec.name  source          community
com2sec notConfigUser  default       public

#       groupName      securityModel securityName
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

#       name           incl/excl     subtree         mask(optional)
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1

##           incl/excl subtree                          mask
view all    included  .1                               80
view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc

##                context sec.model sec.level prefix read   write  notif
access notConfigGroup ""      any       noauth    0      all    none   none

Offline alext

  • ****
  • 91
  • +0/-0
Re: SMNP and monitoring SME
« Reply #2 on: April 28, 2008, 02:21:05 PM »
Hi,
I tried following your instructions but got stuck on the first one:

"#1 - You have to allow access to service from lan (/etc/hosts.allow)."

Typing /etc/hosts.allow at the command prompt I got:

 
-bash: /etc/hosts.allow  :permission denied

Did I miss something?

Cheers
...

Offline byte

  • *
  • 2,183
  • +2/-0
Re: SMNP and monitoring SME
« Reply #3 on: April 28, 2008, 06:57:50 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SMNP and monitoring SME
« Reply #4 on: April 28, 2008, 07:21:03 PM »
Typing /etc/hosts.allow at the command prompt I got:

 
-bash: /etc/hosts.allow  :permission denied

Did I miss something?
Yes it is a text file not an executable so direct invocation will not work. You need to use a text editor like pico, nano or vi.

Because (almost) all configuration files are under the template regime you should not edit them manually but instead create a configuration template as direct modifications will get lost over time, due to installation of new features, upgrades or other configuration changes. For more information on the template system have a look in the SME Server Developers Guide linked in the wiki.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)