Xymon Mailing List Archive search

No SNMP data for devmon template

7 messages in this thread

list Martha McConaghy · Tue, 09 Sep 08 21:44:59 EDT ·
I've been beating my head against a wall on this and finally admit I don't
have a clue why it is not working.  We're just getting started with Hobbit,
but plan on making it our main monitoring solution.  I've got devmon
running with it and have been able to monitor the devices that already have
templates.  However, some of our devices don't have templates, so I'm trying
to define one for them (Weather Goose environmental monitors).

To start, I'm just trying to define a simple temperature test.  I can
see that devmon is reading the files and all seems to be OK.  However,
I get the dreaded "No SNMP data found for upsenvTempwx on ..." and the
test does not work.  I can do an snmpget on the same oid and it returns
data with no problem.

I've seen other notes like this in the archives, but never any solution.  I've
redone the template files over and over, but nothing seems to make a dent.
I'll include my files in case one of you can see what I'm doing wrong.
Any advice would be appreciated.

Martha McConaghy
Strategic Planner/Project Manager
Marist College

specs:

vendor  : wxgoos
model   : 3163
snmpver : 2
sysdesc : NETOS 6.0

oids:
upsEnvTempwx    : .1.3.6.1.4.1.17373.2.2.1.5    : leaf

thresholds:
upsEnvTempwx    : red        : 105            : Temperature is very high
upsEnvTempwx    : yellow     : 99             : Temperature is high

message:
{upsEnvTempwx.errors}

Environment status:

Temperature: {upsEnvTempwx} F {yellow={upsEnvTempwx.thresh:yellow}F red=
{upsEnvTempwx.thresh:read}F}
list Anna Jonna Armannsdottir · Wed, 10 Sep 2008 09:46:05 +0000 ·
quoted from Martha McConaghy
On þri, 2008-09-09 at 21:44 -0400, Martha McConaghy wrote:
To start, I'm just trying to define a simple temperature test.  I can
see that devmon is reading the files and all seems to be OK.  However,
I get the dreaded "No SNMP data found for upsenvTempwx on ..." and the
test does not work.  I can do an snmpget on the same oid and it
returns
data with no problem.

I've seen other notes like this in the archives, but never any
solution.  I've
redone the template files over and over, but nothing seems to make a
dent.
I'll include my files in case one of you can see what I'm doing wrong.
Any advice would be appreciated.
I have no experience with devmon, so I can not give You any any advice
on that. According to your description, the problem lies elsewhere. 
What is the configuration? I presume the snmp server is host A and You 
are fetching it from host B. Are there any firewall rules restricting 
traffic between the hosts? Are there any restrictions
in /etc/hosts.{allow,deny} in either host A or B? Are there any
restrictions on traffic to and from localhost (127.0.0.1) ? 

I will soon be using devmon in conjunction with Hobbit, so I would very
much like to learn from your experience. 

-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Greg L Hubbard · Wed, 10 Sep 2008 07:47:41 -0500 ·
You might try the devmon list...

GLH 
quoted from Martha McConaghy

-----Original Message-----
From: Martha McConaghy [mailto:user-541f93250a4d@xymon.invalid] 
Sent: Tuesday, September 09, 2008 8:45 PM
To: Hobbit discussion list
Subject: [hobbit] No SNMP data for devmon template

I've been beating my head against a wall on this and finally admit I
don't have a clue why it is not working.  We're just getting started
with Hobbit, but plan on making it our main monitoring solution.  I've
got devmon running with it and have been able to monitor the devices
that already have templates.  However, some of our devices don't have
templates, so I'm trying to define one for them (Weather Goose
environmental monitors).

To start, I'm just trying to define a simple temperature test.  I can
see that devmon is reading the files and all seems to be OK.  However, I
get the dreaded "No SNMP data found for upsenvTempwx on ..." and the
test does not work.  I can do an snmpget on the same oid and it returns
data with no problem.

I've seen other notes like this in the archives, but never any solution.
I've redone the template files over and over, but nothing seems to make
a dent.
I'll include my files in case one of you can see what I'm doing wrong.
Any advice would be appreciated.

Martha McConaghy
Strategic Planner/Project Manager
Marist College

specs:

vendor  : wxgoos
model   : 3163
snmpver : 2
sysdesc : NETOS 6.0

oids:
upsEnvTempwx    : .1.3.6.1.4.1.17373.2.2.1.5    : leaf

thresholds:
upsEnvTempwx    : red        : 105            : Temperature is very high
upsEnvTempwx    : yellow     : 99             : Temperature is high

message:
{upsEnvTempwx.errors}

Environment status:

Temperature: {upsEnvTempwx} F {yellow={upsEnvTempwx.thresh:yellow}F red=
{upsEnvTempwx.thresh:read}F}
list Dan McDonald · Wed, 10 Sep 2008 07:58:57 -0500 ·
quoted from Martha McConaghy
On Tue, 2008-09-09 at 21:44 -0400, Martha McConaghy wrote:
I've been beating my head against a wall on this and finally admit I don't
have a clue why it is not working.  We're just getting started with Hobbit,
but plan on making it our main monitoring solution.  I've got devmon
running with it and have been able to monitor the devices that already have
templates.  However, some of our devices don't have templates, so I'm trying
to define one for them (Weather Goose environmental monitors).
I monitor these with mrtg and use bbmrtg to drop the status into hobbit.
I have about 70 of them.
quoted from Greg L Hubbard
To start, I'm just trying to define a simple temperature test.  I can
see that devmon is reading the files and all seems to be OK.  However,
I get the dreaded "No SNMP data found for upsenvTempwx on ..." and the
test does not work.  I can do an snmpget on the same oid and it returns
data with no problem.
upsEnvTempwx    : .1.3.6.1.4.1.17373.2.2.1.5    : leaf
it depends when version of code you are running on the weathergoose.  in
a few versions, when you poll that oid, it responds with an OID/Instance
pair.  snmpget doesn't seem to care.  But SNMP_Tools.pm throws a fit
when the request doesn't match the response.

You might try .1.3.6.1.4.1.17373.2.2.1.5.1 instead.
thresholds:
Note that the watchdog reports degrees C, not F.
quoted from Greg L Hubbard
upsEnvTempwx    : red        : 105            : Temperature is very high
upsEnvTempwx    : yellow     : 99             : Temperature is high
-- 

Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com
list Vernon Everett · Fri, 12 Sep 2008 11:57:32 +0800 ·
Hi all

Is there a document, web site or mailing list with more assistance for
Devmon?
Currently I am getting rather frustrated with it.
The instructions are something along the lines of
1. Install like so
2. ???
3. Results.

I need a little more help with step 2.
Even though I have followed step 1. to the letter and am getting
something that looks sane in the devmon hosts.db, I am still getting no
results in hobbit.
Nothing in the logs either :-(

Does devmon have a debug mode to force it to log?

In the bb-hosts file, I have this.
11.22.33.44  filer     # netapp COMMENT:"Netapp01"
DEVMON:tests(if_load,status,netapptemp),cid(Secret)

In he hosts.db I get this
filer11.22.33.44Network AppliancesNetApp
v1.0if_load,status,netapptempSecret

Crontab -l */5 * * *  *    /usr/local/devmon/devmon --readbbhosts

My devmon.cfg looks like this
MULTINODE=NO
BBHOSTS=/etc/hobbit/bb-hosts
BBTAG=DEVMON
SNMPCIDS=public,private,Secret
NODENAME=HOSTNAME
PIDFILE=/var/run/devmon/devmon.pid
LOGFILE=/var/log/hobbit/devmon.log
DBHOST=1.2.3.4
DBNAME=devmon
DBUSER=devmon
DBPASS=devmon
BBTYPE=hobbit
DISPSERV=localhost
DISPPORT=1984
MSGSIZE=8096
MSGSLEEP=10
CYCLETIME=60
DEADTIME=180
CLEARTIME=180
NUMFORKS=10
MAXPOLLTIME=30
SNMPTIMEOUT=2
SNMPTRIES=5

But still nothing in Hobbit.

What now?

Cheers
    Vernon

NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Buchan Milne · Fri, 12 Sep 2008 08:33:43 +0200 ·
quoted from Vernon Everett
On Friday 12 September 2008 05:57:32 Everett, Vernon wrote:
Hi all

Is there a document, web site or mailing list with more assistance for
Devmon?
The devmon mailing lists are available from the sourceforge page.
Currently I am getting rather frustrated with it.
The instructions
Which "instructions"? Devmon ships with an INSTALLATION file, and a USING 
file. I really can't see what is missing in the documentation, and unless 
you're more specific about which documentation you followed, I can't improve 
it.
quoted from Vernon Everett
are something along the lines of
1. Install like so
2. ???
3. Results.

I need a little more help with step 2.
Even though I have followed step 1. to the letter and am getting
something that looks sane in the devmon hosts.db, I am still getting no
results in hobbit.
Nothing in the logs either :-(

Does devmon have a debug mode to force it to log?
I assume you've run --help, which lists:

Usage: devmon [arguments]

  Arguments:
   -c       Specify config file location
   -d       Specify database file location
   -f       Run in foreground.  Prevents running in daemon mode.
   -p       Print message.  Don't send message to display server.
            print it to stdout
   -v       Verbose mode.  The more v's, the more vebose logging.
   --debug  Print debug output (this can be quite extensive).

  Mutually exclusive arguments:
   --readbbhosts   Read in data from the BigBrother/Hobbit hosts file
   --syncconfig    Update multinode DB with the global config options
                   configured on this local node.
   --synctemplates Update multinode device templates with the template
                   data on this local node.
   --resetowners   Reset multinode device ownership data.  This will
                   cause all nodes to recalculate ownership data.
quoted from Vernon Everett

In the bb-hosts file, I have this.
11.22.33.44  filer     # netapp COMMENT:"Netapp01"
DEVMON:tests(if_load,status,netapptemp),cid(Secret)

In he hosts.db I get this
filer 11.22.33.44 Network Appliances NetApp
v1.0 if_load,status,netapptemp Secret  

Crontab -l
*/5 * * *  *    /usr/local/devmon/devmon --readbbhosts
I don't use this myself, and running it every 5 minutes is a bit excessive. I 
assume you are aware that this does *nothing* besides update the hosts.db 
file, it doesn't actually poll any devices.
My devmon.cfg looks like this
MULTINODE=NO
BBHOSTS=/etc/hobbit/bb-hosts
BBTAG=DEVMON
SNMPCIDS=public,private,Secret
NODENAME=HOSTNAME
PIDFILE=/var/run/devmon/devmon.pid
Is this file writable by the user that runs devmon?
LOGFILE=/var/log/hobbit/devmon.log
Same question here.
quoted from Vernon Everett
DBHOST=1.2.3.4
DBNAME=devmon
DBUSER=devmon
DBPASS=devmon
BBTYPE=hobbit
DISPSERV=localhost
DISPPORT=1984
MSGSIZE=8096
MSGSLEEP=10
CYCLETIME=60
DEADTIME=180
CLEARTIME=180
NUMFORKS=10
MAXPOLLTIME=30
SNMPTIMEOUT=2
SNMPTRIES=5

But still nothing in Hobbit.

What now?
Did you actually *start* devmon?

A sample init script is provided in the extras directory. This is covered in 
points 6 and 7 of the INSTALLATION file ...


Regards,
Buchan
list Geoff Hallford · Fri, 12 Sep 2008 23:54:17 -0400 ·
Yes, I believe you are correct that it is not started. Use the init script
or just run the devmon executable and it should spawn some daemons. The
--readbbhosts just imports the configs from bbhosts but doesn't actually run
the tests and send the results.

'Nobody goes there anymore. It's too crowded.' --Yogi Berra
quoted from Buchan Milne


On Fri, Sep 12, 2008 at 2:33 AM, Buchan Milne <user-9b139aff4dec@xymon.invalid>wrote:
On Friday 12 September 2008 05:57:32 Everett, Vernon wrote:
Hi all

Is there a document, web site or mailing list with more assistance for
Devmon?
The devmon mailing lists are available from the sourceforge page.
Currently I am getting rather frustrated with it.
The instructions
Which "instructions"? Devmon ships with an INSTALLATION file, and a USING
file. I really can't see what is missing in the documentation, and unless
you're more specific about which documentation you followed, I can't
improve
it.
are something along the lines of
1. Install like so
2. ???
3. Results.

I need a little more help with step 2.
Even though I have followed step 1. to the letter and am getting
something that looks sane in the devmon hosts.db, I am still getting no
results in hobbit.
Nothing in the logs either :-(

Does devmon have a debug mode to force it to log?
I assume you've run --help, which lists:

Usage: devmon [arguments]

 Arguments:
  -c       Specify config file location
  -d       Specify database file location
  -f       Run in foreground.  Prevents running in daemon mode.
  -p       Print message.  Don't send message to display server.
           print it to stdout
  -v       Verbose mode.  The more v's, the more vebose logging.
  --debug  Print debug output (this can be quite extensive).

 Mutually exclusive arguments:
  --readbbhosts   Read in data from the BigBrother/Hobbit hosts file
  --syncconfig    Update multinode DB with the global config options
                  configured on this local node.
  --synctemplates Update multinode device templates with the template
                  data on this local node.
  --resetowners   Reset multinode device ownership data.  This will
                  cause all nodes to recalculate ownership data.

In the bb-hosts file, I have this.
11.22.33.44  filer     # netapp COMMENT:"Netapp01"
DEVMON:tests(if_load,status,netapptemp),cid(Secret)

In he hosts.db I get this
filer 11.22.33.44 Network Appliances NetApp
v1.0 if_load,status,netapptemp Secret

Crontab -l
*/5 * * *  *    /usr/local/devmon/devmon --readbbhosts
I don't use this myself, and running it every 5 minutes is a bit excessive.
I
assume you are aware that this does *nothing* besides update the hosts.db
file, it doesn't actually poll any devices.
My devmon.cfg looks like this
MULTINODE=NO
BBHOSTS=/etc/hobbit/bb-hosts
BBTAG=DEVMON
SNMPCIDS=public,private,Secret
NODENAME=HOSTNAME
PIDFILE=/var/run/devmon/devmon.pid
Is this file writable by the user that runs devmon?
LOGFILE=/var/log/hobbit/devmon.log
Same question here.
DBHOST=1.2.3.4
DBNAME=devmon
DBUSER=devmon
DBPASS=devmon
BBTYPE=hobbit
DISPSERV=localhost
DISPPORT=1984
MSGSIZE=8096
MSGSLEEP=10
CYCLETIME=60
DEADTIME=180
CLEARTIME=180
NUMFORKS=10
MAXPOLLTIME=30
SNMPTIMEOUT=2
SNMPTRIES=5

But still nothing in Hobbit.

What now?
Did you actually *start* devmon?

A sample init script is provided in the extras directory. This is covered
in
points 6 and 7 of the INSTALLATION file ...


Regards,
Buchan