You are here

Run a php script as check

1 post / 0 new
bramus-nl
bramus-nl's picture
Run a php script as check

For my Antispam cluster i'm using SpamExperts, and i want to add the servers to my OpsView core setup so i can monitor the servers and the queue's. I found a great KB article for Nagios, and i was assuming i could use this also for Opsview. 

https://my.spamexperts.com/kb/685/Nagios-Plugin-Script.html

Except.. I dont know how i can run a PHP command, there's a checkcommands.cfg file, but when i modify it to use php in front of the script and i reload the configuration, this piece of code gets removed. Is there any way i can use a PHP script to check the API and verify the status of my Antispam cluster?