New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


How do I obtain a list of device/sensor comments?

Votes:

0

Your Vote:

Up

Down

Is there anyway to see (and edit) where any comments are filled out for devices/sensors? I know I can go into each and every device and sensor, but am looking for an easier way.

comments prtg sensor

Created on Oct 12, 2010 3:23:03 PM by  IT Jockey (200) 2 1

Last change on Oct 13, 2010 8:52:55 AM by  Daniel Zobel [Paessler Support]



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Well, you could use the API to generate a list off all sensors with their comments.

http://yourserver/api/table.xml?content=sensors&columns=objid,comments&login=[user]&password=[password]

This will generate something like:

- <item>
  <objid>1001</objid> 
  <comments>This is a comment</comments> 
  </item>
- <item>
  <objid>1002</objid> 
  </item>
- <item>
  <objid>1003</objid> 
  </item>

Next, loop through the <comments> tags, find its <objid> sibbeling and open the corresponding webpage:

http://yourserver/sensor.htm?id=1001&gototab=12

Created on Oct 12, 2010 6:22:51 PM by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



13 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

I'm afraid Multi-Edit for comments is not possible/available.

Best Regards.

Created on Oct 12, 2010 5:14:34 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Even if there was a way to just list out all the comments, that would be a help.

It seems that some sensors automatically populate at discovery time with results from SNMP or WMI, like model and serial#. However, without going into each device/sensor, it is unknown whether a device/sensor has comments.

We're starting to use the comments field as a note about where a server/device is, leaving the geomap locate to the respective probe location.

Created on Oct 12, 2010 6:04:26 PM by  IT Jockey (200) 2 1



Accepted Answer

Votes:

0

Your Vote:

Up

Down

Well, you could use the API to generate a list off all sensors with their comments.

http://yourserver/api/table.xml?content=sensors&columns=objid,comments&login=[user]&password=[password]

This will generate something like:

- <item>
  <objid>1001</objid> 
  <comments>This is a comment</comments> 
  </item>
- <item>
  <objid>1002</objid> 
  </item>
- <item>
  <objid>1003</objid> 
  </item>

Next, loop through the <comments> tags, find its <objid> sibbeling and open the corresponding webpage:

http://yourserver/sensor.htm?id=1001&gototab=12

Created on Oct 12, 2010 6:22:51 PM by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



Votes:

0

Your Vote:

Up

Down

Thanks Gerard, that looks like what I need to get a list. Will give that a try now.

Created on Oct 12, 2010 7:59:30 PM by  IT Jockey (200) 2 1



Votes:

0

Your Vote:

Up

Down

I tried the api, even tried it while on the demo site's help page where you can interactively build the url for the api. Neither seemed to spit out comments, no matter the format (html, xml, or csv). It's like the api is ignoring the comments field identifier.

Created on Oct 13, 2010 2:08:49 PM by  IT Jockey (200) 2 1



Votes:

0

Your Vote:

Up

Down

What PRTG version are you running?

Created on Oct 13, 2010 3:10:05 PM by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



Votes:

0

Your Vote:

Up

Down

8.1.0.1628. When I use the API to build an xml with other fields, it works fine. Just not comments, which I confirmed is a valid column name from the API help from the demo site.

Created on Oct 13, 2010 4:12:39 PM by  IT Jockey (200) 2 1



Votes:

0

Your Vote:

Up

Down

I can confirm that it actually works on version 8.1.0.1628

  <?xml version="1.0" encoding="UTF-8" ?> 
- <sensors>
  <prtg-version>8.1.0.1628</prtg-version> 
- <item>
  <objid>1001</objid> 
  <comments>Comment on sensor 1001</comments> 
  </item>
- <item>
  <objid>1002</objid> 
  </item>

Note: if comments are empty, there is no <comments> section for that sensor !

Created on Oct 14, 2010 8:39:27 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



Votes:

0

Your Vote:

Up

Down

Yes, Gerard is right. It should work with version 8.x

Created on Oct 14, 2010 11:47:02 AM by  Dirk Paessler [Founder Paessler AG] (10,858) 3 4



Votes:

0

Your Vote:

Up

Down

I even upgraded the other day to 8.1.0.1670 and it still doesn't show in the XML.

Here is the API syntax I used. I was already signed in the browser, so I did not need the username/password portion. I get every column but the comments.

/api/table.xml?content=sensors&output=xml&columns=objid,probe,group,device,sensor,host,comments

Created on Oct 14, 2010 4:30:47 PM by  IT Jockey (200) 2 1

Last change on Oct 15, 2010 7:49:11 AM by  Daniel Zobel [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Copied and pasted the url and tested it on my own PRTG server without any problem.

This might sound silly, but are you sure that your comments are entered in the comments tab (multi line text box) of the device and not by mistake in the "tag" field (single line text box)

Created on Oct 15, 2010 6:02:08 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



Votes:

0

Your Vote:

Up

Down

Ah, I see what it is doing. All the comments I have manually found have been at the device setting. These must come from WMI or SNMP. I don't have any comments entered at the sensor level, so the comments don't appear in the XML. Once I entered a comment at the sensor level, I saw some in the XML output.

So, I switched the API call to "content=devices" and I now see comments I have put in at that level, as well as the ones from SNMP or WMI.

Thanks for your help guys!

Created on Oct 15, 2010 2:51:06 PM by  IT Jockey (200) 2 1

Last change on Oct 15, 2010 3:31:05 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

> I'm afraid Multi-Edit for comments is not possible/available.

I would like to use the API to write comments.

What is multi-edit? Is it possible to write comments using the API?

Created on Oct 11, 2013 10:28:57 PM by  Eugene van der Merwe (0)



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.