Hi all,
I'm wondering if nagios core can email me service logs such as samba, from a remote computer, that is not always connected to the internet ?
Remote Logs
Re: Remote Logs
I'm still a little unclear on the situation you described. Nagios might be able to do it, but it probably isn't the tool you'd want to use for this kind of thing. Can you explain a little bit more about what you're trying to accomplish and why you want to use Nagios to do it?
Re: Remote Logs
I want to setup a samba based file server in a VERY remote location in the Solomon islands.
The site has regular problems with electricity and internet supply.
It would be great if I can setup a computer there that will restart the smbd samba process if there is any problem detected, and also email me weekly copys of all important computer logs.
The site has regular problems with electricity and internet supply.
It would be great if I can setup a computer there that will restart the smbd samba process if there is any problem detected, and also email me weekly copys of all important computer logs.
Re: Remote Logs
You could use Nagios to monitor that. You should make sure that the connection between your Nagios server and your Samba server is more reliable than your internet connection though, otherwise you'll receive lots of false warnings. You could set up an event handler to restart samba if there's a problem.
However, for simply emailing weekly logs to yourself, it would be much simpler to use a short shell script as a cron job. Trying to force Nagios to do this would be more complicated, even if you already have Nagios set up for other tasks.
However, for simply emailing weekly logs to yourself, it would be much simpler to use a short shell script as a cron job. Trying to force Nagios to do this would be more complicated, even if you already have Nagios set up for other tasks.