Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a generic web app MIB that allows custom variables to be sent via SNMP Trap?
    primarykey
    data
    text
    <p>I'm looking for a Management Information Base (MIB) designed for web applications (Note: I'm working in PHP) that I can send multiple variables to my Network Management System via an SNMP Trap. Do I have to design one or is there a solution out there already? </p> <p><strong>More details:</strong></p> <p>Basically I want to send a trap to my Network Management System (Zenoss) whenever there is an error on my web application. I would like to call it in PHP like the following (note: this syntax might not be correct):</p> <p>(<em>Note: obviously, <code>BOSSJONES-NOTIFICATION</code> does not exist; I'm just using it for this example. I'd like to replace it with the MIB I'm looking for, or the one that needs to be designed.</em>)</p> <pre class="lang-php prettyprint-override"><code>&lt;?php const SNMPTRAP = '/usr/bin/snmptrap'; $host = 'zenoss.bossjones.com'; if ( some_random_error() ) { exec( SNMPTRAP . ' -v 2c -c public -L e ' . $host . ' "" BOSSJONES-NOTIFICATION::snmpErrorNotification' . ' device s "192.168.1.121" errorType s "image upload fail"' . ' errorCode i 340 errorMessage s "Could not upload image at path' . ' /path/to/image/blah.gif" ' ); } </code></pre> <p>I understand that the MIB might not have the same parameters, of course, but I'm wondering if theres a general solution out there that I can either "make do with" or learn from, so that I can create my own that works for my purposes?</p> <p>Also, is it possible to send a list of info (like an array) rather than just multiple strings via a trap?</p> <p>Sorry for the long question. Wanted to provide as much details as possible.</p> <p>(<em>PS: Running on a Ubuntu 11.04 Linux box</em>)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload