Hi everyone!<br><br>I am new to nagios, and a little confused over what do i do, i hope you people will help me.<br><br>My Problem:<br>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:<br>
number:daemon1,daemon2,dameon3,daemon3<br>like:<br>1234567890:httpd,dhcpd,sshd,klogd<br><br>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..<br>
<br>Example:<br>//.alerts<br>1234567890:httpd,sshd,dhcpd<br>0987654321:klogd,sshd<br><br>Case 1:<br>httpd changes status:<br>SMS should be sent to 1234567890<br>SMS body:<br>httpd just changed its status to <new status>/down on the server <ip> at <time>.<br>
<br>Case 2:<br>sshd changes status<br>SMS should be sent to 1234567890 and 0987654321<br>SMS body:<br>sshd just changed its status to <new status> on the server <ip> at <time>.<br><br><br>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.<br>
<br><br>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?<br><br><br>Thank you so much for reading the post, looking forward to having a great time.<br>
Take care.<br>Bubye<br>