- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: snmp and ping
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 11:20 PM
03-13-2002 11:20 PM
snmp and ping
1. www user can not ping, I got this error message:
"ping: socket: Permission denied"
but root can ping.
2. I also got this error when I config MRTG.
"SNMP error:
no response received"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 11:37 PM
03-13-2002 11:37 PM
Re: snmp and ping
-r-sr-xr-x bin bin .... ping
2) Is SNMP enabled on your machine ?
# ps -ef|grep snmp
to check ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 11:54 PM
03-13-2002 11:54 PM
Re: snmp and ping
ping is correct,
and I do #ps -ef|grep snmp
it returns:
root 421 1 Mar 6 /usr/sbin/snmpdm
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 12:04 AM
03-14-2002 12:04 AM
Re: snmp and ping
-r-sr-xr-x 1 root bin 24576 Nov 14 2000 /usr/sbin/ping
Change the ownership to root and normal user should be ableto ping again.
As for the snmp q... I need to find out what exactly you did with MRTG, I believe this is a 3rd party monitoring tool ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 12:17 AM
03-14-2002 12:17 AM
Re: snmp and ping
the same as yours. but www
still can not ping.
I got snmp error when I run cfgmaker
cfgmaker --global "WorkDir: /home/www/sng" --global "Options[_]: growright,bits" --ifref=ip abc@116.com > mrtg.cfg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 12:47 AM
03-14-2002 12:47 AM
Re: snmp and ping
# more /etc/snmpd.conf
to confirm this. BTW also look through this document for details on "cfgmaker" command.
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/cfgmaker.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:08 AM
03-14-2002 01:08 AM
Re: snmp and ping
DO you start troubleshoot by try ping and do snmpget (by MRTG) to another snmp client.
look like it's problem with client not properly configure with snmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:09 AM
03-14-2002 01:09 AM
Re: snmp and ping
I run /etc/inetd -c ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:22 AM
03-14-2002 01:22 AM
Re: snmp and ping
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:31 AM
03-14-2002 04:31 AM
Re: snmp and ping
For ping check the permissions of the directory /var/spool/sockets. Make sure that it is rwx to all ie. rwxrwxrwx.
# ll -d /var/spool/sockets
For the no response, make sure that the server is running the snmp daemon. You can verify on the server side by executing:
# netstat -f inet|grep -e 161 -e snmp
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:14 PM
03-14-2002 05:14 PM
Re: snmp and ping
The permission of /var/spool/socket is correct, but when I run
netstat -f inetd|grep -e 161
-e snmp, it returned " inetd:
unknown address family"
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 06:14 PM
03-14-2002 06:14 PM
Re: snmp and ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 06:58 PM
03-14-2002 06:58 PM
Re: snmp and ping
nothing returned.
I think something wrong with
/etc/snmpd.conf, I don't know
how to set "get-community-name"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 07:56 PM
03-14-2002 07:56 PM
Re: snmp and ping
The device you are monitoring has to be expecting an SNMP query (running SNMPD in UNIX land) AND it has to have the same read only (RO) community string. The default is usually "public" but for security reasons you really ought to change it.
If you have any firewalls they will need to be opened to let it through.
To use cfgmaker:
cfgmaker --global "WorkDir: /home/mrtg" public@router.place.xyz > mrtg.cfg
You can leave off the --global "workdir: /home/mrtg" and just add that later in the mrtg.cfg file. Can also just put in the a.b.c.d address instead of the name.
The fact that you are getting no snmp response means that the device either does not do SNMP or the community string is not "public".
Doing
netstat -a |grep 161
on the target box should show if it is going to respond.
If you have a Window box you can get a freeware program getif which will "walk" the snmp tree of a device. I'm sure there is some equivalent for UNIX.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 12:51 AM
03-15-2002 12:51 AM
Re: snmp and ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 12:55 AM
03-15-2002 12:55 AM
Re: snmp and ping
In your /etc/snmpd.conf of the server you are polling, specify:
get-community-name whatever_you_want
This name must be the same as the community name you specified in your mrtg.cfg. It is used in snmpget to query the OID value of your server.
Note however that it is not advisable for you to use "public" as community string as it is widely known and if your snmpd has not been patched and not restricted to specific source addresses, it will be susceptible to DoS attacks.
For security reasons, use a community string that is not easily guessable.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 12:57 AM
03-15-2002 12:57 AM
Re: snmp and ping
Btw, you will need the colon:
get-community-name: whatever_you_want
Hope this helps. Regards.
Steven Sim Kok Leong