[AGENT++] agentpp and nagios
Ashish Lal
ashishlal.work at gmail.com
Mon Aug 27 05:41:31 CEST 2012
Hi Jens,
Thanks.
I get the following errors when building on Ubuntu Linux 11.10. I took
the sources and build scripts from http://www.netbsd.org/~sno/smart-snmpd.
All I did was to download and untar the sources, build-smart-snmpd.linux
and build-smart-snmpd and run "build-smart-snmpd".
Are we missing any configuration option? Appreciate any help and
pointers in getting rid of these errors.
Regards,
--Ashish
libtool: link: g++ -g -O2 -pthread -o smart-snmpd agent.o cmndline.o
config.o datasource.o mibobject.o pwent.o resourcelimits.o
updatethread.o ui.o smart-snmpd.o tools.o log4cplus.o
-L/sysmgmt/opt/smart-snmpd-gcc/lib
/sysmgmt/opt/smart-snmpd-gcc/lib/libsnmp++.so
/sysmgmt/opt/smart-snmpd-gcc/lib/libagent++.so
/sysmgmt/opt/smart-snmpd-gcc/lib/libstatgrab.so
/sysmgmt/opt/smart-snmpd-gcc/lib/liblog4cplus.so
/sysmgmt/opt/smart-snmpd-gcc/lib/libconfuse.so
../src/mibutils/.libs/libmibutils.a
../src/mibs/statgrab/.libs/libsg_mibs.a
../src/mibs/extcmd/.libs/libext_mibs.a -ldl -pthread -Wl,-rpath
-Wl,/sysmgmt/opt/smart-snmpd-gcc/lib -Wl,-rpath
-Wl,/sysmgmt/opt/smart-snmpd-gcc/lib
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcestatgrab.o): In
function `SmartSnmpd::DataSourceStatgrab::ShutdownStatgrab()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:107:
undefined reference to `sg_shutdown'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:111:
undefined reference to `sg_get_error'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:111:
undefined reference to `sg_str_error'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:112:
undefined reference to `sg_get_error_arg'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcestatgrab.o): In
function
`SmartSnmpd::DataSourceStatgrab::report_sg_error(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:128:
undefined reference to `sg_get_error_details'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:136:
undefined reference to `sg_strperror'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:131:
undefined reference to `sg_str_error'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:138:
undefined reference to `sg_get_error'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:140:
undefined reference to `sg_str_error'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:152:
undefined reference to `sg_get_error'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:152:
undefined reference to `sg_str_error'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcestatgrab.o): In
function `SmartSnmpd::DataSourceStatgrab::InitStatgrab()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:34:
undefined reference to `sg_init'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:93:
undefined reference to `sg_set_valid_filesystems'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcestatgrab.cpp:49:
undefined reference to `sg_get_valid_filesystems'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcecpu.o): In function
`SmartSnmpd::DataSourceCPU::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcecpu.cpp:187:
undefined reference to `sg_get_cpu_stats'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcedaemonstatus.o): In
function `SmartSnmpd::DataSourceDaemonStatus::findCurrentProcessStats()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcedaemonstatus.cpp:127:
undefined reference to `sg_get_process_stats'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcediskio.o): In function
`SmartSnmpd::DataDiff<sg_disk_io_stats*,
SmartSnmpd::calc_diff<sg_disk_io_stats*> >::freeItem(sg_disk_io_stats*&)':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcediskio.cpp:48:
undefined reference to
`sg_free_stats_buf'../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcediskio.o):
In function `SmartSnmpd::DataSourceDiskIO::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcediskio.cpp:179:
undefined reference to `sg_get_disk_io_stats_r'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcediskio.o): In function
`SmartSnmpd::calc_diff<sg_disk_io_stats*>::operator()(sg_disk_io_stats*
const&, sg_disk_io_stats* const&) const':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcediskio.cpp:35:
undefined reference to `sg_get_disk_io_stats_diff_between'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcediskio.o): In function
`SmartSnmpd::DataSourceDiskIO::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcediskio.cpp:179:
undefined reference to `sg_get_disk_io_stats'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcediskio.cpp:212:
undefined reference to `sg_get_nelements'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcefilesystem.o): In
function `SmartSnmpd::DataSourceFileSystem::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcefilesystem.cpp:124:
undefined reference to `sg_get_fs_stats'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcehostinfo.o): In
function `SmartSnmpd::DataSourceHostInfo::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcehostinfo.cpp:97:
undefined reference to `sg_get_host_info'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourceload.o): In function
`SmartSnmpd::DataSourceLoad::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourceload.cpp:96:
undefined reference to `sg_get_load_stats'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcememory.o): In function
`SmartSnmpd::DataSourceMemory::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcememory.cpp:94:
undefined reference to `sg_get_mem_stats'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcememory.cpp:106:
undefined reference to `sg_get_swap_stats'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcememory.cpp:106:
undefined reference to `sg_get_swap_stats'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcenetworkio.o): In
function `SmartSnmpd::DataDiff<sg_network_io_stats*,
SmartSnmpd::calc_diff<sg_network_io_stats*>
>::freeItem(sg_network_io_stats*&)':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcenetworkio.cpp:48:
undefined reference to `sg_free_stats_buf'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcenetworkio.o): In
function `SmartSnmpd::DataSourceNetworkIO::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcenetworkio.cpp:186:
undefined reference to `sg_get_network_io_stats_r'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcenetworkio.o): In
function
`SmartSnmpd::calc_diff<sg_network_io_stats*>::operator()(sg_network_io_stats*
const&, sg_network_io_stats* const&) const':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcenetworkio.cpp:35:
undefined reference to `sg_get_network_io_stats_diff_between'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourcenetworkio.o): In
function `SmartSnmpd::DataSourceNetworkIO::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcenetworkio.cpp:186:
undefined reference to `sg_get_network_io_stats'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourcenetworkio.cpp:283:
undefined reference to `sg_get_nelements'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourceprocess.o): In
function `SmartSnmpd::DataSourceProcess::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourceprocess.cpp:125:
undefined reference to `sg_get_process_stats_r'
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourceprocess.cpp:260:
undefined reference to `sg_free_stats_buf'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourceswapio.o): In function
`SmartSnmpd::DataSourceSwapIO::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourceswapio.cpp:152:
undefined reference to `sg_get_page_stats'
../src/mibs/statgrab/.libs/libsg_mibs.a(datasourceuserlogin.o): In
function `SmartSnmpd::DataSourceUserLogin::updateMibObj()':
/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src/mibs/statgrab/datasourceuserlogin.cpp:110:
undefined reference to `sg_get_user_stats'
collect2: ld returned 1 exit status
gmake[3]: *** [smart-snmpd] Error 1
gmake[3]: Leaving directory
`/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/home/ashish/Downloads/smart-snmpd-libs/smart-snmpd'
gmake: *** [all] Error 2
Regards,
--Ashish
On 08/23/2012 09:21 PM, Jens Rehsack wrote:
> On 21.08.2012 22:53, Frank Fock wrote:
>> Hi Ashish,
>>
>> The smart-snmpd project has implemented some MIBs for server
>> monitoring based on the AGENT++ API. The project is open source.
> Well, it implements some nagios-plugins, too.
> But at the moment they are not open source (lack of time, sorry).
>
> Best Regards,
> Jens
>
>> Best regards,
>> Frank
>>
>> Am 16.08.2012 09:57, schrieb Ashish Lal:
>>> Hi,
>>>
>>>
>>>
>>> I have agent++ installed on all systems at a client site running our
>>> proprietary app on Ubuntu linux. I want to monitor these systems from a
>>> central server running nagios. Is there code available in agent++ examples
>>> that would enable me to send information such as number of processes, number
>>> of users, disk usage etc of the monitored system to the central nagios
>>> server using agent++? If so, can you please point me to it? If not, is it
>>> possible to do so and how can I do it?
>>>
>>>
>>>
>>> Appreciate any help and pointers.
>>>
>>>
>>>
>>> Regards,
>>>
>>> --Ashish
>>>
>>> _______________________________________________
>>> AGENTPP mailing list
>>> AGENTPP at agentpp.org
>>> http://lists.agentpp.org/mailman/listinfo/agentpp
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
More information about the AGENTPP
mailing list