Kannel Plugin Needed
Moderators: Developers, Moderators
Kannel Plugin Needed
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!
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!
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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 ...
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
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
This is what I get when I run the script in CLI :
what now?
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.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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 ?
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
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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)
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
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
well, thanks!!! the errors are gone BUT
I ran
and got no output/error at cmd...
is this normal?
I ran
Code: Select all
perl check_kannel_cacti.pl
is this normal?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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.
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
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
Who is online
Users browsing this forum: No registered users and 0 guests