Re: Monitoring AutoFS in SNMP

2010-12-09 Thread Brian


--- On Tue, 3/23/10, Brian kimh...@yahoo.com wrote:

 From: Brian kimh...@yahoo.com
 Subject: Monitoring AutoFS in SNMP
 To: Debian User debian-user@lists.debian.org
 Date: Tuesday, March 23, 2010, 10:00 AM
 I am trying to find a MIB to monitor
 AutoFS but everything I find is tied to the current pid
 AutoFS is running under which of course changes each time it
 is restarted making it useless as a monitoring metric.
 
 Has anyone setup SNMP to monitor AutoFS or a similar type
 of daemon on a Debain system?
 
 Thanks,
 
 Brian
 

I ran across the solution to this and thought I would share it.  

By default Debian systems are not configured to have processes monitored by 
SNMP but it can be enabled by editing the /etc/snmp/snmpd.conf file.  To do so 
look for the Process checks section about a third of the way down in the file 
and to monitor autofs you would enter something like this:

proc automount

You can do something more sophisticated if you wish but it is not necessary.  
There is plenty of documentation within the snmpd.conf file that you really 
don't have to go anywhere else for more information in most applications.  

Once again the Debian developers have made it so blatantly obvious that I 
completely missed it.  I am sure the package maintainer is shaking their fist 
at the sky yelling, Just how simple do I have to make it!

Debian is the best.

Thanks all,

Brian



  


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/743956.21210...@web33803.mail.mud.yahoo.com



RE: Monitoring AutoFS in SNMP

2010-03-24 Thread Brian
 
 If it spawns a new process each time it mounts a new
 partition, would it
 not have a parent process that would at least be constant
 on the server?
 If that's the case, maybe you should just monitor the
 parent process.
 Otherwise, it would make sense to monitor a partition
 instead of a pid
 for a specific spawned process.
 
 James
 

It looks like the parent process snmp mib is also tied to it's pid and would 
change whenever the daemon is restarted.

I am beginning to wonder if you can monitor Debian daemons at all with snmp.

Brian



  


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/358448.84179...@web33804.mail.mud.yahoo.com



Monitoring AutoFS in SNMP

2010-03-23 Thread Brian
I am trying to find a MIB to monitor AutoFS but everything I find is tied to 
the current pid AutoFS is running under which of course changes each time it is 
restarted making it useless as a monitoring metric.

Has anyone setup SNMP to monitor AutoFS or a similar type of daemon on a Debain 
system?

Thanks,

Brian



  


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/590915.68384...@web33804.mail.mud.yahoo.com



Re: Monitoring AutoFS in SNMP

2010-03-23 Thread Ron Johnson

On 2010-03-23 09:00, Brian wrote:

I am trying to find a MIB to monitor AutoFS but everything I find
is tied to the current pid AutoFS is running under which of

 course changes each time it is restarted making it useless as a
 monitoring metric.

???  Isn't that a *good* thing?

I'd look at the restart section of the autofs startup script to 
see if there's a way to regenerate the MIB when you restart autofs.


Maybe, though, that's too hackish.

--
History does not long entrust the care of freedom to the weak
or the timid.  Dwight Eisenhower


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4ba8cdbf.7050...@cox.net



RE: Monitoring AutoFS in SNMP

2010-03-23 Thread James Wu

 I am trying to find a MIB to monitor AutoFS but everything I 
 find is tied to the current pid AutoFS is running under which 
 of course changes each time it is restarted making it useless 
 as a monitoring metric.

I'm not familiar with autofs but if you do a snmpwalk for OID
.1.3.6.1.2.1.25.2.3.1, you will find a listing of all the mounted
partitions, maybe instead of monitoring autofs, monitor the existence of
a specific partition instead? I assume that's why you'd want to monitor
autofs in the first place anyways.

James


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218011a8...@ersbs2.eyereturn.local



Re: Monitoring AutoFS in SNMP

2010-03-23 Thread Brian
  I am trying to find a MIB to monitor AutoFS but
 everything I find
  is tied to the current pid AutoFS is running under
 which of
  course changes each time it is restarted making it
 useless as a
  monitoring metric.
 
 ???  Isn't that a *good* thing?
 
 I'd look at the restart section of the autofs startup
 script to see if there's a way to regenerate the MIB when
 you restart autofs.
 
 Maybe, though, that's too hackish.
 

I am sure it is a *good* thing security wise but it seems to be hampering 
usability at the moment.

I don't think you can rewrite a MIB on the fly.  I am no expert but I think 
they are written as products are developed then distributed as a support 
service.

I am curious though, it there a way to force a daemon to take a specific pid at 
startup?

Thanks,  Brian






--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/71641.50758...@web33808.mail.mud.yahoo.com



RE: Monitoring AutoFS in SNMP

2010-03-23 Thread Brian

  I am trying to find a MIB to monitor AutoFS but
 everything I 
  find is tied to the current pid AutoFS is running
 under which 
  of course changes each time it is restarted making it
 useless 
  as a monitoring metric.
 
 I'm not familiar with autofs but if you do a snmpwalk for
 OID
 .1.3.6.1.2.1.25.2.3.1, you will find a listing of all the
 mounted
 partitions, maybe instead of monitoring autofs, monitor the
 existence of
 a specific partition instead? I assume that's why you'd
 want to monitor
 autofs in the first place anyways.
 
 James
 
We are using autofs to mount cdrom and dvd iso images.  There are nearly 100 of 
them.  Too many to really monitor individually so we wanted to just monitor 
autofs.  It looks to me like each auto.* file in /etc spawns it's own process 
and pid.  And the pid changes each time the daemon is restarted or the mount 
point expires and is then re-mounted.  If we could just monitor the pid spawned 
by auto.master I think that would do it for us.  I asked in another reply in 
this thread if a daemon could be assigned a pid but don't have a response yet.

Thanks, Brian


  


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/191038.55257...@web33808.mail.mud.yahoo.com



RE: Monitoring AutoFS in SNMP

2010-03-23 Thread James Wu

 We are using autofs to mount cdrom and dvd iso images.  There 
 are nearly 100 of them.  Too many to really monitor 
 individually so we wanted to just monitor autofs.  It looks 
 to me like each auto.* file in /etc spawns it's own process 
 and pid.  And the pid changes each time the daemon is 
 restarted or the mount point expires and is then re-mounted.  
 If we could just monitor the pid spawned by auto.master I 
 think that would do it for us.  I asked in another reply in 
 this thread if a daemon could be assigned a pid but don't 
 have a response yet.

If it spawns a new process each time it mounts a new partition, would it
not have a parent process that would at least be constant on the server?
If that's the case, maybe you should just monitor the parent process.
Otherwise, it would make sense to monitor a partition instead of a pid
for a specific spawned process.

James


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218011a8...@ersbs2.eyereturn.local