[rtg] Targetmaker view.php - duplicating graphs
trefalgar at realitybytes.net
trefalgar at realitybytes.net
Fri Jan 11 12:06:21 EST 2008
Is "sorta" an acceptable answer? ;)
The agent in question doesn't support the NetSNMP 'test' OID. I have
the custom module configured to use class load and memory.
The HOST module and NetSNMP module share cpu and disk - order.cfg
places HOST at the end. NetSNMP isn't supported by X agent, even
though it's included earlier since HOST is at +9999 (if I'm reading
things right), but it doesn't duplicate the data (listing cpu and disk
under both HOST and NetSNMP), and correctly shows it once under HOST.
I tried applying this to my custom module, and it didn't change
anything. I'm fairly confident this is a display issue, and not a
poller issue.
I have a feeling I'm missing something embarrassingly obvious.
Jacob
Quoting "Brian T. O'Neill" <btoneill at misplaced.net>:
> You need to look at the class's, and also the order file. The order file
> is in the modules directory as order.cfg. The lower the value the sooner
> it will be run. So, if you want your agents to do memory and cpu ahead
> of netsnmp, you should put in like:
> myagentname:.*:-300
>
> That will cause the module named myagentname to be loaded before netsnmp
> is. But, you also need to add in the proper class in your module so that
> when netsnmp runs, netsnmp will not add in its memory and cpu classes as
> it see's another module has already loaded that class.
>
> Make sense?
>
> Brian
>
>
> Quoting trefalgar at realitybytes.net (trefalgar at realitybytes.net) from :
>> I've added a custom module to Targetmaker for pulling memory/load from
>> a custom SNMP agent. When the host is loaded, it displays memory or
>> load it lists it twice - once for NetSNMP and once for the custom
>> module/agent.
>>
>> I don't believe I've done anything wrong, but I'm not finding how I
>> can correct this problem from within the Targetmaker config or
>> view.php (though calling me new to php would be a compliment).
>>
>> Any assistance?
>>
>> Jacob
>>
>> _______________________________________________
>> RTG mailing list
>> RTG at lists.grdata.com
>> http://lists.grdata.com/mailman/listinfo/rtg
>
> --
> btoneill at misplaced.net
>
> ****************************************************************************
> UNIX is simple and coherent, but it takes a genius (or at any rate a
> programmer) to understand and appreciate the simplicity." - Dennis Ritchie
> ****************************************************************************
>
More information about the RTG
mailing list