Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Aug 20, 2017 6:52 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Kannel Plugin Needed
PostPosted: Mon Aug 30, 2010 1:42 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
Nagios has a plugin to check kannel performance...

http://exchange.nagios.org/directory/Plugins/Others/check_kannel/details

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

--
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2010 3:01 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
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:
   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 269 times

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Last edited by phalek on Tue Aug 31, 2010 1:05 am, edited 2 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2010 10:49 pm 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
This is what I get when I run the script in CLI :


Code:
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?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 12:07 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 12:14 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 12:42 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 12:46 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
I am using centOS 5.5
cacti Version 0.8.7g with PIA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:06 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
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:
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:19 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
well, thanks!!! the errors are gone BUT
I ran
Code:
perl check_kannel_cacti.pl

and got no output/error at cmd...

is this normal?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:21 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
Try a -h ...
Code:
perl check_kannel_cacti.pl -h

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:25 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
man! I should have known!! lol

thanks!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:30 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:33 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
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...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:40 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
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 [email protected]. 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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2010 1:48 am 
Offline
Cacti User

Joined: Wed Aug 11, 2010 11:44 pm
Posts: 73
mail sent.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group