Nexsan - Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
davidlinch
Posts: 4
Joined: Thu Sep 27, 2012 5:09 am

Nexsan - Template

Post by davidlinch »

Hi,

Please find my template for Nexsan Device (SAN Storage) based on perl script:

Cpu Usage % on each controller:
cpu.jpg
cpu.jpg (49.85 KiB) Viewed 2551 times
Memory usage % on each controller:
mem.jpg
mem.jpg (38.29 KiB) Viewed 2551 times
Array usage % on each RAID array:
array.jpg
array.jpg (48.29 KiB) Viewed 2551 times
Fiber traffic in bits/sec for each Fiber Host:
fiber.jpg
fiber.jpg (61.69 KiB) Viewed 2551 times
ISCSI traffic in bits/sec for each ISCSI port:
iscsi.jpg
iscsi.jpg (51.45 KiB) Viewed 2551 times
davidlinch
Posts: 4
Joined: Thu Sep 27, 2012 5:09 am

Re: Nexsan - Template

Post by davidlinch »

Find Script and Template attached :)

I've modified the script found on http://www.kript.net/wordpress/?p=748 used for Nagios to be compatible with Cacti.
Attachments
Cacti - Host Nexsan Beast template.xml
(192.89 KiB) Downloaded 305 times
check_http_xpath.pl
Put in Cacti Script folder
(16.39 KiB) Downloaded 286 times
kript
Posts: 3
Joined: Mon Nov 26, 2012 6:47 am
Location: Cambridge, UK
Contact:

Re: Nexsan - Template

Post by kript »

Thanks for doing this! Might have saved me a job..

I was trying to import the XML into our 0.8.7i installation, and all I got was "XML Parse Error", no matter if I copied and pasted, or used the file import.
Trying the same thing via the cli said it had read 197519 bytes of XML data, but no additional templates turned up, so I expect it was just silently failing.

Can anyone else get this to work, and if so, what version of Cacti were they using?
Can I ask what version of cacti was used to create/export the Template?

thanks,

John
kript
Posts: 3
Joined: Mon Nov 26, 2012 6:47 am
Location: Cambridge, UK
Contact:

Re: Nexsan - Template

Post by kript »

My guess in the Host Template attached is that the export was done to the browser and then copied and pasted? Something has introduced non-XML formatting e.g.;
- <cacti>

I've tried stripping that out but it still fails - my understanding of the format used is obviously not good enough!. Any chance the original poster could try re-exporting the host template as an XML file and re-posting here?

cheers muchly..
echochargen1
Posts: 1
Joined: Wed Dec 19, 2012 5:42 pm

Re: Nexsan - Template

Post by echochargen1 »

Hi - I was able to get this working by opening the xml file and replacing the following strings:
<path_cacti>
<grepstr1>
<grepstr2>
<grepstr3>
<grepstr4>
<grepstr5>
<grepstr6>

...with the same strings without the "<" and the ">" characters.
Then the XML Parse error went away.

Then you need to open each of the Data Input Methods and put the "<" and ">" characters back into the Input String for the strings above.
Kinda tedious, but it worked for me.
I'm sure there's a more elegant method....
kript
Posts: 3
Joined: Mon Nov 26, 2012 6:47 am
Location: Cambridge, UK
Contact:

Re: Nexsan - Template

Post by kript »

No chance you could post the fixed versions, are there?

cheers muchly :D
leonset
Posts: 8
Joined: Mon May 23, 2005 2:55 pm
Location: Spain

Re: Nexsan - Template

Post by leonset »

Here's a fixed version of the template which "seems" to work. I'm currently testing it right now. "Seems" because I'm just starting with Cacti :oops:
The perl script is exactly the same.

This perl script, will be executed once for each graph?

Thanks!
Attachments
cacti_host_template_nexsan_beast.xml
Hope this one works ok!
(208.52 KiB) Downloaded 236 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests