RE: Monitoring AutoFS in SNMP




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-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/FFFA2CACDB4D5C44A24B093011381218011A8D89@xxxxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • RE: Monitoring AutoFS in SNMP
    ... not have a parent process that would at least be constant ... maybe you should just monitor the ... it would make sense to monitor a partition ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Running script as admin in Win7
    ... I found the ShellExecute method via a google search and it works for ... method and monitoring StdOut to monitor when the execution was done. ... ' Start process and get its PID ... ' Use only at the command prompt under cscript.exe host ...
    (microsoft.public.scripting.vbscript)
  • Re: [take 3] Use pid in inotify events.
    ... changes done by the current PID? ... useful to other applications that want to monitor the whole file system ...
    (Linux-Kernel)
  • Win32_Process.Create question
    ... deletion events on the remote machine. ... When I execute the above script, my process creation monitor script ... returns the newly created PID and errReturn has a value "0":)) ...
    (microsoft.public.windowsxp.wmi)
  • Re: Process monitoring
    ... pid might get recycled. ... A much cleaner design is to fork+execthe program to monitor, ... efficient way of detecting process termination. ... cpu usage information from another process consists to parse the ...
    (comp.os.linux.development.apps)