Skip to content

Commit

Permalink
Eliminated empty serviceName check as per issue #1 in order to allow …
Browse files Browse the repository at this point in the history
…host checks
  • Loading branch information
robertmircea committed Jan 11, 2012
1 parent e2478de commit fda3d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -15,4 +15,5 @@ log/*
*.swp
*.bak
~$*
logs/*
logs/*
*.user
2 changes: 1 addition & 1 deletion Nagios.NSCA.Client/NSCAClientSender.cs
Expand Up @@ -25,7 +25,7 @@ public NSCAClientSender(NSCASettings settings)
public bool SendPassiveCheck(Level level, string hostName, string serviceName, string message)
{
if (string.IsNullOrEmpty(hostName)) throw new ArgumentNullException("hostName");
if (string.IsNullOrEmpty(serviceName)) throw new ArgumentNullException("serviceName");
if (serviceName == null) throw new ArgumentNullException("serviceName"); //update as per ChrisGeorg issue opened January 05, 2012, https://github.com/robertmircea/nagios-nsca-client/issues/1
if (message == null) throw new ArgumentNullException("message");

try
Expand Down

0 comments on commit fda3d53

Please sign in to comment.