From: Paul H. <Paul.Hogan@Haworth.com> - 2008-12-16 14:01:00
|
Bill, this was great information! Thank you very much. I was finally able to find the time to get this changed and tested. Paul R. Hogan Computer System Engineer Enterprise Information Technology HAWORTH, INC. One Haworth Center Holland, MI 49423 direct 616.393.3756 fax 616.396.9389 pau...@ha... www.haworth.com NOTICE OF CONFIDENTIALITY: The contents of this e-mail message and any attachments are intended for the addressee(s) named in this message. This communication is intended to be and to remain confidential. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and its attachments. Do not deliver, distribute or copy this message and/or any attachments and, if you are not the intended recipient, unless immediately and permanently deleted, recipient hereby agrees to protect this transmission and any documents, files or previous messages attached (confidential information) in the same manner in which recipient acts to protect his/her/its own confidential information. From: Allen, Bill [mailto:Bil...@fm...] Sent: Friday, November 28, 2008 10:28 PM To: Paul Hogan; net...@li... Subject: RE: Question about setting up IEXpress net-snmp for HP UX 11.23. - HOWTO Importance: High Paul, I am traveling down precisely the same path as you. Also on an HP-UX 11.23 system. I understand that you have installed Net-SNMP via a bundle from IEXpress, good. Ok, I can help you a little bit as I have just got the autostarting of the net-snmp snmpd working on my system this evening. Basically, you will be tweaking the /sbin/init.d/SnmpMaster script to have it point to the new code for Net-SNMP that installed in /opt/iexpress/net-snmp/sbin/snmpd . However, there are some preliminaries. I first recommend that you do a ps -ea | grep -i nmp and see if snmpd is still running. If so, kill it via kill -9 [pid] . Now, you can go ahead and create a valid config for your net-snmp install and test. First, recreate a valid snmpd.conf file and put it in /opt/iexpress/net-snmp/etc/snmp directory (you may need to create a directory, I had to). Just one line is all that is necessary in that snmpd.conf to get things started: rocommunity public That is enough in the file to be a valid config. Granted, you may not want to run using the get-community-name of public, bad security there, but this is just to get things rolling. There is a configuration script at /opt/iexpress/net-snmp/bin/snmpconf that will do a guided creation of a this same file if you prefer. Ok, so now we have a valid snmpd.conf file and have put it where it goes. Now, if you want to make 100% sure you are starting net-snmp with the config file you created call it all explicitly like this: /opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf Now that you have started it, lets test it with a call to snmpwalk and see if we get some valid output, like this: snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.25.3.2 That should fill your terminal screen with plenty of valid output, otherwise it will act stupid and not do anything and you will know that you do not have snmpd started yet. Ok, with config and test done, now is the time to do two things. First, you will want to turn off all the Snmp related scripts on the system. Do this by going to /etc/rc.conf.d and doing a ll *nmp* to locate all the old Snmp related script config files. Edit each one changing 1 to 0 disable the start up. I am assuming you are following the Unix stuff here. If not, write to me on the side and I will be glad to explain. Also, in the SnmpMaster file you will want to leave it set at 1, because that is the script we will modify to do our startup for net-snmp version of snmpd. Next, for the second big thing, edit the /sbin/init.d/SnmpMaster script to call the net-snmp code. I won't explain it step by step, but I will just copy the critical text I changed. You can compare to your original file and see what I did. Here are the critical changes, look for the differences very carefully (particularly that you will be changing snmpdm to snmpd): PATH=/sbin:/usr/sbin:/usr/bin:/opt/iexpress/net-snmp/sbin:/opt/iexpress/ net-snmp/etc/snmp export PATH StartMasterAgent() { setPort eval /opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf ${SNMP_MASTER_OPTIONS:-} set_return StopMasterAgent() { # # Determine PID of process(es) to stop # pid=`ps -e | awk '$NF~/snmpd/ {print $1}'` if [ "X$pid" != "X" ]; then if kill -9 $pid; then echo "snmpd stopped" else set_return echo "Unable to stop snmpd" fi fi } Ok, this is it! You should be able to use /sbin/init.d/SnmpMaster stop and sbin/init.d/SnmpMaster start to stop and start the net-snmp snmpd daemon now. Verify this works by checking you processes and validate. Now, if you can, give that system a reboot and again validate that the snmpd daemon is running. Check the processes and test with snmpwalk again. You should be good to go! Oh yes, how to fix up Orion to use it? I am still discovering that myself, so I don't have anything really useful to offer other than if you have that host already in Orion you should now have options for more things concerning that host than you had before with the HP version of snmpd. Getting my SolarWinds product all set up is my next task. I hope this has been of some help. Good luck! :-) P.S. If some of the other folks on this email group have better suggestions or see where I have made mistakes, please let them chime in. This was my first effort and likely has flaws. BUT IT DOES WORK! Bill Allen Infrastructure Specialist/Engineering Systems Coordinator Unix Systems Administrator E: bil...@fm... FMC Technologies, Inc. From: Paul Hogan [mailto:Paul.Hogan@Haworth.com] Sent: Tuesday, November 25, 2008 7:45 AM To: net...@li... Subject: Question about setting up IEXpress net-snmp for HP UX 11.23. Our company uses the Orion snmp monitoring tool to monitor systems in our environment. We have had no problems monitoring systems with this tool, however our HP UX systems only come with very basic SNMP monitoring enabled (Essentially, up down and that is it). We would like to monitor Disk, CPU, Network interface... More than what the HP UX SNMP system does by default. Through some threads on the internet I was able to find the IEXpress net-snmp bundle that is out of HP's web site and download it. I have installed this software on a HPUX 9000/800 system running 11.23. It appears this bundle was specifically made for this system. Since I am new to the SNMP added software I don't know the steps to get this running and monitoring the system correctly. Can someone give me a step by step on how to set this up on this type of system? If there is something on the web site that gives this step by step that is fine. I am just not seeing a straight forward way to do this, and I don't want to reinvent the wheel if I don't have to. I would also like to make sure the original SNMP daemon that comes with the HP OS is disabled and I am using the net-snmp software for SNMP monitoring. Thanks in advance for any information. Paul R. Hogan Computer System Engineer Enterprise Information Technology HAWORTH, INC. One Haworth Center Holland, MI 49423 direct 616.393.3756 fax 616.396.9389 pau...@ha... www.haworth.com NOTICE OF CONFIDENTIALITY: The contents of this e-mail message and any attachments are intended for the addressee(s) named in this message. This communication is intended to be and to remain confidential. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and its attachments. Do not deliver, distribute or copy this message and/or any attachments and, if you are not the intended recipient, unless immediately and permanently deleted, recipient hereby agrees to protect this transmission and any documents, files or previous messages attached (confidential information) in the same manner in which recipient acts to protect his/her/its own confidential information. |