Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Eliminated empty serviceName check as per issue #1 in order to allow …

…host checks
  • Loading branch information...
commit fda3d539aad68b9805dda8ccfd5ae621a34c954e 1 parent e2478de
@robertmircea authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  .gitignore
  2. +1 −1  Nagios.NSCA.Client/NSCAClientSender.cs
View
3  .gitignore
@@ -15,4 +15,5 @@ log/*
*.swp
*.bak
~$*
-logs/*
+logs/*
+*.user
View
2  Nagios.NSCA.Client/NSCAClientSender.cs
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.