[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
[OT]Adding MIBs to netSNMP
I know there are a few *nix Gurus around so wondering if anyone can help...
I have some software which uses NetSNMP via some PHP pages running via
apache and I have a custom MIB I am looking at. I can use the MIB to get
names for OIDs via the command line by either forcing the command line util
to use all my MIBs (-m ALL) or by adding it to $HOME/.snmp/snmp.conf.
Now as far as I can tell a PHP script is executed by apache as user
"nobody". On my install (a pretty default RedHat8 + Apache) the
home dir for
"nobody" is "/". So I added a "/.snmp" dir
and snmp.comf file, then set
owner and group to "nobody". Now it works - the PHP script is
making use of
the new custom MIB ..... BUT
is this safe ? is there a better way ?
Thanks
Dean
ls -al .*
.snmp:
total 12
drwxr-xr-x 2 nobody nobody 4096 Nov 23 16:37 .
drwxr-xr-x 20 root root 4096 Nov 23 16:37 ..
-rw-r--r-- 1 nobody nobody 10 Nov 23 16:37 snmp.conf
Home |
Main Index |
Thread Index
|