Please note that a similar post was also sent on mailing list, this is almost the same post as previous one, though differs a little, plus i am posting again hoping that this time i could get some real reference rather than google or reading 500 pages of documentation. Thanks...
I have a project developed using Java, in which a Servlet lists the all possible daemons/service of a system to which user is connected, the remote user selects the services he wants to monitor on that system, inputs his cell number and clicks save. This information (cell #, ip, and daemon monitor list) is stored in a file called .alerts of the following format:
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..
httpd changes status on 172.30.10.10:
SMS should be sent to 1234567890
httpd just changed its status to /down on the server at