summaryrefslogtreecommitdiff
path: root/files/irc_bot
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2012-02-27 01:37:14 -0500
committerMicah Anderson <micah@riseup.net>2012-03-13 22:16:13 -0400
commitcf6462a91be41d325711d5ebdb910ff95202dac7 (patch)
tree971d94c9ffd480fb5d081aefd288c18676341a1d /files/irc_bot
parentf56b96b55ce609df4a950f203bf2635906741ed8 (diff)
add commandfile path to configuration
Conflicts: templates/irc_bot/nsa.cfg.erb
Diffstat (limited to 'files/irc_bot')
-rw-r--r--files/irc_bot/riseup-nagios-server.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/irc_bot/riseup-nagios-server.pl b/files/irc_bot/riseup-nagios-server.pl
index 9fbc8c5..04e3054 100644
--- a/files/irc_bot/riseup-nagios-server.pl
+++ b/files/irc_bot/riseup-nagios-server.pl
@@ -165,8 +165,8 @@ sub parse_msg {
my $data = join(' ', $event->args);
my $msg;
if ($data =~ m/([^:]*:)?\s*ack(?:knowledge)?\s+([a-zA-Z0-9\-\.]+)(?:\s+(\w+)(?:\s+(\w+))?)?/) {
- print STDERR "writing to nagios scoket ". $CFG::Nsa{'nagios_socket'} . "\n";
- open(my $cmdfile, ">", $CFG::Nsa{'nagios_socket'}) || die "Can't open Nagios commandfile: $CFG::Nsa{'nagios_socket'}!\n";
+ print STDERR "writing to nagios scoket ". $CFG::Nsa{'commandfile'} . "\n";
+ open(my $cmdfile, ">", $CFG::Nsa{'commandfile'}) || die "Can't open Nagios commandfile: $CFG::Nsa{'commandfile'}!\n";
my $host = $2;
my ($service, $comment) = (undef, "");
if ($4) {