Problem in Monitoring Solaris
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Sun Mar 12, 2006 9:00 am
- Contact:
Problem in Monitoring Solaris
Hi,
Iam new to this Cacti ... This is my setup ..
Operating System: Win 2000
Cacti: cacti-0.8.6h
Cactid: cacti-0.8.6g
MySQL: 5.0.21
PHP: php-5.1.4
RRDTool: 1.2
Net-SNMP: net-snmp-5.3.0.1
My problem is, iam not able to Monitor Solaris systems.. In this forums, i got some of the templates(XML file).I uploaded through Import Templates.After uploading
In Associated Data Queries , iam getting this error
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] index'
+ Executing script query 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] query index'
+ Executing script query 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] query description'
+ Executing script query 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] query sau'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
I want to monitor Disk space and CPU Utilization in solaris .. I don't know which data query to use, to solve my problem .where as i can monitor Windows based systems and Routers without any problem..Pls. help me
Iam new to this Cacti ... This is my setup ..
Operating System: Win 2000
Cacti: cacti-0.8.6h
Cactid: cacti-0.8.6g
MySQL: 5.0.21
PHP: php-5.1.4
RRDTool: 1.2
Net-SNMP: net-snmp-5.3.0.1
My problem is, iam not able to Monitor Solaris systems.. In this forums, i got some of the templates(XML file).I uploaded through Import Templates.After uploading
In Associated Data Queries , iam getting this error
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] index'
+ Executing script query 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] query index'
+ Executing script query 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] query description'
+ Executing script query 'd:\php\php.exe -q D:\cacti\scripts\ss_host_disk.php 192.168.80.25 81 1:161:500:public:::MD5::[None] query sau'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
I want to monitor Disk space and CPU Utilization in solaris .. I don't know which data query to use, to solve my problem .where as i can monitor Windows based systems and Routers without any problem..Pls. help me
- TheWitness
- Developer
- Posts: 17053
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Solaris snmp is woeful. You need to install net-snmp on the box after removing the sun version.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 2
- Joined: Sun Mar 12, 2006 9:00 am
- Contact:
Google is your friend.
http://www.cacti.net/downloads/docs/con ... laris.html
http://manageengine.adventnet.com/produ ... laris.html
http://www.cacti.net/downloads/docs/con ... laris.html
http://manageengine.adventnet.com/produ ... laris.html
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
m_spidey: Your symptom is probably that net-snmp still isn't running, or is configured to accept requests only from a spepcific IP (check the config of the Agent on the Solaris machine)
Full instructions on installing the Solaris net-snmp agent can be found here
karthick_tvl: Just to cover the basics: Cacti reads the SNMP results (values) from SNMP Agents which run on the clients. There are manufactured "agents" (eg Suns own one), and then there are 3rd party ones. Net-snmp is a 3rd party one. Suns own one gives limited information about the system.
(Agents simply gather the measurements from the system, and have them ready to give out if an SNMP poller (eg Cacti) asks for it.)
Full instructions on installing the Solaris net-snmp agent can be found here
karthick_tvl: Just to cover the basics: Cacti reads the SNMP results (values) from SNMP Agents which run on the clients. There are manufactured "agents" (eg Suns own one), and then there are 3rd party ones. Net-snmp is a 3rd party one. Suns own one gives limited information about the system.
(Agents simply gather the measurements from the system, and have them ready to give out if an SNMP poller (eg Cacti) asks for it.)
Try these - I did these on Solaris 9 box and it works
bash-2.05# ps -ef|grep snmp
root 10242 10219 0 17:07:56 pts/1 0:00 grep snmp
root 296 1 0 Sep 19 ? 0:00 /usr/lib/snmp/snmpdx -y -c /etc/s nmp/conf
root 307 1 0 Sep 19 ? 0:00 /usr/lib/dmi/snmpXdmid -s support 2
bash-2.05# cd /etc/rc3
rc3 rc3.d
bash-2.05# cd /etc/rc3.d/
bash-2.05# ./S76snmpdx stop
bash-2.05# ./S77dmi stop
bash-2.05# mv S76snmpdx _S76snmpdx
bash-2.05# mv S77dmi _S77dmi
bash-2.05# ps -ef|grep snmp
root 10647 10219 0 17:10:29 pts/1 0:00 grep snmp
::::: /etc/rc3.d/S78net-snmp ::::::
#!/sbin/sh
#
# /etc/rc3.d/S78net-snmp
#
# pkill has moved over the years so we need to find it
#
X=`which pkill`
case "$1" in
'start')
/usr/local/sbin/snmpd
;;
'stop')
$X -TERM -x -u 0 snmpd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
::::::::::::::::::::::::::::::::::::
-rw-r--r-- 1 root other 457732 May 30 18:59 zlib-1.2.3-sol9-sparc-local.gz
-rw-r--r-- 1 root other 3387706 May 30 18:59 openssl-0.9.8b-sol9-sparc-local.gz
-rw-r--r-- 1 root other 4183370 May 30 18:59 net-snmp-5.3.0.1.tar.gz
-rw-r--r-- 1 root other 27692735 May 30 19:01 gcc_small-3.4.2-sol9-sparc-local.gz
bash-2.05# gunzip gcc_small-3.4.2-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/gcc_small-3.4.2-sol9-sparc-local
bash-2.05# gunzip openssl-0.9.8b-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/openssl-0.9.8b-sol9-sparc-local
bash-2.05# gunzip zlib-1.2.3-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/zlib-1.2.3-sol9-sparc-local
bash-2.05# gunzip libiconv-1.8-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/libiconv-1.8-sol9-sparc-local
bash-2.05# gunzip tar-1.15.1-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/tar-1.15.1-sol9-sparc-local
bash-2.05# /usr/local/bin/tar -xvf net-snmp-5.3.0.1.tar
cd into net-snmp-5.3.0.1
bash-2.05# ./configure --with-mib-modules="host disman/event-mib ucd-snmp/diskio smux agentx mibII/mta_sendmail" --with-cc=gcc
bash-2.05# make
bash-2.05# make test
bash-2.05# make install
bash-2.05# snmpconf -g basic_setup
bash-2.05# mv snmpd.conf /usr/local/share/snmp
bash-2.05# /usr/bin/crle -u -l /usr/local/ssl/lib
bash-2.05# /usr/local/sbin/snmpd
bash-2.05# snmpwalk -v2c -c public support2 .1.3.6.1
bash-2.05# snmpget -v 1 -c public 127.0.0.1 sysUpTime.0
bash-2.05# snmpwalk -v 2c -c public -m ALL support2 .1.3 | more
bash-2.05# snmpwalk -v 1 -c public 127.0.0.1
root 10242 10219 0 17:07:56 pts/1 0:00 grep snmp
root 296 1 0 Sep 19 ? 0:00 /usr/lib/snmp/snmpdx -y -c /etc/s nmp/conf
root 307 1 0 Sep 19 ? 0:00 /usr/lib/dmi/snmpXdmid -s support 2
bash-2.05# cd /etc/rc3
rc3 rc3.d
bash-2.05# cd /etc/rc3.d/
bash-2.05# ./S76snmpdx stop
bash-2.05# ./S77dmi stop
bash-2.05# mv S76snmpdx _S76snmpdx
bash-2.05# mv S77dmi _S77dmi
bash-2.05# ps -ef|grep snmp
root 10647 10219 0 17:10:29 pts/1 0:00 grep snmp
::::: /etc/rc3.d/S78net-snmp ::::::
#!/sbin/sh
#
# /etc/rc3.d/S78net-snmp
#
# pkill has moved over the years so we need to find it
#
X=`which pkill`
case "$1" in
'start')
/usr/local/sbin/snmpd
;;
'stop')
$X -TERM -x -u 0 snmpd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
::::::::::::::::::::::::::::::::::::
-rw-r--r-- 1 root other 457732 May 30 18:59 zlib-1.2.3-sol9-sparc-local.gz
-rw-r--r-- 1 root other 3387706 May 30 18:59 openssl-0.9.8b-sol9-sparc-local.gz
-rw-r--r-- 1 root other 4183370 May 30 18:59 net-snmp-5.3.0.1.tar.gz
-rw-r--r-- 1 root other 27692735 May 30 19:01 gcc_small-3.4.2-sol9-sparc-local.gz
bash-2.05# gunzip gcc_small-3.4.2-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/gcc_small-3.4.2-sol9-sparc-local
bash-2.05# gunzip openssl-0.9.8b-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/openssl-0.9.8b-sol9-sparc-local
bash-2.05# gunzip zlib-1.2.3-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/zlib-1.2.3-sol9-sparc-local
bash-2.05# gunzip libiconv-1.8-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/libiconv-1.8-sol9-sparc-local
bash-2.05# gunzip tar-1.15.1-sol9-sparc-local.gz
bash-2.05# pkgadd -d /marius/tar-1.15.1-sol9-sparc-local
bash-2.05# /usr/local/bin/tar -xvf net-snmp-5.3.0.1.tar
cd into net-snmp-5.3.0.1
bash-2.05# ./configure --with-mib-modules="host disman/event-mib ucd-snmp/diskio smux agentx mibII/mta_sendmail" --with-cc=gcc
bash-2.05# make
bash-2.05# make test
bash-2.05# make install
bash-2.05# snmpconf -g basic_setup
bash-2.05# mv snmpd.conf /usr/local/share/snmp
bash-2.05# /usr/bin/crle -u -l /usr/local/ssl/lib
bash-2.05# /usr/local/sbin/snmpd
bash-2.05# snmpwalk -v2c -c public support2 .1.3.6.1
bash-2.05# snmpget -v 1 -c public 127.0.0.1 sysUpTime.0
bash-2.05# snmpwalk -v 2c -c public -m ALL support2 .1.3 | more
bash-2.05# snmpwalk -v 1 -c public 127.0.0.1
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
- TheWitness
- Developer
- Posts: 17053
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
NZ_Cacti,
What a write up. You should publish that somewhere. Maybe send to Sun
TheWitness
What a write up. You should publish that somewhere. Maybe send to Sun
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
What's in snmpd.conf
/usr/local/share/snmp/snmpd.conf
#################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
#################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity public
#################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
#################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity public
Who is online
Users browsing this forum: No registered users and 0 guests