I need a perl script that will send nagios alerts to AIM users. This is a good start on the project.
[login to view URL]
I wasn't able to get it working but that will give you an idea of how it can work with nagios.
I need to be able to list the users by time of day and day of week. Basically I want to be able to tell it who is working on each shift each day of the week. So admins only get alerts when they are on shift.
It needs to have good logging. I need to be able to see when users were notified of a problem.
I also want the option to require a response from some users. So if they don't reply to the AIM saying there is a problem the script will keep sending the notice every x seconds until the user replies or the problem no longer exists. Basically I want them to confirm they know about the issue and this also needs to be logged.
As far a nagios goes if it can just pipe the message to your script that's all that will need to be done. So your script needs to accept the message and send it to the correct AIM users.
So this should send an AIM message to all admins on the current shift:
echo "message" |/path/to/[login to view URL]
I can easily get nagios to send the message to your script in this way.