Can i do it?

Shoaibi iknewitalready at gmail.com
Tue May 27 16:01:46 CEST 2008


Hi everyone!

I am new to nagios, and a little confused over what do i do, i hope you
people will help me.

My Problem:
I have a project developed using Java, in which a Servlet (think of it as a
website, for those who dont understand the concept of servlet) lists the all
possible daemons to the user, the remote user selects the services he wants
to monitor, inputs his cell number and clicks save. This information is
stored in a file called .alerts of the following format:
number:daemon1,daemon2,dameon3,daemon3
like:
1234567890:httpd,dhcpd,sshd,klogd

and the file contains a list of such entries, say 100 users has their
entries in this file., What i want to do it to use nagios to check the
status of the daemons/services mentioned in the file, and if any of these
services changes status, goes down, etc, an sms should be sent to the number
provided with the details of which daemon changes status on which server
(ip) and etc..

Example:
//.alerts
1234567890:httpd,sshd,dhcpd
0987654321:klogd,sshd

Case 1:
httpd changes status:
SMS should be sent to 1234567890
SMS body:
httpd just changed its status to <new status>/down on the server <ip> at
<time>.

Case 2:
sshd changes status
SMS should be sent to 1234567890 and 0987654321
SMS body:
sshd just changed its status to <new status> on the server <ip> at <time>.


please note that entries in .alerts file can be modified, its possible that
later 0987654321 subscribes for httpd, or 1234567890 subscribes for httpd,
so we will have to check that file dynamically.


What i wanna know is can nagios do it? if yes? how? will i need some special
hardware? or will i need a special script for sending SMS?


Thank you so much for reading the post, looking forward to having a great
time.
Take care.
Bubye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080527/ee72c68d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list