Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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 ??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.