Add the nagios check method

Will need to add more event.
Add test for nagios

Will have to add 2 more tests with Callixte or Sylvain help I guess
Emit error on endpoint registration error + Tests
Merge pull request #7 from VirtuOz/Add-nagios-check

Add nagios check