LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2011, 12:10 AM   #1
hhh123
Member
 
Registered: Jul 2009
Location: /
Distribution: centos
Posts: 47

Rep: Reputation: 1
Arrow Monitoring and Reporting


HI All,

Is it possible to create a script which can fetch data from nagios and ganglia for a specified host and send those data to defined email id. I have searched lot for this on google but didn't find anything.

In short my business need is to automated reporting. And more problem which i face is that i can't touch nagios and ganglia server,i need to fire that script from some other machine which get data from nagios and ganglai and send it over email.

Thank You..
 
Old 11-10-2011, 12:27 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What do you mean by 'can't touch Nagios server'? That you don't have ANY access to the server or that you're not allowed to change Nagios configuration? If you don't have access then it would be quite impossible to get what you want since the information is all on that server. If you cannot change/install anything then you could use the nagios.log and 'plow' through it, getting the information you want.

If you can install extra's, have a look at this page for reporting tools: Nagios Reporting Addons

Kind regards,

Eric
 
Old 11-10-2011, 07:26 AM   #3
hhh123
Member
 
Registered: Jul 2009
Location: /
Distribution: centos
Posts: 47

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EricTRA View Post
Hello,

What do you mean by 'can't touch Nagios server'? That you don't have ANY access to the server or that you're not allowed to change Nagios configuration? If you don't have access then it would be quite impossible to get what you want since the information is all on that server. If you cannot change/install anything then you could use the nagios.log and 'plow' through it, getting the information you want.

If you can install extra's, have a look at this page for reporting tools: Nagios Reporting Addons

Kind regards,

Eric

Thanks Erick for reply here "can't touch nagios server" mean that i have not allowed to do any changes on nagios server but i can access it over a network ,so in this case i can't install that Nagios Reporting Add-on.
 
Old 11-10-2011, 07:35 AM   #4
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
Perhaps the more interesting question is what data are you looking for? I don't really know anything about nagios because I'm focused on collectl.

However, at the end of the data, data is data whether sourced in nagios, collectl, sar, etc. That's why I'm asking what it is you want to get.

Since collectl collects everything all the other tools do combined, more or less, and since it can log to a file and can be run as a command line tool, if you're looking for a particular piece of information it should be possible to so a simple extract.

On the other hand if it's plots you want, there's colplot. You point it at a directory with collectl data in it and it happily draws a bunch of plots. While most people tend to use it as a web-based tool, it does have a cli as well. better still, you can save your plots as a pdf, set of individual png files or email the plots to any email address you like (I saved the best for last).

So in your case you could write a simple cron script that executes colplot every day and emails you the plots you want.

-mark
 
Old 11-10-2011, 09:46 AM   #5
hhh123
Member
 
Registered: Jul 2009
Location: /
Distribution: centos
Posts: 47

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by markseger View Post
Perhaps the more interesting question is what data are you looking for? I don't really know anything about nagios because I'm focused on collectl.

However, at the end of the data, data is data whether sourced in nagios, collectl, sar, etc. That's why I'm asking what it is you want to get.

Since collectl collects everything all the other tools do combined, more or less, and since it can log to a file and can be run as a command line tool, if you're looking for a particular piece of information it should be possible to so a simple extract.

On the other hand if it's plots you want, there's colplot. You point it at a directory with collectl data in it and it happily draws a bunch of plots. While most people tend to use it as a web-based tool, it does have a cli as well. better still, you can save your plots as a pdf, set of individual png files or email the plots to any email address you like (I saved the best for last).

So in your case you could write a simple cron script that executes colplot every day and emails you the plots you want.

-mark
Heyy Mark thnx a for your reply and giving nice solution and also u gave me intro to one for nice open source tool.As u know nagios s open source monitoring tool which is currently monitoring my 300-400 server and nagios gives me graphs and service uptime/downtime report. Businesses requirement is that i need to send a report to some authority witch includes graphs,details...(sort of report to non technical personal or u can say business ppl), i can generate this by nagios but as the number of servers it become a nightmare for me.collectl/colplot is nice tool ,i have check for it , do u have any Howto doc for same ??
 
Old 11-10-2011, 11:15 AM   #6
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
It you go out to sourceforge there is a lot of documentation. see - http://collectl.sourceforge.net/

-mark
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] df reporting 100% but du reporting 20% guna_pmk Linux - Server 1 04-15-2011 11:34 AM
squid reporting Ammad Linux - General 1 10-01-2009 02:53 PM
network monitoring:unable to launch nagios network monitoring system oladapo1980 Linux - Newbie 0 07-21-2009 01:45 PM
Monitoring free memory with enterprise monitoring application Steelb Linux - Enterprise 2 02-13-2008 10:10 AM
Monitoring and Reporting of Squid Logs debloxie Linux - Networking 1 08-09-2006 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration