Added separate module for System.CPU.Usage handlers
authorVictor Kirhenshtein <victor@netxms.org>
Sat, 26 Feb 2005 19:27:21 +0000 (19:27 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Sat, 26 Feb 2005 19:27:21 +0000 (19:27 +0000)
.gitattributes
src/agent/subagents/sunos/cpu.cpp [new file with mode: 0644]

index 899ea83..8f06d29 100644 (file)
@@ -211,6 +211,7 @@ src/agent/subagents/skeleton/skeleton.cpp -text
 src/agent/subagents/skeleton/skeleton.dsp -text
 src/agent/subagents/skeleton/skeleton.dsw -text
 src/agent/subagents/sunos/Makefile.am -text
+src/agent/subagents/sunos/cpu.cpp -text
 src/agent/subagents/sunos/disk.cpp -text
 src/agent/subagents/sunos/mac_dlpi.cpp -text
 src/agent/subagents/sunos/main.cpp -text
diff --git a/src/agent/subagents/sunos/cpu.cpp b/src/agent/subagents/sunos/cpu.cpp
new file mode 100644 (file)
index 0000000..488960e
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+** NetXMS subagent for SunOS/Solaris
+** Copyright (C) 2004, 2005 Victor Kirhenshtein
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** $module: cpu.cpp
+**
+**/
+
+#include "sunos_subagent.h"
+#include <sys/systeminfo.h>