$PIXmem = snmpwalk("10.26.1.1", "psi911",
"1.3.6.1.2.1.4.20.1.5.10.26.1.1");
echo "PIXmem: $PIXmem";
echo "\n";
?>
Fatal error: Call to undefined function: snmpwalk() in C:\Program
Files\Apache Group\Apache2\htdocs\phpinfo.php on line 2
__
Hey Dave,
Thanks for getting back to me. I figured it out not long before getting this message.
Basically, I init-ed a session with net-snmp, then using the netsnmp_session thing
that returned, I was able to burrow down to the socket that it used. I then just bind
that to the port I wanted, and
Hi,
These errors were generated upon compiling the agent's mibs using Silver
Creek and MGSoft:
Failed! MIB NET-SNMP-AGENT-MIB.txt contains critical syntax errors.
Results of MIB Loading:
NET-SNMP-EXAMPLES-MIB.txt MIB loaded successfully
--> This was related to errors in the DEFVAL clause.
Re
I don't know of any sub-agents, just snmpd itself.
Is there anything I can look to see if there is any sub-agents running?
Thanks,
- Tony Sutton
-Original Message-
From: Robert Story (Users) [mailto:[EMAIL PROTECTED]
Sent: 08 October 2004 19:33
To: Tony Sutton
Cc: 'Dave Shield'; [E
Sun ONE web server (I'm using 6.1sp2) ships with a master agent
(called magt) and a sub agent (httpagt) and I think it has a proxy
agent also (sagt). From the docs I've been able to find
(http://docs.sun.com/source/819-0130-10/agsnmp.html in particular) I
can't seem to get things working.
Although
On Fri, 8 Oct 2004 17:36:42 +0200 Baumgart wrote:
BA> where can i find the available -D Tolen for snmpd and snmptrapd. i mean
BA> tokens like -Dread_conf or -Dmib_init ? Are there others ?
See
http://www.net-snmp.org/faqs/rstory/#tokens
for a command to extract them, and a snapshow from a
On Fri, 8 Oct 2004 10:58:15 +0100 Tony wrote:
TS> netsnmp_udp: send 97 bytes from 0x810b9ff to 127.0.0.1 on fd 9
TS> snmp_agent: end of handle_snmp_packet, asp = 0x80ef8a8
TS> snmpd/select: select( numfds=10, ..., tvp=0xbfffea68)
TS> snmpd/select: returned, count = -1
TS> select: Invalid argument
prashanth raghavan wrote:
Can someone please tell me what the contents of the
snmptrapd.conf file should be? I tried creating a new
file at /usr/local/etc with just the traphandle as its
contents. And then I used the -c option and supplied
the above file as the configuration. But it still
doesnt wo
I'm using:
netsnmp_create_table_data_row()
netsnmp_table_dataset_add_row()
to add rows into my table. Everything seems to work fine.
Now I need to delete a row. How do I do that? I want to
use:
netsnmp_table_dataset_remove_and_delete_row()
It takes two arguments, the 'table' and 'row' st
Dave Shield wrote:
[ Sorry for the delay in responding to this ]
The ./configure process seems to work only when the
compiler, the host, build, and target, and the
endianness are all specified.
That's not the case.
I don't believe I've ever used *any* of those options,
and I have definit
Can someone please tell me what the contents of the
snmptrapd.conf file should be? I tried creating a new
file at /usr/local/etc with just the traphandle as its
contents. And then I used the -c option and supplied
the above file as the configuration. But it still
doesnt work for me.
The -P optio
[ Sorry for the delay in responding to this ]
> My understanding:
> A "simple table" has only one index value,
> and then can have only one level one depth.
That depends on what exactly you mean by a "simple table".
There's a section of the AGENT.txt file that talks about "simple tabl
[ Sorry for the delay in responding to this ]
> The content of the --help output [of configure] is not
> always intelligible.
I'd tend to agree that this help output is somewhat extensive,
and off-putting at first sight. It's a difficult balancing
act between providing sufficient inform
[ Sorry for the delay in responding to this ]
> Does anyone know where i can download a free MIB
> compiler for windows 2000 server?
What exactly do you mean by a MIB compiler?
What are you trying to do?
Is this with the Net-SNMP suite or some other SNMP software?
Dave
-
[ Sorry for the delay in responding to this ]
> I am trying to compile a mib module as a shared object to be used as
> a plugin for the standard agent. The source code is written in C++
> and uses the old ucd-snmp api. I am getting the compilation error:
>
> 'header_generic' undeclared. T
Ahh this is it.. it looks like by default it already knows to use the
/etc/snmp/snmptrapd.conf file, and then I was specifying the -c at the
command line, so that appears to to be it.. Now that I have this set,
it's only sending one email.. thanks so much for your help!
Gabriel
Antonis Papagrig
[ Sorry for the delay in responding to this ]
> I am actualy using a software called nagios which uses a plugin called
> check_traffic to check for trafic using snmp
> I installed the net-snmp 5.1.0 version ... perfectly okay.
>
> now my problem is that i don't know as to how to configu
[ Sorry for the delay in responding to this ]
> Recently i am working on a development of a linux agent for my
> company's nas server, use net-snmp of course.But i can't access its
> main site: www.net-snmp.org, and can't find the new documents and
> tutorial about its newly rele
[ Sorry for the delay in responding to this ]
> I'm executing below command:
> snmpvacm -v2c -c public 10.254.24.245
> createView [-Ce] system 1.3.6.1.2.1.1 7
> I am entering 7 as mask . Is that O.K?
No - that's wrong.
The mask is a *bit* mask referring to each of the subident
Antonis Papagrigoriou wrote:
I used to have the same problem when i run the trap demon with the command
snmptrapd -c /usr/share/snmp/snmptrapd.conf
and the snmptrapd.conf was in its default position (/usr/share/snmp/)
I think because it was parsed twise by the demon. One time because the deamon
[ Sorry for the delay in responding to this ]
> I have two C routine (var_) to handle two tables. To run the
> "snmpwalk -c publick localhost Table1" returned the correct values
> of that table.
>However to run the same command to the second table it returned
> all the values correc
[ Sorry for the delay in responding to this ]
> I seem to have trouble compiling net-snmp on a sun blade 100 on solaris 8...
> i compiled the same version ok on enterprise class machines but i guess
> something in the sun blade is not liking it..
> gcc . -g -O2 -Dsolaris2 -c kernel
[ Sorry for the delay in responding to this ]
> is it possible to several agentX register the same MIB in one master
> agent? How can I do that?
What exactly do you mean by that?
Do you mean different subagents registering different subtrees
that happen to be defined within the same MIB?
[ Sorry for the delay in responding to this ]
> a)I have created a snmp v2 group using the command::
> "snmpvacm -v2c -c public 10.254.24.227 createSec2Group 3 myGroup RWGroup"
> which creates the group "myGroup".
>
> Is it the right method?? Does this only fulfills my requirement of
[ Sorry for the delay in responding to this ]
> I'am going to use mib2c for SIP-COMMON-MIB to builid a subagent.
> Reading documentation I suppose that I cannot invoke mib2c for the
> entire sipCommonMIB, but the only way is to invoke mib2c for every
> group of SIP-COMMON-MIB.
No, that
[ Sorry for the delay in responding to this ]
> what is the difference between using snmp_open() and snmp_open_ex()
> functions?
'snmp_open' is the usual way of creating a "normal" SNMP session.
'snmp_open_ex' is a more flexible interface that allows an application
to support special han
[ Sorry for the delay in responding to this ]
> How can we enable Manager just like that or on some particular port =
> ranging from 1 - 65535? WHat is the significance of enabling Manager?
Sorry - it's not particularly clear what you mean by that question.
If you're talking about the p
[ Sorry for the delay in responding to this ]
> I was trying to testout the snmpget with the command in
> the tutorial, but failed. Can you tell me if there is
> any problem with the test agent or is there anything
> I shall check on my side?
It looks rather as if you've got two different
[ Sorry for the delay in responding to this ]
> I want to create a SET snmp_pdu(using functions provided by the
> library), but I cannot find how to set the value to set.
Probably the place place to start would be 'apps/snmpset.c'
Basically, you'll need to create a suitable PDU, using '
[ Sorry for the delay in responding to this ]
> I just happened to notice 'logmatch' listed in the MIB; I'm intrigued
> (if it does what I think), but there's no doc - can anyone shed some
> light on it, short of me just grubbing through the code?
You're quite correct - there doesn't s
[ Sorry for the delay in responding to this ]
> I have an application which generates trap on some occasion.
>
> My application works perfectly on ia32 machine [but]
> does't seems to send trap on ia64 (IPF) machine... [with]
> same configuration on both the machines.
>
> My appli calls
[ Sorry for the delay in responding ]
> snmpd.conf seems not support system vars?
Yes - that sounds very likely.
Expanding system variables within the config file would need
additional code, which I'm pretty sure won't be there. It
certainly wouldn't happen "automatically".
(Whether th
[ Sorry for the delay in responding to this ]
> I have to enable or disable specific traps in net-snmp implementation.
> These traps are authentication, coldstart, linkup, linkdown and enterprise.
> Is there any way to do so?
There is certainly a mechanism for doing this - the snmpNotifyF
Hello,
where can i find the available -D Tolen for snmpd and snmptrapd. i mean
tokens like -Dread_conf or -Dmib_init ? Are there others ?
Mfg Baumgart
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products
Hi,
I was wondering if anyone could help me with the
following problem.
I have downloaded/untarred and installed the running
snmp agent on my own solaris machine just for practice
in using it.
I have a target board that runs linux and which i need
snmp running on.
1. I was wondering if you know
I used to have the same problem when i run the trap demon with the command
snmptrapd -c /usr/share/snmp/snmptrapd.conf
and the snmptrapd.conf was in its default position (/usr/share/snmp/)
I think because it was parsed twise by the demon. One time because the deamon
checks for a snmptrapd.conf
Gabriel Matthews wrote:
The ONLY problem I see is that I'm getting 2 emails for every trap..
What Net-SNMP version are you using?
If you turn on debugging ("snmptrapd -D"), does it give any clue
whether the "traphandler" directive is *read* in twice (like from
different config files) or *called* t
Chirag Parekh wrote:
After installing the depot for gcc.3.4.2 as well as make that I downloaded from the web-site in your email, when I run the make command still keep getting the same error.
You should re-run "configure".
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
--
Okay, the first command:
snmpd -f -Le
all I got was this:
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Con
Thanks!
I forgot to mention one thing - there is one more option other than the
--disable--xxx. I also have another configure option: --with-install-prefix. Meaning a
tar ball is desired to be created and carried to another system. That's why I used
the --with-install-prefix option. In my cas
> I am hoping to be able to set up a firewall
> between the computer the code will be running on and an SNMP device. I
> therefore would like to be able to open just one port. The problem is
> that it seems the library chooses an arbitrary source port on the local
> co
>There is configure options in 5.11 to allow the unwanted files not
> included in the make install... I had to rolled back to 5.0.6 [and]
> there is no --disable options.
Rather than start fiddling about with all the various makefile,
why not just run "make install" in the specific subdirecto
> I did a ps aux | grep snmp after starting it up and I can see it running in
> the background. But soon, it disappears from the list. Usually 8 to 10 mins
> later on.
Sounds odd.
Try starting the agent in a spare terminal using
snmpd -f -Le
and seeing if it prints anything when it die
43 matches
Mail list logo