Kannel Plugin Needed

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Kannel Plugin Needed

Post by Dude »

Nagios has a plugin to check kannel performance...

http://exchange.nagios.org/directory/Pl ... el/details

but cacti doesn't have anything like that...!
Please develop such a plugin for cacti too!!

--
Thanks!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Try the attached one and follow the instructions for the data input methods here:

http://docs.cacti.net/manual:087:3a_adv ... ut_methods

It's the same plugin as for nagios, but instead of printing out WARNING, CRITICAL and so on, it (should) just print out the stats,which you then can add to cacti ...

Code: Select all

	print "sms_recieved_queued:".$kannel{sms}{received}{queued}." ";
	print "sms_sent_queued:".$kannel{sms}{sent}{queued}." ";
	print "sms_inbound:".$kannel{sms}{inbound}." ";
	print "sms_outbound:".$kannel{sms}{outbound}." ";
	print "sms_storesize:".$kannel{sms}{storesize}." ";
	print "dir_queued:".$kannel{dlr}{queued}." ";
	print "dir_storage:".$kannel{dlr}{storage}." ";
	print "smscs_count:".$kannel{smscs}{count}." ";
	print "boxes_wapbox_online:".$kannel{boxes}{wapbox}{online}." ";
	print "boxes_smsbox_online:".$kannel{boxes}{smsbox}{online};
Attachments
check_kannel_cacti_v2.zip
(3.02 KiB) Downloaded 360 times
Last edited by phalek on Tue Aug 31, 2010 1:05 am, edited 2 times in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

This is what I get when I run the script in CLI :

Code: Select all

Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at check_kannel_cacti.pl line 23.
BEGIN failed--compilation aborted at check_kannel_cacti.pl line 23.
what now?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

install the perl requirements. I assume you have the nagios plugin running on another system ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

nagios plugins?? well I just have cacti. I don't have nagios on any machine.
and I just want a plugin for CACTI which can monitor KANNEL
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok. I assumed you have the nagios plugin running somewhere.
Depending on which OS you are using you need to use yum or apt to install the modules.
So, what operating system do you use ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

I am using centOS 5.5
cacti Version 0.8.7g with PIA
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

run the following command on your CentOS box, this will install the missing perl modules.

Also download the v2 zip. There was a slight error as it assumes you have nagios running. (it now should work without nagios being installed)

Code: Select all

yum install perl-libwww-perl perl-XML-DOM perl-XML-DOM-XPath perl-XML-XPath
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

well, thanks!!! the errors are gone BUT
I ran

Code: Select all

perl check_kannel_cacti.pl
and got no output/error at cmd...

is this normal?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Try a -h ...

Code: Select all

perl check_kannel_cacti.pl -h
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

man! I should have known!! lol

thanks!!!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

just tell me if that is actually working, i do not have a kunnel box ( never heard of that before your post :-)
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

its working :) but...
actually, what I wanted to do was to check various SMSC's message (inbound/outbound) count... and their connectivity.

this perl script just prints some BASIC stuff...
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

well, that's not a big problem ( well it is for me, as i do not have the box :-)

But you can help out here.

Cal the following page from you kannel box:

http://<hostname>:<port>/status.xml?password=<password>

It should return an xml document. If you care, remove any confidential stuff and then send me the xml file to support@urban-software.de. I can then add the missing parts.

Just add the values/names you want to have included.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Post by Dude »

mail sent.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest