We need to monitor an extension, from the endpoint perspective. We just need to know when it can no longer communicate with the server.
Right now, when that happens, the extension on our phone goes red (on grandstream) and has an x through it (polycom). However, I want to get notified as soon as that happens. I was hoping to use our monitoring software and an SNMP item, but I noticed most endpoints don’t have SNMP.
Is there a way to do this? My first thought is to use a software phone that has SNMP enabled, but thought I’d reach out to the community beforehand to see if that’s the best solution.
Reason is, we are having some serious issues as explained in the link below. Often times, asterisk doesn’t crash for a long time, but there are issues with extensions going offline (even though the server shows said extension as “OK”). Here’s the link to our issue: Consistent Asterisk/FreePBX Crash Issue
So, I imagine this is at the server, and not the extension… Do you think I will get notified of what I’m looking for? My concern is that Asterisk is sometimes still seeing the peers as “OK” even when they’re not. That’s why I wanted to monitor an extension from the outside.
You can do anything you want including sending a text or email or triggering a call with an AMI originate command using your language of preference, some oldie but goldie examples to be found here
All of this assumes that Asterisk is noticing the drop (which we should all agree it should) but if it isn’t noting the drops, you can monitor the IP addresses using something like Nagios. It’s a heavy-handed solution, but it will give you a reasonable level of insight into the network.
@juesor I was so inspired by your script that I created a new one that monitors pjsip
The reason is we have a client with a perfectly up to date system but every few days all extensions just loose connectivity with the board and we have no visibility when this happens. The script monitors four things: