]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/dnsdist-snmp.hh
auth 4.1 build: Switch to devtoolset 7 for el6
[thirdparty/pdns.git] / pdns / dnsdist-snmp.hh
1 #ifndef DNSDIST_SNMP_HH
2 #define DNSDIST_SNMP_HH
3
4 #pragma once
5
6 #include "snmp-agent.hh"
7
8 class DNSDistSNMPAgent;
9
10 #include "dnsdist.hh"
11
12 class DNSDistSNMPAgent: public SNMPAgent
13 {
14 public:
15 DNSDistSNMPAgent(const std::string& name, const std::string& masterSocket);
16 bool sendBackendStatusChangeTrap(const std::shared_ptr<DownstreamState>);
17 bool sendCustomTrap(const std::string& reason);
18 bool sendDNSTrap(const DNSQuestion&, const std::string& reason="");
19 };
20
21 #endif /* DNSDIST_SNMP_HH */