]>
Commit | Line | Data |
---|---|---|
9f4eb5cc RG |
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); | |
f3b1a1ef | 16 | bool sendBackendStatusChangeTrap(const std::shared_ptr<DownstreamState>&); |
9f4eb5cc RG |
17 | bool sendCustomTrap(const std::string& reason); |
18 | bool sendDNSTrap(const DNSQuestion&, const std::string& reason=""); | |
19 | }; | |
20 | ||
21 | #endif /* DNSDIST_SNMP_HH */ |