Hi Jonathan, list,

if you just omit the custom oid, the standard extTable gets populated with the 
information. It would read like:
exec myCheck /bin/sh mycheck.sh

Several advantages here:

-       no need to write a custom mib

-       the information is present in OneClick already (System Resources -> 
System Information -> External Application Monitors)

-       you can just go on creating a watch with a formula similar to 
(extResult != 0) on the UCD submodel

Mit freundlichen Gruessen - Yours sincerely

Raphael Franck
Senior System Engineer
Infrastructure Services & Support

Email: [email protected]<mailto:[email protected]>

Europaring 34-40, 50170 Kerpen, Nordrhein-Westfalen, Germany



Von: ROUSSEAUX Jonathan [mailto:[email protected]]
Gesendet: Freitag, 16. Oktober 2009 11:49
An: spectrum
Betreff: [spectrum] Writing a MIB

Hello,

I'm trying to use the UCDavis Extensible section to monitor various stuffs.

I use a script that return 0 or 1

In the snmpd.conf:

exec .1.3.6.1.4.1.2021.69 myCheck /bin/sh mycheck.sh

If I do a get on 1.3.6.1.4.1.2021.69.100.1 I've the result returned by my 
script.

Then my problem is to map the result in Spectrum because I need a MIB for that.


I tried the following:

bastesterrs OBJECT IDENTIFIER ::= { ucdavis 69 }

bastesterrIndex OBJECT-TYPE
    SYNTAX       Integer32
    MAX-ACCESS          read-only
    STATUS       current
    DESCRIPTION
             "Bogus Index for bastesterrs (always 0)."
    ::= { bastesterrs 1 }

bastesterrNames OBJECT-TYPE
    SYNTAX       DisplayString
    MAX-ACCESS          read-only
    STATUS       current
    DESCRIPTION
             "bastest"
    ::= { bastesterrs 2 }

bastesterrErrorFlag OBJECT-TYPE
    SYNTAX       Integer32
    MAX-ACCESS          read-only
    STATUS       current
    DESCRIPTION
             "A Error flag to indicate trouble with the agent.  It
              goes to 1 if there is an error, 0 if no error."
    ::= { bastesterrs 100 }

bastesterrErrMessage OBJECT-TYPE
    SYNTAX       DisplayString
    MAX-ACCESS          read-only
    STATUS       current
    DESCRIPTION
             "An error message describing the problem (if one exists)."
    ::= { bastesterrs 101 }



But this doesn't work and I've a snmp error: noSuchName

Does anyone have an idea for that?


Thanks in advance,

___________________________________________________________
Jonathan Rousseaux
Operations Support - Network and System Management
Axa Tech NESD

Postal Address:
Bd du Souverain, 25 - B-1170 Bruxelles, Belgium
Int.Post: W04/687

Visitors Address:
Avenue Marcel Thiry, 208 - B-1200 Bruxelles, Belgium

[email protected]<mailto:[email protected]>
Tel. : +32 2 62 29 045  - Fax : +32 2 62 29 110

[cid:[email protected]]











-----Disclaimer-----



This message may contain confidential information intended solely for the use 
of the named addressee. If you are not

the intended recipient, you should not read, use, disclose or reproduce the 
content of this message. If you have

received this message by mistake, please notify the sender immediately. Any 
views or opinions presented in this

message are solely those of the author and do not necessarily represent those 
of AXA Belgium, AXA Bank Europe,

AXA Tech Belgium GIE - ESV or any other entity of the AXA Group, unless 
otherwise stated by the sender and duly

authorized by the said companies.



---------------------

 *   --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]


-----------------------------------
Computacenter AG & Co. oHG, mit Sitz in Kerpen (Amtsgericht Köln HRA 18096)
Vertretungsberechtigte Gesellschafter:
Computacenter Aktiengesellschaft, mit Sitz in Köln (Amtsgericht Köln HRB 28384)
Vorstand: Oliver Tuszik (Vorsitzender), Dr. Karsten Freihube, Hans-Georg 
Freitag, Frank Kottmann, Reiner Louis
Aufsichtsrat: Michael Norris (Vorsitzender)
Computacenter Management GmbH, mit Sitz in Köln (Amtsgericht Köln HRB 28284)
Geschäftsführer: Ulrich Irnich, Jürgen Stauber
Visit us on the Internet: http://www.computacenter.de
Visit our Online-Shop: https://shop.computacenter.de

This email is confidential. If you are not the intended recipient, you must not 
disclose or use the information contained in it. If you have received this mail 
in error, please tell us immediately by return email and delete the document.
-----------------------------------

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

<<inline: image001.jpg>>

Reply via email to