summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/snmpd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-12-08 11:34:56 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-12-08 11:34:56 +0000
commit3a6a7e7922c54721a12118e1135eaf0940d728ec (patch)
tree7859bb68fe6ab68653bf943278dae14a5274a84c /usr.sbin/snmpd/snmpd.h
parentbfc97caf3472bc8f39ea1da77fd452a8dfc90b94 (diff)
report memory and swap in hrStorage, and implement hrProcessor to report
hrProcessorLoad (where load means the percentage of time the system was not idle during the last minute). based on HOST-RESOURCES-MIB. ok dlg@
Diffstat (limited to 'usr.sbin/snmpd/snmpd.h')
-rw-r--r--usr.sbin/snmpd/snmpd.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h
index 36960ba50a3..6e2b7a8b4d8 100644
--- a/usr.sbin/snmpd/snmpd.h
+++ b/usr.sbin/snmpd/snmpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpd.h,v 1.21 2008/09/26 15:19:55 reyk Exp $ */
+/* $OpenBSD: snmpd.h,v 1.22 2008/12/08 11:34:55 reyk Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net>
@@ -334,6 +334,9 @@ struct snmpd {
struct snmp_stats sc_stats;
struct addresslist sc_trapreceivers;
+
+ int sc_ncpu;
+ int64_t *sc_cpustates;
};
/* control.c */
@@ -441,6 +444,9 @@ void smi_delete(struct oid *);
void smi_insert(struct oid *);
int smi_oid_cmp(struct oid *, struct oid *);
+/* timer.c */
+void timer_init(void);
+
/* snmpd.c */
int snmpd_socket_af(struct sockaddr_storage *, in_port_t);