I needed a way to check the status of some old Shoutcast DNAS v1 streams with Nagios Core and found no working solution. I've searched the internet for a while and decided to write it myself, I came up with this homemade solution.
It's tested and intended to work with Nagios Core 4.3.4 but as it's PHP, you could run it anywhere.
In order to run the file on CLI you need to make the file executable like this :
chmod +x check_shoutcast.php
Then just run it
./check_shoutcast.php -H HOSTNAME -p PORT -u USER -P PASSWORD