| 1 |
/* |
| 2 |
* Network Node Manager MRTG menu items |
| 3 |
* |
| 4 |
* $Date: 2002/02/26 10:16:36 $ |
| 5 |
*/ |
| 6 |
|
| 7 |
Application "MRTG Actions" |
| 8 |
{ |
| 9 |
Version "NNM Release B.05.01 Jun 21 1997"; |
| 10 |
|
| 11 |
Description { |
| 12 |
"Enables you to add new targets for MRTG to graph.", |
| 13 |
"See Laurie for more details" |
| 14 |
} |
| 15 |
|
| 16 |
Copyright { |
| 17 |
"Copyright (c) 1990-1999 Net Improvement Consulting Pty Limited", |
| 18 |
"All rights reserved." |
| 19 |
} |
| 20 |
|
| 21 |
/* |
| 22 |
** Tools |
| 23 |
*/ |
| 24 |
|
| 25 |
MenuBar <100> "Misc" _i |
| 26 |
{ |
| 27 |
<90> "MRTG Actions" _R f.menu "MRTG Actions"; |
| 28 |
} |
| 29 |
|
| 30 |
Menu "MRTG Actions" |
| 31 |
{ |
| 32 |
<100> "Add/Update Target/s" _A CONTEXT "AllContexts || isIP" f.action "MRTGADD"; |
| 33 |
<100> "Stop Collecting Target/s" _S CONTEXT "AllContexts || isIP" f.action "MRTGDEL"; |
| 34 |
<100> "Show Current Target/s" _C CONTEXT "AllContexts || isIP" f.action "MRTGSHO"; |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
Action "MRTGADD" |
| 39 |
{ |
| 40 |
SelectionRule (isNode || isInterface) && isIP; |
| 41 |
NameField "IP Hostname", "IP Address"; |
| 42 |
Command "perl /opt/mrtg/run/ovadd ${OVwSelections}"; |
| 43 |
} |
| 44 |
|
| 45 |
Action "MRTGDEL" |
| 46 |
{ |
| 47 |
SelectionRule (isNode || isInterface) && isIP; |
| 48 |
NameField "IP Hostname", "IP Address"; |
| 49 |
Command "perl /opt/mrtg/run/ovdel ${OVwSelections}"; |
| 50 |
} |
| 51 |
|
| 52 |
Action "MRTGSHO" |
| 53 |
{ |
| 54 |
Command "perl /opt/mrtg/run/ovsho"; |
| 55 |
} |
| 56 |
|
| 57 |
} |